Class: Scruby::Ugens::BasicOpUgen

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

Overview

:nodoc:

Direct Known Subclasses

BinaryOpUGen, UnaryOpUGen

Constant Summary

Constants inherited from Ugen

Ugen::E_RATES, Ugen::RATES, Ugen::VALID_INPUTS

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, #muladd, params, synthdef, synthdef=, valid_input?

Constructor Details

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

Instance Attribute Details

#operatorObject

Returns the value of attribute operator.



5
6
7
# File 'lib/scruby/ugens/operation_ugens.rb', line 5

def operator
  @operator
end

Class Method Details

.new(operator, *inputs) ⇒ Object



8
9
10
11
12
# File 'lib/scruby/ugens/operation_ugens.rb', line 8

def new operator, *inputs 
  obj = super get_rate(inputs), inputs
  set_operator_for obj, operator
  obj
end