Class: Scruby::Ugens::Rotate2

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

Constant Summary

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(x, y, pos = 0.0) ⇒ Object



54
55
56
# File 'lib/scruby/ugens/panner.rb', line 54

def ar x, y, pos = 0.0
  new :audio, 2, x, y, pos
end

.kr(x, y, pos = 0.0) ⇒ Object



58
59
60
# File 'lib/scruby/ugens/panner.rb', line 58

def kr x, y, pos = 0.0
  new :control, 2, x, y, pos
end