Forums > MaxMSP

comparing values

April 12, 2011 | 2:43 pm

Hi all,
Is there an object that can collect a number of values and then compare them in order to distinguish the highest one?
I want to record 2 seconds into a buffer with my guitar and then get the highest note that I played in those two seconds (I have a midi pickup on my guitar, just need the midi note number).

thanks in advance,
Alex


April 12, 2011 | 2:46 pm

‘zl group’ object will make them into a list, and then use the ‘maximum’ object.


April 12, 2011 | 3:00 pm

but I won’t know the number of notes that will be played in advance (you see I will be improvising). ‘zl group’ needs to have the number of list items specified, so I’m not sure if it will really work…
thanks though.


April 12, 2011 | 3:20 pm

i group things by making zl group really huge and then i send a bang when i collect all that i need. could trigger that bang with footpedalz or s’thing else.


April 12, 2011 | 3:47 pm

Maybe Lobjects from Peter Elsea like Lmax Lmin and L==


April 12, 2011 | 4:03 pm

it kind of works, have to check it more thoroughly.
thanks


April 12, 2011 | 4:05 pm

@ mortimer59, don’t think so cause they compare and produce lists, while I want a single number.


April 12, 2011 | 4:07 pm

@ Amil Mille, it does work, I just did a small mistake when I sent the previous answer. Thanks a lot.


Viewing 8 posts - 1 through 8 (of 8 total)