A NoteSequence player based on Tone.js that uses SoundFont samples. The loadSamples method may be called before start so that the samples necessary for playing the sequence will be loaded and playing will begin immediately upon start.
NoteSequence
loadSamples
start
Example (explicitly loading samples):
player.loadSamples(seq).then(() => player.start(seq))
Explicitly loads samples, so that playing starts immediately when start is called.
Example (implicitly loading samples):
player.start(seq)
If the samples for seq have not already been loaded, playing will only start after all necessary samples have been loaded.
seq
Stop playing the currently playing sequence right away.
Generated using TypeDoc
A
NoteSequenceplayer based on Tone.js that uses SoundFont samples. TheloadSamplesmethod may be called beforestartso that the samples necessary for playing the sequence will be loaded and playing will begin immediately uponstart.Example (explicitly loading samples):
player.loadSamples(seq).then(() => player.start(seq))Explicitly loads samples, so that playing starts immediately when
startis called.Example (implicitly loading samples):
player.start(seq)If the samples for
seqhave not already been loaded, playing will only start after all necessary samples have been loaded.