Class: Scruby::Ugens::UnaryOpUGen

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

Constant Summary

Constant Summary

Constants inherited from Ugen

Scruby::Ugens::Ugen::E_RATES, Scruby::Ugens::Ugen::RATES, Scruby::Ugens::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, input) ⇒ Object



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

def self.new operator, input
  super
end

Instance Method Details

#special_indexObject



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

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