Tutorials

API

Playback controls

dilla.start() start playback at current position

dilla.pause() stop playback at current position

dilla.stop() stop playback and set position to start of loop

Scheduling

dilla.set(id, notes) schedule playback of array of notes on channel with id, clearing any previously scheduled notes on same channel. A note can be defined as a note object (must contain position) or an array with position at index 0 and params in an object at index 1 (see metronome example above)