Class: Scruby::Ugens::Control
- Includes:
- MultiOut
- Defined in:
- lib/scruby/ugens/multi_out.rb
Overview
:nodoc:
Constant Summary
Constants inherited from Ugen
Ugen::E_RATES, Ugen::RATES, Ugen::VALID_INPUTS
Instance Attribute Summary
Attributes inherited from Ugen
#channels, #index, #inputs, #output_index, #rate, #special_index
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rate, *names) ⇒ Control
constructor
A new instance of Control.
Methods included from MultiOut
Methods inherited from Ugen
#==, #encode, #muladd, params, synthdef, synthdef=, valid_input?
Constructor Details
#initialize(rate, *names) ⇒ Control
Returns a new instance of Control.
44 45 46 |
# File 'lib/scruby/ugens/multi_out.rb', line 44 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
48 49 50 |
# File 'lib/scruby/ugens/multi_out.rb', line 48 def self.and_proxies_from names new names.first.rate, *names end |