Scribbletune
Write musical patterns as JS strings and export them to MIDI files or play them live via Tone.js.
| Language | JavaScript |
|---|---|
| Category | MIDI tools |
| License | MIT |
| Platforms | macOS Windows Linux Web |
| Install | npm install scribbletune |
| First released | 2014 |
| Maintained | Yes |
| Links | Website · Source |
Strengths
- Concise x/-/_ string notation for rhythms and melodies
- Exports Standard MIDI files and plays in-browser with Tone.js
- Built-in scale/chord/arpeggio helpers
Limitations
- Browser playback depends on the external Tone.js peer dependency
- Pattern DSL is opinionated and has a learning curve
Best for
Generating MIDI clips and progressions programmatically from terse JS patterns.
Minimal example
const scribble = require('scribbletune');
const clip = scribble.clip({ notes: 'C4', pattern: 'x_x_' });
scribble.midi(clip, 'beat.mid');