0.1.0 • Published 2 years ago

launchpadcore v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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.

NameStatus
Launchpad XAvailable
Launchpad MK2Partially available
Launchpad Pro MK3Work in progress...
Launchpad Mini MK3Available

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

NameDescription
onConnectedWhen connected to Launchpad
onDisabledWhen disabled (exit the program)
onMidiInWhen new MIDI message received

MIDI methods

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

NameDescription
out.send()Send whatever you want
out.noteOn()Send noteOn
out.noteOff()Send noteOff

Launchpad features (DriverQuery Builder)

Usable on a Driver object.

NameDescriptionDriver
setLayout()Set your LaunchPad layoutLaunchpadX, Launchpad Mini MK3, Launchpad MK2
textScrolling()Scroll a text along your launchpad padsLaunchpadX, Launchpad Mini MK3, Launchpad MK2
programmerToggle()Toggle to programmer modeLaunchpadX, Launchpad Mini MK3
dawClear()Clear DAW layoutsLaunchpadX, Launchpad Mini MK3
ledLightning()Set pads colors by SysExLaunchpadX, Launchpad Mini MK3
ledBrightness()Set brightness of your launchpadLaunchpadX, Launchpad Mini MK3
ledSleep()Disable LED of your launchpadLaunchpadX, Launchpad Mini MK3