Skip to content

Commit

Permalink
Merge pull request #20 from twitwi/master
Browse files Browse the repository at this point in the history
  • Loading branch information
bamdadfr authored Apr 23, 2022
2 parents 8991593 + f7593d5 commit 2f58806
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 deletions.
6 changes: 4 additions & 2 deletions src/app/devices/known-devices/known-devices.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
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 { novationLaunchpadMiniMk2 } from './novation-launchpad-mini-mk2';
import { novationLaunchpadMiniMk3 } from './novation-launchpad-mini-mk3';

/**
* List of known devices.
*/
export const knownDevices: (Selector | Controller)[] = [
novationLaunchpadX,
novationLaunchControlXl,
novationLaunchpadMini,
novationLaunchpadMiniMk2,
novationLaunchpadMiniMk3,
];
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Selector, DeviceCategory } from '../device/device.types';
import {Selector, DeviceCategory} from '../device/device.types';

/**
* Novation Launchpad Mini
* Novation Launchpad Mini Mk2
*
* @see http://leemans.ch/latex/doc_launchpad-programmers-reference.pdf
*/
export const novationLaunchpadMini: Selector = {
export const novationLaunchpadMiniMk2: Selector = {
category: DeviceCategory.selector,
manufacturer: 'Focusrite A.E. Ltd',
name: 'Launchpad Mini',
name: 'Launchpad Mini MIDI',
channels: {
input: 'all',
output: 1,
Expand Down Expand Up @@ -41,7 +41,7 @@ export const novationLaunchpadMini: Selector = {
yellow: 62,
green: 60,
},
get colorByState () {
get colorByState() {
return {
inputOn: this.colors.red,
inputOff: this.colors.black,
Expand All @@ -61,7 +61,7 @@ export const novationLaunchpadMini: Selector = {
defaultDuration: 500,
longClick: 400,
},
get bootSequence () {
get bootSequence() {
return {
color: this.colors.red,
sysex: {
Expand Down
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 2f58806

Please sign in to comment.