Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class:: AudioControl
- summary:: Generates a DC Offset ramp (Constant signal of a number)
- related:: Classes/AudioControl, Classes/AudioControl
- categories:: MultiOutUGen : UGen : AbstractFunction : Object
- Description::
- This object is pretty much the equivalent of MaxMSP/PureData sig~ object, allowing to generate: constant signal of a number.
- Basically what audiocontroll does, is that it converts a number to a signal. (It also accepts a signal in, which it ignores.)
- note::
- use this with caution, as extremme dc offset values may damage your audio equipment (soundcard, amps, speakers, headphones), forcing you to replace components such as the speakers or headphones membranes, in case you corrupt them
- ::
- classmethods::
- method::ar
- argument::values
- indicates the dc value to generate, this can be set, for instance, to an opensoundcontrol stream, o midi event stream, in case you want to use it to generate audiosignal (i.e.: osc/midi 2 cv conversion).
- Examples::
- Patching input to output
- code::
- // defines the dc offset parameter of an audiocontrol ugen
- ////////////////////////////
- ////////////////////////////
- {AudioControl.ar(0.5)}.plot
- {AudioControl.ar(1)}.plot
- {AudioControl.ar(0)}.plot
- {AudioControl.ar(-0.5)}.plot
- // defines the DC offset value stochastically, comprising a number in between 1 and -1 (DC ramp values)
- ////////////////////////////
- ////////////////////////////
- {AudioControl.ar(rrand(-1, 1)}.plot
- ::
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement