Class: Scruby::Ugens::Pan2

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

Direct Known Subclasses

LinPan2

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, pos = 0.0, level = 1.0) ⇒ Object



7
8
9
# File 'lib/scruby/ugens/panner.rb', line 7

def ar input, pos = 0.0, level = 1.0
  new :audio, 2, input, pos, level
end

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



11
12
13
# File 'lib/scruby/ugens/panner.rb', line 11

def kr input, pos = 0.0, level = 1.0
  new :control, 2, input, pos, level
end