Class: Scruby::Audio::Ugens::MultiOutUgen

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

Direct Known Subclasses

Control, In

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 Ugen

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Ugen

#encode, instantiate, #muladd, synthdef, synthdef=, #to_s, #ugen?

Methods included from UgenOperations

included, #valid_ugen_input?

Constructor Details

#initialize(rate, *channels) ⇒ MultiOutUgen

Returns a new instance of MultiOutUgen.



21
22
23
24
# File 'lib/scruby/audio/ugens/multi_out_ugens.rb', line 21

def initialize( rate, *channels )
  super rate
  @channels = channels
end

Class Method Details

.new(rate, *args) ⇒ Object



26
27
28
# File 'lib/scruby/audio/ugens/multi_out_ugens.rb', line 26

def self.new( rate, *args )
  super( rate, *args ).channels #returns the channels but gets instantiated
end