Supex.Ugen.Pan2 (supex v0.2.0)

View Source

Module for the SuperCollider Pan2 panning unit, see https://doc.sccode.org/Classes/Pan2.html

Defines a %Pan2{} struct with:

  • in: input signal (usually a string expression)
  • pos: pan position (-1.0 = left, 0 = center, 1.0 = right), defaults to center.
  • level: output level scaling

Summary

Functions

Builds the SuperCollider command from the %Pan2{} struct.

Functions

command(pan2)

(since 0.2.0)
@spec command(struct()) :: binary()

Builds the SuperCollider command from the %Pan2{} struct.

Examples

iex> %Pan2{in: "SinOsc.ar(440)", pos: 0.5, level: 1.0, lfo: false}
"Pan2.ar(SinOsc.ar(440), pos: 0.5, level: 1.0);"

iex> %Pan2{in: "SinOsc.kr(2)", pos: -0.5, level: 0.8, lfo: true}
"Pan2.kr(SinOsc.kr(2), pos: -0.5, level: 0.8);"