node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

midi-qwerty-keys

midi-qwerty-keys

Use qwerty keyboard as midi keyboard in the browser.

Install

$ npm install midi-qwerty-keys

API

var QwertyKeys = require('midi-qwerty-keys')

The Piano

var noteStream = QwertyKeys({mode: 'piano', offset: 36})
noteStream.pipe(midiDestination)

Black notes on the qwerty row and whites on the asdf row. Use z and x to move up and down octaves and c, v to change velocity.

 W E   T Y U   O P [
A S D F G H J K L ; '

The Grid

var noteStream = QwertyKeys({mode: 'grid'})
noteStream.pipe(midiDestination)

The first 8 keys in all letter rows are used. Move the rows up and down using '-' and '=/+' keys.