/Launchpad-Core

Simple way to control your Novation Launchpad.

Primary LanguageTypeScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Launchpad Core

Simple way to control your Novation Launchpad.

Features

  • Driver system (for supporting all Launchpad - more compatibility in progress)
  • Advanced commands
  • Light, powerful and flexible.

Note: Only tested with Launchpad X for now.

Installation

  // NPM
  npm install launchpadcore

  // Yarn
  yarn add launchpadcore

Supported devices

Launchpad Core offers a driver system to adapt to the different existing models of Novation Launchpad.

Name Status
Launchpad X Available
Launchpad MK2 Partially available
Launchpad Pro MK3 Work in progress...
Launchpad Mini MK3 Available

Usage/Examples

Here is a typical example of what can be done with this module.

import { LaunchpadCore } from "launchpadcore"

const App = new LaunchpadCore("LaunchpadX");

App.on("onEnabled", (instance, driver) => {
    instance.out.send(driver.textScrolling(15, "Welcome!"))
})

App.on("onMidiIn", (data) => {
    console.log(data)
})

App.on("onDisabled", () => {
    console.log("Shutdown...")
})

What's can I do ?

Events

Name Description
onConnected When connected to Launchpad
onDisabled When disabled (exit the program)
onMidiIn When new MIDI message received

MIDI methods

Usable on a MidiService object. Find more at: https://jazz-soft.net/doc/JZZ/.

Name Description
out.send() Send whatever you want
out.noteOn() Send noteOn
out.noteOff() Send noteOff

Launchpad features (DriverQuery Builder)

Usable on a Driver object.

Name Description Driver
setLayout() Set your LaunchPad layout LaunchpadX, Launchpad Mini MK3, Launchpad MK2
textScrolling() Scroll a text along your launchpad pads LaunchpadX, Launchpad Mini MK3, Launchpad MK2
programmerToggle() Toggle to programmer mode LaunchpadX, Launchpad Mini MK3
dawClear() Clear DAW layouts LaunchpadX, Launchpad Mini MK3
ledLightning() Set pads colors by SysEx LaunchpadX, Launchpad Mini MK3
ledBrightness() Set brightness of your launchpad LaunchpadX, Launchpad Mini MK3
ledSleep() Disable LED of your launchpad LaunchpadX, Launchpad Mini MK3