Class: Scruby::Audio::Ugens::OutputProxy

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

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 collapse

Attributes inherited from Ugen

#channels, #inputs, #rate, #special_index

Instance Method Summary collapse

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, source, output_index, name = nil) ⇒ OutputProxy

Returns a new instance of OutputProxy.



8
9
10
11
# File 'lib/scruby/audio/ugens/multi_out_ugens.rb', line 8

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.



6
7
8
# File 'lib/scruby/audio/ugens/multi_out_ugens.rb', line 6

def control_name
  @control_name
end

#output_indexObject (readonly)

Returns the value of attribute output_index.



6
7
8
# File 'lib/scruby/audio/ugens/multi_out_ugens.rb', line 6

def output_index
  @output_index
end

#sourceObject (readonly)

Returns the value of attribute source.



6
7
8
# File 'lib/scruby/audio/ugens/multi_out_ugens.rb', line 6

def source
  @source
end

Instance Method Details

#add_to_synthdefObject



17
# File 'lib/scruby/audio/ugens/multi_out_ugens.rb', line 17

def add_to_synthdef; end

#indexObject



13
14
15
# File 'lib/scruby/audio/ugens/multi_out_ugens.rb', line 13

def index 
  @source.index
end