Variable ramp times using line~

Jan 15, 2010 at 1:39am

Variable ramp times using line~

Hello!

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!

Tiny_Orbit

– Pasted Max Patch, click to expand. –
#47794
Jan 15, 2010 at 3:04am

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!

lh

#171908
Jan 15, 2010 at 3:08am

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

– Pasted Max Patch, click to expand. –
#171909
Jan 15, 2010 at 3:44am

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)”

ARGGHHHHH

Tiny_Orbit

#171910
Jan 15, 2010 at 3:44am

this should work as a starting point

– Pasted Max Patch, click to expand. –
#171911

You must be logged in to reply to this topic.