Creating a Panic/Send all MIDI CC values button

caronte23's icon

Hi Everyone, I've been using max4live mainly for creating devices to control my hardware synths and modules from within ableton.. Creating a knob that sends out cc values is pretty straight forward, what I'd really like to do is have a Panic button so that when a session is opened I can easily recall presets by pressing these buttons, as for now I have to manually go and push every parameter back and forth to make a recall.. Does it make sense?

Christopher Dobrian's icon

There are several ways to do what you seem to want.
1. You can set the 'Initial Enable' option of a live object such as live.dial or live.numbox and save it with an Initial value.
2. You can send it an initial value triggered by loadbang, loadmess, or (in M4L) live.thisdevice.
3. You can store its state with a pattr object.
Options 1 and 3 are demonstrated here: Device Parameters in Max for Live

Jan M's icon
Roman Thilenius's icon

erm, i dont realy get the question, no.

"panic" usually is "all notes off", not "recall to a saved state"

the "initial state" (if we can call it like that) of continous controllers, however, is "value 0", and i am sure you know how to do that. :)

Roman Thilenius's icon

btw, hardware often does it on its own when simply re-selecting the program (preset) number. all recent states of CCs are gone then.

Jan M's icon

@Roman: Of course you are right about the usual use of the term panic button, Caronte's question I understood was about parameter re/setting though...

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

@Caronte23: In case you are looking foe a "classic" panic button to switch off all notes that's a simple way of doing it:

caronte23's icon

Thanks guys for all your responses, sorry I had a misconseption about the panic button, what I meant was a send state button.. at the moment the machine parameters are not overwritten unless I manually turn every parameter back and forth.. I'll look look into the options you suggested Christopher thanks!

caronte23's icon

I red the articles you posted, but I'm not sure it's what I'm looking for.. I know how to set inital states of parameters, the issue is when I save a session and then reopen it the m4l device parameters are obviously where I left them, but the hardware doesn't recieve anything unless I do it manually.. I also don't need a preset box or anything just a way to automatically send all the cc paramters upon opening the session.. so without a button would be even better..

Wim Van den Borre's icon

@caronte23 did you ever find a solution? I'm looking for the exact same thing.

schlam's icon

Hello.

[Live.thisdevice]
|
(live.dial outputvalue)
|
[universal]

?