Class: Ruck::InChannel
Instance Attribute Summary
Attributes included from UGen
#name
Instance Method Summary
collapse
Methods included from Target
#add_source, #remove_source
Methods included from UGen
#to_s
Constructor Details
#initialize(attrs = {}) ⇒ InChannel
Returns a new instance of InChannel.
147
148
149
150
151
|
# File 'lib/ruck/ugen/general.rb', line 147
def initialize(attrs = {})
parse_attrs attrs
@ins = []
@last = 0.0
end
|
Instance Method Details
#attr_names ⇒ Object
159
160
161
|
# File 'lib/ruck/ugen/general.rb', line 159
def attr_names
[]
end
|
#next(now) ⇒ Object
153
154
155
156
157
|
# File 'lib/ruck/ugen/general.rb', line 153
def next(now)
return @last if @now == now
@now = now
@last = @ins.inject(0) { |samp, ugen| samp += ugen.next(now) }
end
|