Skip to main content

Launchpad_rgb

The Launchpad MK2 by Novation has 80 24 bit RGB LEDs, but the normal MIDI message protocol only allows for 127 total colors.
How do you access the full power of 63*63*63 colors? System exclusive messages of course!

MIDI System Exclusive messages are messages that are exclusive to a specific device type. The purpose is so that device manufacturers can implement features outside of the MIDI specification while staying in-band.

Awesome! Now what?
System exclusive messages are more complicated than normal messages. They need a header that includes the device-id, which specifies what device the messages are for, and two sub-ids, which specify what feature to invoke.

This library is a convenient way to create system exclusive messages that can access the full 24 bit RGB color available on the Launchpad MK2.

A Message object stores all the notes that will change and what their new color will be. The instance methods of Message modify that data and return the Message, so you can chain calls. To get the actual sysex data (not including the 0xF0 to start and 0xF7 to end the message), call the object like a function. The returned data is ready to be put into any MIDI message library, such as mido.

Example:

msg = Message().row(0, 1, 0.5, 0.25)
msg.note(1, 1, 1, 0.5, 0.25).note(8, 1, 1, 0.5, 0.25)
data = msg()
print(data) -> [0, 32, 41, 2, 24, 11, 11, 63, 31.5, 15.75, 12, 63, 31.5, 15.75,
               13, 63, 31.5, 15.75, 14, 63, 31.5, 15.75, 15, 63, 31.5, 15.75,
               16, 63, 31.5, 15.75, 17, 63, 31.5, 15.75, 18, 63, 31.5, 15.75,
               22, 63, 31.5, 15.75, 29, 63, 31.5, 15.75]

Metadata

Release files for launchpad-rgb 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for launchpad-rgb 1.0.0
File Size Uploaded
launchpad_rgb-1.0.0.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for launchpad-rgb 1.0.0
File Interpreter ABI Platform
launchpad_rgb-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.8 kB

Release files / launchpad_rgb-1.0.0.tar.gz

Download URL launchpad_rgb-1.0.0.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b37012fb74a766a2e73ebe5c4f9609cf37b497da7455f30d04bfe6fc25f1c5b8
BLAKE2b-256 checksum
How to use checksums
0c4e775090d5bcf60b7aa8355d47d676df62c9a679a114cdd4dfed929856cb2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / launchpad_rgb-1.0.0-py3-none-any.whl

Download URL launchpad_rgb-1.0.0-py3-none-any.whl
Size 2.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4554897aad3e75f8fbe07f726df4c4f5a6c408937b98c4f60dc7c15141647a3f
BLAKE2b-256 checksum
How to use checksums
1ea276c5d2730b21024d2dd6ce77057378cfdb6e84fe9d9c716d8f2d9fd77d50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page