How to prevent sending MIDI CC messages on loading the Max for Live device

    Jul 03 2022 | 6:10 pm
    I'm developing Max for Live device for controlling my pedals with MIDI control messages. I use "ctlout" for CC and "midiformat" for PGM. The problem is that when I load the device (or its preset) in Live, it will fire a bunch of MIDI messages, which is not always a desired behavior. What's the best practice to prevent sending some MIDI messages on loading the device? I had some luck with "change 0" command, but it's not exactly what I'm looking for. "Initial enable" checkboxes are off.

    • Jul 03 2022 | 7:11 pm
    • Jul 05 2022 | 10:18 am
      Thank you so much, it works for me!
      Is there a document I can read that explains Max for Live device's lifecycle? It looks like "live.thisdevice" fires "loadbang" at the very last step, after sending any preset setup MIDI messages. I didn't know about this particular order, and want to learn more.
    • Jul 05 2022 | 3:31 pm