Class: Scruby::Ugens::BinaryOpUGen

Inherits:
BasicOpUgen show all
Defined in:
lib/scruby/ugens/operation_ugens.rb

Constant Summary

Constants inherited from Ugen

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

Instance Attribute Summary

Attributes inherited from BasicOpUgen

#operator

Attributes inherited from Ugen

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Ugen

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

Constructor Details

This class inherits a constructor from Scruby::Ugens::Ugen

Class Method Details

.new(operator, left, right) ⇒ Object



39
40
41
# File 'lib/scruby/ugens/operation_ugens.rb', line 39

def self.new operator, left, right
  super
end

Instance Method Details

#special_indexObject



43
44
45
# File 'lib/scruby/ugens/operation_ugens.rb', line 43

def special_index
  UgenOperations::BINARY[operator.to_sym]
end