jsmidi icon indicating copy to clipboard operation
jsmidi copied to clipboard

Long note duration creates pause before playing

Open ArthurClemens opened this issue 13 years ago • 1 comments

For instance with: var note = MidiEvent.createNote({ time: 0, duration: 1000, pitch: 60, channel: 0, volume: 90
});

I believe this is caused by the function MidiEvent.noteOn that takes the duration parameter:

time: note.duration || duration || 0

instead of setting the start time to 0.

ArthurClemens avatar Jun 04 '11 00:06 ArthurClemens