Class: Scruby::Audio::Ugens::OperationUgens::UnaryOpUgen

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, input) ⇒ Object



28
29
30
# File 'lib/scruby/audio/ugens/operation_ugens.rb', line 28

def self.new( operator, input )
  super
end

Instance Method Details

#special_indexObject



32
33
34
# File 'lib/scruby/audio/ugens/operation_ugens.rb', line 32

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