Class: Scruby::Ugens::Pan4

Inherits:
Ugen show all
Includes:
MultiOut
Defined in:
lib/scruby/ugens/panner.rb

Constant Summary

Constants inherited from Ugen

Ugen::E_RATES, Ugen::RATES, Ugen::VALID_INPUTS

Instance Attribute Summary

Attributes inherited from Ugen

#channels, #index, #inputs, #output_index, #rate, #special_index

Class Method Summary collapse

Methods included from MultiOut

included, #initialize, #output_specs

Methods inherited from Ugen

#==, #encode, #initialize, #muladd, params, synthdef, synthdef=, valid_input?

Class Method Details

.ar(input, xpos = 0.0, ypos = 0.0, level = 1.0) ⇒ Object



24
25
26
# File 'lib/scruby/ugens/panner.rb', line 24

def ar input, xpos = 0.0, ypos = 0.0, level = 1.0
  new :audio, 4, input, xpos, ypos, level
end

.kr(input, xpos = 0.0, ypos = 0.0, level = 1.0) ⇒ Object



28
29
30
# File 'lib/scruby/ugens/panner.rb', line 28

def kr input, xpos = 0.0, ypos = 0.0, level = 1.0
  new :control, 4, input, xpos, ypos, level
end