"sampling rate" issue for short line object ramps

Brian Daurelle's icon

Hi all

I am trying to design a few little gestural toys to use with a MIDI instrument. One is a very simple, very fast chromatic glissando. However, I am not seeing Max put out every MIDI number in the ramp I want to generate. It seems to consistently put out every nth number for a certain ramp speed: if I ask it to play over 150 ms, for example, it only outputs every 11 notes. As far as I can tell, this problem is originating in the line object. Is there some sample-rate limitation that I don't know about here, and how can it be overcome?

fast-gliss_forum.maxpat
Max Patch

thanks

Source Audio's icon

you need to set faster output interval in line object

line 0 1 (it is 2nd arguments, in this case 1 ms)

but then you need to insert change object to avoid repeatead values.

While we are at it, you could improve a bit handling of 3 parameters

note range, interval and direction

Max Patch
Copy patch and select New From Clipboard in Max.