Class: Scruby::Ugens::OutputProxy

Inherits:
Ugen show all
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 collapse

Attributes inherited from Ugen

#channels, #inputs, #rate, #special_index

Instance Method Summary collapse

Methods inherited from Ugen

#==, #encode, #muladd, params, synthdef, synthdef=, valid_input?

Constructor Details

#initialize(rate, source, output_index, name = nil) ⇒ OutputProxy

Returns a new instance of OutputProxy.



31
32
33
34
# File 'lib/scruby/ugens/multi_out.rb', line 31

def initialize rate, source, output_index, name = nil
  super rate
  @source, @control_name, @output_index = source, name, output_index
end

Instance Attribute Details

#control_nameObject (readonly)

Returns the value of attribute control_name.



28
29
30
# File 'lib/scruby/ugens/multi_out.rb', line 28

def control_name
  @control_name
end

#output_indexObject (readonly)

Returns the value of attribute output_index.



28
29
30
# File 'lib/scruby/ugens/multi_out.rb', line 28

def output_index
  @output_index
end

#sourceObject (readonly)

Returns the value of attribute source.



28
29
30
# File 'lib/scruby/ugens/multi_out.rb', line 28

def source
  @source
end

Instance Method Details

#add_to_synthdefObject



38
# File 'lib/scruby/ugens/multi_out.rb', line 38

def add_to_synthdef; end

#indexObject



36
# File 'lib/scruby/ugens/multi_out.rb', line 36

def index; @source.index; end