jamesmunns / launch-rs

Rust tool/library for the Launchpad MK2
MIT License
17 stars 6 forks source link

Launchpad S support? #5

Open Boscop opened 6 years ago

Boscop commented 6 years ago

What would have to be changed in order to support the Launchpad S? :)

MaulingMonkey commented 5 years ago

Possibly just the string-based device detection. The Launchpad Mk 2, S, and Mini all appear to share the same layout. No guarantee that means the messages/colors are all exactly the same, but they might be!

EDIT: Nope, looks like the mk2 supports a lot of messages the mini (and mk1/s?) don't.

Launchpad Pro support is a bit more involved-looking, but that has a slightly different button layout: https://github.com/jamesmunns/launch-rs/pull/6

MaulingMonkey commented 5 years ago

I've got a rough commit here: https://github.com/MaulingMonkey/launch-rs/commit/fee103b2d0b6c4ca28845f723fd587cee57ec479 that:

1) Replaces portmidi with midir, which is pure Rust (simplifying dependencies - no need to install/build/add portmidi.lib to paths), and which I have a WASM branch for (so you could theoretically use it in the browser!) 2) Adds Launchpad Mini support (reusable for Mk. 1 / S support?)

It doesn't have the same interface (different capabilities - no automatic scrolling/text modes, no blue LEDs, etc.) and doesn't try to expose a consistent interface yet, so it's more of a prototype than anything.