multiple midi output
I have a list of notes and would like to know how to output them with 127 velocity
If You read makenote helpfile, You'll notice the arguments,
like optional velocity, or duration etc.
Insert iter after the note list.
That will output numbers one by one.
If You don't want to use makonote, but something else
like noteout, or midiout, than You can insert message
$1 127 to append velocity to each of them.
Turning them off is another task,
one could just use flush, or
list -> iter -> $1 0
in case of makenote message stop
Thanks... I can't figure it out
This is my code maybe you can see what's wrong
Its just the last part
I have no time to go about what the whole patch is about,
but You use thresh at the output of midiautotune patcher.
That makes a list from collected numbers.
You can't pass that list to $1 127, because only the first
list item would pass, $1 means first member of the list.
So You need to insert iter between midiautotune patcher
and $1 127.
I don't have time or interest to analyse what is going on in the whole patcher,
and if thresh could be removed alltogether...
Ok thanks anyway. It works but I don't know how to do the note-offs
Turning notes off should not be difficult.
If You use flush jut bang it after some delay.
Or You could use makenote with set length.
But back to iter, if You remove thresh,
You don't need iter.
here is the last part of You patch:
Set to 500 ms note duration.
Thanks again
Could this work?
No, that makes no sense.
You should read helpfile for objects that You try to use.
They don't really give me any clue in this case
If You read flush help file, it says
left inlet is pitch and bang to turn hanging midi notes off.
Right inlet is velocity.
You connected pitch to right inlet.
How would that work ?
The example in the help file uses list input to flush.
Maybe that disturbed You.
In many max objects, which have more than one inlet
one could send a list to leftmost inlet
instead of sending individual values to inlets.
So for example + object coud be sent a list of 2 ints, like 22 33
to the first inlet.
it would do the same as if one sent 22 to left and 33 to right inlet.

Now back to what You want.
You are building chords, and send them with max velocity out.
You are not using note off, so notes have to be turned of after some time.
You can use either makenote with set value for length, as in the example I posted.
Or bang flush to turn them off.
Why are You not using note off ?
Than You could hold chord notes as long as keys are held?
Thanks for replying. I thought I was using note off. It kind of works anyway
If I want to use note on note offs or duration how would I do that?
I posted a patch with makenote example.
Did You miss that ?
I saw it but forgot it... Does it use note offs? Doesn't need to do duration as its not known how long the notes are held
makenote does not use note offs at its input, only produces notes off at it's output after set time.
I have looked a bit at the patch You posted.
There are many mistakes in there.
I would help You if I knew exactly what are You trying to do.
Mistakes start at kslider which should set "scale".
What should happen if one selects just 1 note, or even all 12 ?
Or none ?
Then to continue, 2 dials for voices and deviation trigger midi output
whenever one sets a value. that's just wrong.
To continue ... if number of voices is set to more than number of
notes in the kslider, they get repeated at output, triggering double note on's.
That's just few picks, among many other things.