Class: Scruby::Audio::Ugens::OperationUgens::BasicOpUgen
- Defined in:
- lib/scruby/audio/ugens/operation_ugens.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Ugen
Constants included from UgenOperations
UgenOperations::BINARY, UgenOperations::OP_SYMBOLS, UgenOperations::UNARY
Instance Attribute Summary collapse
-
#operator ⇒ Object
Returns the value of attribute operator.
Attributes inherited from Ugen
#channels, #index, #inputs, #output_index, #rate, #special_index
Class Method Summary collapse
-
.new(operator, *inputs) ⇒ Object
:nodoc:.
Methods inherited from Ugen
#encode, #initialize, instantiate, #muladd, synthdef, synthdef=, #to_s, #ugen?
Methods included from UgenOperations
Constructor Details
This class inherits a constructor from Scruby::Audio::Ugens::Ugen
Instance Attribute Details
#operator ⇒ Object
Returns the value of attribute operator.
6 7 8 |
# File 'lib/scruby/audio/ugens/operation_ugens.rb', line 6 def operator @operator end |
Class Method Details
.new(operator, *inputs) ⇒ Object
:nodoc:
9 10 11 12 13 |
# File 'lib/scruby/audio/ugens/operation_ugens.rb', line 9 def new( operator, *inputs ) #:nodoc: obj = super( get_rate(inputs), *inputs ) set_operator_for( obj, operator ) obj end |