Skip to content

Correct way to play sequence of notes #205

@shivrajsa

Description

@shivrajsa

I have a sequence of notes with delay data.
I trigger this sequence of notes using noteOn function and I loop function noteOn for number of notes.

Manytimes, result is not good and notes do not play as they come in sequence.
Some ending notes and some starting notes start playing together when loop is started, because of this result is not good for few seconds in the starting.

Can anybody guide what is correct way to play sequence of notes

Here is code sample

var notes = [67, 78, 67 ,67,90, 56,..,...,....]
var delay = [.........]
for(var i=0; l < notes.length; i++)
{
MIDI.noteOn(channel, notes[i], velocity, delay[i]);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions