Skip to content

ryanlaws/lunchpaid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

JUST USE midigrid.

Folks have been doing some good work over at the midigrid repo. I recommend using this since it is in active development by a handful of people, it supports more devices, and is just generally more future-proof. It also uses some of the same code as this repo (with my blessing). As far as I can tell, the only thing this lib has that it doesn't is the deliciously snarky name.

Lunchpaid

Implements some of the Grid API for versions of the Novation Launchpad that only have buttons and red and green LEDs. To be more Grid-like, the top row of the Launchpad is treated as a 10th column (i.e., X = 10).

Colors

16 possible colors 0-15. 4 red and green levels:

  • More significant 2 bits (8 and 4) are green.
  • Less significant 2 bits (2 and 1) are red.

API

Instance

lp:led(x, y, color)

Set LED at (x, y) to color (see color bits above).

lp:all(color)

Set all LEDs to color.

lp:refresh()

Empty - only here to match Grid API.

Static

lp.connect(id)

Sets up MIDI connection (add/remove) overrides if not set up already, and returns the API. id argument is currently ignored.

lp.key(id, x, y, velocity)

Key handler. Bring your own implementation, just like Grid.

lp.update_devices()

Update MIDI devices and find a device that matches known names of supported Launchpad devices. Return true if device found, false otherwise. Called by lp.connect, probably don't need to call manually.

lp.cleanup()

Clear key handler.

Not supported

  • Multiple devices
  • RGB, Control, Keys, etc. (OG/Mini Red/Green only)

About

Norns Launchpad lib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages