Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. class:: AudioControl
  2. summary:: Generates a DC Offset ramp (Constant signal of a number)
  3. related:: Classes/AudioControl, Classes/AudioControl
  4. categories:: MultiOutUGen : UGen : AbstractFunction : Object
  5.  
  6. Description::
  7.  
  8. This object is pretty much the equivalent of MaxMSP/PureData sig~ object, allowing to generate: constant signal of a number.
  9. Basically what audiocontroll does, is that it converts a number to a signal. (It also accepts a signal in, which it ignores.)
  10.  
  11. note::
  12. 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
  13. ::
  14.  
  15. classmethods::
  16.  
  17. method::ar
  18.  
  19. argument::values
  20. 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).
  21.  
  22.  
  23. Examples::
  24. Patching input to output
  25. code::
  26.  
  27. // defines the dc offset parameter of an audiocontrol ugen
  28. ////////////////////////////
  29. ////////////////////////////
  30. {AudioControl.ar(0.5)}.plot
  31. {AudioControl.ar(1)}.plot
  32. {AudioControl.ar(0)}.plot
  33. {AudioControl.ar(-0.5)}.plot
  34.  
  35. // defines the DC offset value stochastically, comprising a number in between 1 and -1 (DC ramp values)
  36. ////////////////////////////
  37. ////////////////////////////
  38. {AudioControl.ar(rrand(-1, 1)}.plot
  39. ::
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement