Class: Ruck::OutChannel
- Includes:
- Source
- Defined in:
- lib/ruck/ugen/general.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.
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 |