Another important distinction is that the user-interface objects ezadc~ and ezdac~ are fixed at 2 channels of signal input/output communicating with channels 1 and 2 of the audio interface adc~ and dac~ are also stereo by default, but they can be set to communicate with any number of specific channels of the audio interface depending on the typed-in channel arguments. Those objects don’t provide the user-interface characteristics of their ezadc~ and ezdac~ counterparts, but in terms of the messages described above they behave identically. The above methods 2, 3, and 4 apply equally well using the plain ol’ adc~ and dac~ objects. When that attribute is enabled, the mouse-click behaves like startwindow and stop instead of start and stop.ĥ. In Max 7, the ezadc~ and ezdac~ objects each have a ‘local’ attribute.
The message startwindow to either of these two objects, however, will turn on audio only in the patch where the message was received (and in subpatches of that patch), and will stop audio in all other patches.
Normally when MSP is on, it’s on in all loaded patches. If these objects receive a message of type float such as 3.14, rather than truncate the number and convert it to an int, they’ll simply report “doesn’t understand ‘float'” in the Max Console window.Ĥ. Interestingly, unlike most Max objects, these objects will not convert float to int. Any nonzero integer will turn MSP on, and 0 will turn it off. You can also turn audio on and off with an integer ( int ) message to one of those objects. You can also turn audio on with a start message to one of those objects and turn it off with a stop message.ģ. Once the patch is locked, you can turn audio on/off by clicking on one of those objects.Ģ. Just put one in your patch and, voilà, you’ve got an on/off switch for MSP computation. The easiest way to turn MSP on and off is with the ezadc~ object or the ezdac~ object. You can read about the reasoning behind turning MSP on and off if you want this post will show you the various ways to do it.ġ. In order for Max compute audio, it’s necessary to explicitly turn MSP on. (If you want, you can cut to the chase to read about the simplest way to turn MSP on automatically.) Did you know that there are several different ways to turn MSP audio on and off in Max?