-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
I don't know if I'm making a mistake:
Is there a way to write a restEvent or it is only as 'wait' attached to noteEvent?
How can I write a noteEvent without 'pitch'
In my code I need to write SILENCE with a random value in the power of two.
A final array holds the pitches and rests
if(final[i] !== 'SILENCE'){ note = new MidiWriter.NoteEvent({pitch: final[i], duration: '32'}); } else { note = new MidiWriter.NoteEvent({pitch: 'C-1', duration: Math.pow(2,Math.floor(random(4)))}); } track.addEvent(note);
With pitch series is very helpful to have a separate event for rest information.
Metadata
Metadata
Assignees
Labels
No labels