Class: Ruck::UGen::OutChannel
- Includes:
- Source
- Defined in:
- lib/ruck/ugen/ugen.rb
Instance Method Summary collapse
-
#initialize(parent, channel_number) ⇒ OutChannel
constructor
A new instance of OutChannel.
- #next(now) ⇒ Object
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 |