Class: Scruby::Audio::Ugens::Control

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

Overview

:nodoc:

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 MultiOutUgen

new

Methods inherited from Ugen

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

Methods included from UgenOperations

included, #valid_ugen_input?

Constructor Details

#initialize(rate, *names) ⇒ Control

Returns a new instance of Control.



37
38
39
# File 'lib/scruby/audio/ugens/multi_out_ugens.rb', line 37

def initialize( rate, *names )
  super rate, *names.collect_with_index{|n, i| OutputProxy.new rate, self, i, n }
end

Class Method Details

.and_proxies_from(names) ⇒ Object



41
42
43
# File 'lib/scruby/audio/ugens/multi_out_ugens.rb', line 41

def self.and_proxies_from( names )
  Control.new( names.first.rate, *names )
end