Variable ramp times using line~

Tiny Orbit's icon

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

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

Luke Hall's icon

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

MIB's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Tiny Orbit's icon

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

Floating Point's icon
Max Patch
Copy patch and select New From Clipboard in Max.

this should work as a starting point