Creating notes from a list of notenumbers

Pvdn's icon

I am building some sort of chord-generator, so i want to be able to create extra notes simultaneously on noteinput. I end up with a list of notes that i want to create, and feed them into a zl.iter, with a makenote after that.

It seems to work, apart from the fact that notes seem to be skipped (as in not created) quite often, and i can't really put my finger on when that happens (it's not necessarily when notes are fed into it too fast). Also, the logs seem to indicate that the correct list-data is sent to the zl.iter object.

Is this construction (zl.iter into makenote) even the correct approach to achieve this?

Roman Thilenius's icon

unless the data format of your list is already wrong, that approach should work fine.

the high speed of data creation within max should also not be the problem.
in a midifile two events also can have the same time and a physical I/O will delay stuff for what it thinks is neccesary.

try sending 20 correctly formatted note events with one click directly to midiout and you will see if that works.

Pvdn's icon

Ok, thanks. Just wanted to make sure this approach was a good way to do this. Will strip it down and hopefully find out what causes the notes to skip.