midi-looper-launchpad

0.6.0 • Public • Published

midi-looper-launchpad

Launchpad control bindings for midi-looper.

Used as a primary component of Loop Drop.

Install

$ npm install midi-looper-launchpad

Example

Using in the browser with web-midi and bopper clock.

var Bopper = require('bopper')
var Ditty = require('ditty')
var MidiLooper = require('midi-looper')
var WebMidi = require('web-midi')
var Soundbank = require('soundbank')

var LaunchpadControl = require('midi-looper-launchpad')

// set up some support components to make midi-looper work
var audioContext = new AudioContext()
var clock = Bopper(audioContext)
var playback = Ditty(clock)
var looper = MidiLooper(clock.getPosition)
var soundbank = Soundbank(audioContext)
playback.pipe(soundbank).pipe(looper).pipe(playback)

// get a duplex stream for the launchpad
var midiStream = WebMidi('Launchpad', 0)

// pass the duplex midi stream and looper instance to the constructor
var launchpad = LaunchpadControl(midiStream, looper)

// feed a clock into the launchpad for visual metro
clock.pipe(launchpad)

// pipe out raw midi notes
launchpad.pipe(soundbank)

Usage

The main grid outputs midi notes on channel 1 (message 144) from note 0 to 63.

Note Repeat

The right side buttons change the note repeat length (none, 1, 2/3, 1/2, 1/3, 1/4, 1/6, 1/8). When length selected, hold notes in the main grid, and they will repeat at the specified length.

Store/Bounce

Press up/learn to loop the last 2 bars (by default) you just played.

Suppress

Hold down/view to suppress all current playback. While holding you can press store/bounce (learn) to lock it in.

Undo/Redo

The page left/right buttons control undo/redo and move between stored loops.

Hold

Hold inst/session button to loop the current playback at whatever the repeat length is.

Snap 1 and 2

Hold the fx/user 1 and user/user 2 buttons to playback the notes stored within. While holding you can press store/bounce (learn) to lock it in.

Move/Copy/Select

While holding the mixer button, select a note or range of notes (hold down two buttons at the same time to get all notes in between), then release mixer button. With the selection do any of the following.

  • hold another note to move the notes to a new grid position
  • hold the supress button to mute notes in the selected range
  • snap 1 or 2 to store the range for triggering later by holding down the snap buttons.

I'll get some pictures and a video up soon

This should make things less confusing. It's a pretty tactile control setup, so it's hard to describe well in text.

Readme

Keywords

Package Sidebar

Install

npm i midi-looper-launchpad

Weekly Downloads

6

Version

0.6.0

License

MIT

Last publish

Collaborators

  • mmckegg