Class: Scruby::Audio::Ugens::OperationUgens::BasicOpUgen

Inherits:
Ugen
  • Object
show all
Defined in:
lib/scruby/audio/ugens/operation_ugens.rb

Direct Known Subclasses

BinaryOpUGen, UnaryOpUgen

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 collapse

Attributes inherited from Ugen

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

Class 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

Instance Attribute Details

#operatorObject

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