Class: Ruck::OutChannel

Inherits:
Object show all
Includes:
Source
Defined in:
lib/ruck/ugen/general.rb

Instance Method Summary collapse

Methods included from Source

#<<, #>>, #last, #out, #out_channels

Constructor Details

#initialize(parent, channel_number) ⇒ OutChannel

Returns a new instance of OutChannel.



167
168
169
170
# File 'lib/ruck/ugen/general.rb', line 167

def initialize(parent, channel_number)
  @parent = parent
  @channel_number = channel_number
end

Instance Method Details

#next(now) ⇒ Object



172
173
174
175
# File 'lib/ruck/ugen/general.rb', line 172

def next(now)
  return @last if @now == now
  @last = @parent.next(now, @channel_number)
end