Forums > MaxMSP

Variable ramp times using line~

January 15, 2010 | 1:39 am


I am working on a glissando patch for a synth I am building. I am planning on having variable glissando speeds that react at different ramp speeds when the pitch wheel is used.

As shown in the patch below the signal ramp time can be varied however the prepend argument "$1" always creates an error in the Max window. I was wondering if anybody knew a way to achieve the same variable ramping effect without creating the error. The problem I am facing is that whenever a $ argument is entered into max other then in a message box it creates an error

This is extremely pedantic of me but any help would be greatly appreciated!


– Pasted Max Patch, click to expand. –
January 15, 2010 | 3:04 am

You can use the backslash character to escape the $dollar$ sign. It would look like this: [prepend $1]. However if you want to dynamically set two items in a list you should use the [pack] object. Also I’m not sure why you’re connecting a sinal into your message box, this won’t work!


January 15, 2010 | 3:08 am

not quite sure what you are doing but wouldn’t this work?

– Pasted Max Patch, click to expand. –
January 15, 2010 | 3:44 am

Cheers Luke and Mib!

Sorry I should have made it clear, the sig~ object should actually be some sort of midi input value. I need the $ sign because I am sending a variable (the midi notes) into the line object so I need to pack the $1 argument somehow however every time I do i get the error. It works fine I am just being very pernickety about not having any errors come up.

I tried using the Backslash but I still get the same error in the max window;" "$" Variable out of range (1)"



January 15, 2010 | 3:44 am

this should work as a starting point

– Pasted Max Patch, click to expand. –
Viewing 5 posts - 1 through 5 (of 5 total)