Skip to content

Commit

Permalink
feat: add support for launchpad mini mk3 (pretty much like X but smal…
Browse files Browse the repository at this point in the history
…ler)
  • Loading branch information
twitwi committed Apr 22, 2022
1 parent 8991593 commit 8a15c6a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/devices/known-devices/known-devices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Controller, Selector } from '../device/device.types';
import { novationLaunchpadX } from './novation-launchpad-x';
import { novationLaunchControlXl } from './novation-launch-control-xl';
import { novationLaunchpadMini } from './novation-launchpad-mini';
import { novationLaunchpadMiniMk3 } from './novation-launchpad-mini-mk3';

/**
* List of known devices.
Expand All @@ -10,4 +11,5 @@ export const knownDevices: (Selector | Controller)[] = [
novationLaunchpadX,
novationLaunchControlXl,
novationLaunchpadMini,
novationLaunchpadMiniMk3,
];
21 changes: 21 additions & 0 deletions src/app/devices/known-devices/novation-launchpad-mini-mk3.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Selector, DeviceCategory } from '../device/device.types';
import { novationLaunchpadX } from './novation-launchpad-x';

/**
* Novation Launchpad Mini Mk3
*
* @see Novation resources https://downloads.novationmusic.com/novation/launchpad-mk3/launchpad-mini-mk3-0
*/
export const novationLaunchpadMiniMk3 = {
...novationLaunchpadX, // shallow copy but it is probably not meant to be mutated anyway
name: 'Launchpad Mini MK3', // https://github.com/rienheuver/launchpad-mini-mk3/blob/master/index.js#L7 , mine is 'Launchpad Mini MK3 LPMiniMK3 MI'
get bootSequence () {
return {
color: novationLaunchpadX.colors.red,
sysex: {
manufacturer: 0,
data: [32, 41, 2, 13, 14, 1], // https://github.com/FMMT666/launchpad.py/blob/master/launchpad_py/launchpad.py#L2375
},
};
},
} as Selector;

0 comments on commit 8a15c6a

Please sign in to comment.