Class: Scruby::Audio::Ugens::OperationUgens::BinaryOpUGen

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

Constant Summary

Constants inherited from Ugen

Ugen::E_RATES, Ugen::RATES

Constants included from UgenOperations

UgenOperations::BINARY, UgenOperations::OP_SYMBOLS, UgenOperations::UNARY

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, instantiate, #muladd, synthdef, synthdef=, #to_s, #ugen?

Methods included from UgenOperations

included, #valid_ugen_input?

Constructor Details

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

Class Method Details

.new(operator, left, right) ⇒ Object



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

def self.new( operator, left, right )
  super
end

Instance Method Details

#special_indexObject



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

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