web-midi-api-snippets

Web MIDI API Snippets for Atom

njenkins

399

1

0.1.3

MIT

GitHub

Web MIDI API Snippets for Atom

A few snippets for working with the Web MIDI API within Atom

Installation instructions

Go to Atom > File > Settings then search for MIDI in the Packages tab. Once found, install

Development

$ cd ~/.atom/packages
$ git clone https://github.com/njenkins/atom-webmidi-snippets.git
$ cd atom-webmidi-snippets
$ apm install
$ apm link

requestMIDIAccess

[midira]

navigator.requestMIDIAccess().then(${1:onSuccessCallback}, ${2:onErrorCallback});

MIDIOutput

send

[midios]

${1:MIDIOutput}.send(${2:data}, ${3:timestamp});

clear

[midioc]

${1:MIDIOutput}.clear();

MIDIPort

open

[midipo]

${1:MIDIPort}.open();

close

[midipc]

${1:MIDIPort}.close();