13.07.2015 Views

Tutorials and Topics - Peabody Computer Music

Tutorials and Topics - Peabody Computer Music

Tutorials and Topics - Peabody Computer Music

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tutorial 5Fundamentals:Turning signals on <strong>and</strong> offOne way is to connect a mute~ object to the inlet of the subpatch you want to control.Stopping audio processing in a specific subpatchTo mute a subpatch, connect a mute~ object to the inlet of the subpatch, as shown. Whenmute~ receives a non-zero int in its inlet, it stops audio processing for all MSP objects inthe subpatch. Sending 0 to mute~ object’s inlet unmutes the subpatch.• Choose “Square” from the pop-up menu, <strong>and</strong> turn audio on to hear the square wave.Click on the toggle above the mute~ object to disable the patcher pulsewave subpatch.Click on the same toggle again to unmute the subpatch.This is similar to using the begin~ <strong>and</strong> selector~ objects, but the mute~ object disables theentire subpatch. (Also, the syntax is a little different. Because of the verb “mute”, a nonzeroint to mute~ has the effect of turning audio off, <strong>and</strong> 0 turns audio on.)In the tutorial example, it really is overkill to have the output of patcher pulsewave go toselector~ <strong>and</strong> to have a mute~ object to mute the subpatch. However, it’s done here toshow a distinction. The selector~ can cut off the flow of signal from the patcher pulsewavesubpatch, but the MSP objects in the subpatch continue to run (because there is no begin~object at its beginning). The mute~ object allows one to actually stop the processing in thesubpatch, without using begin~ <strong>and</strong> selector~.• Double-click on the patcher pulsewave object to see its contents.Output is 1 for half the cycle, <strong>and</strong> 0 for half the cycle89

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!