Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including jzz-midi-smf with all npm packages installed. Try it out:

const rkmidi = require("runkit-midi"); const JZZ = require('jzz'); require('jzz-midi-smf')(JZZ); const smf = new JZZ.MIDI.SMF(0, 96); const trk = new JZZ.MIDI.SMF.MTrk(); smf.push(trk); trk.smfBPM(90).ch(0).program(16) .tick(96).noteOn('C6', 127).tick(96).noteOn('Eb6', 127) .tick(96).noteOn('G6', 127).tick(96).noteOn('C7', 127) .tick(192).noteOff('C6').noteOff('Eb6').noteOff('G6') .noteOff('C7').tick(96).smfEndOfTrack(); rkmidi(smf); // click the [▶run] button... ↓

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jzz-midi-smf v1.8.1

Standard MIDI Files: read / write / play

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free