Writes digital data to a digital output (e.g.: an LED or a trigger/gate output).
digitalPin |
Digital pin number to write to. Pin numbers begin at 0. This value cannot be modulated. |
output |
Value to write out to the pin - the value will be 1 when the argument is larger than 0, otherwise 0. |
mul | |
add |
digitalPin |
Digital pin number to write to. Pin numbers begin at 0. This value cannot be modulated. |
output |
Value to write out to the pin - the value will be 1 when the argument is larger than 0, otherwise 0. |
mul | |
add |
// write a sine oscillator's output to a pin
(
SynthDef("help-DigitalOut",{ arg out=0;
DigitalOut.ar( 0, SinOsc.ar( 10 ) );
}).play;
)