The blurring or softening of sharp outlines in painting by subtle and gradual blending of one tone into another.
This library is able to play soundfonts (sf2 files) with the Web Audio API.
It's still a work in progress! Roadmap will follow soon
npm i sfumato --save
import { loadSoundfont, startPresetNote } from 'sfumato';
loadSoundfount(url)
loads a soundfont from a url. returns Soundfont2startPresetNote(ctx, preset, midi, time)
plays a note, returnsstopHandle
ctx
the audio context to usepreset
the preset to use (use one of Soundfont2.presets)midi
midi number to playtime
audio context time to start playing (defaults to currentTime)
stopHandle(time)
stops the note at the given time
- DEMO
- GitHub
- Blog Post (draft)
- Usage with Strudel