Estoy tratando de escribir un archivo midi agregando notas usando un bucle. Esto funciona bien al agregar la primera nota de una matriz de notas:
trk1.smfSeqName('Music') .ch(0) // all subsequent messahes will go to channel 0 .program(0x1) // set channel 0 program to piano // .tick(100).note('E5', 127, 75) // clock: 100, MIDI channel: 0, note: E5, velocity: 127, duration: 50 clocks .tick(50).note(noteArray.at(0), 127, 100) // can also use numerical values for the notespero cuando intento y agrego varias notas en el bucle, aparece un error
for (i = 0; i < noteArray.length; i++) { .tick(50).note(noteArray.at(i), 127, 100) // can also use numerical values for the notes }