Class: Ruck::UGen::OutChannel

Inherits:
Object
  • Object
show all
Includes:
Source
Defined in:
lib/ruck/ugen/ugen.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.



211
212
213
214
# File 'lib/ruck/ugen/ugen.rb', line 211

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

Instance Method Details

#next(now) ⇒ Object



216
217
218
219
# File 'lib/ruck/ugen/ugen.rb', line 216

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