Prepend a variable (not a constant) to a packed list?

Zoe Violet Lebeau's icon

Is there any way to change the value prepended to a list with prepend? I'm trying to make a little patcher that lets you select a CC# so you can remap it to a different CC#. I can totally get it to work if I hardcode the new CC# in the prepend, but is there a way to use prepend (or another function) to allow me to change what is prepended?

Christopher Dobrian's icon

The 'set' message.

Zoe Violet Lebeau's icon

So I've spent 20 minutes trying to figure out how to do this with 'set'. Would you be so kind as to whip up a quick example?

Also, I did check the Max 7 Documentation, and there isn't even a page for 'set'

double_UG's icon

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

Zoe Violet Lebeau's icon

Thanks, Doubleug. I'll have to research a little more to learn what the @triggers means, but this is exactly what I was looking for.