Class: Tone::Event::Sequence

Inherits:
Base
  • Object
show all
Defined in:
lib/tone/event.rb

Instance Method Summary collapse

Constructor Details

#initialize(segments, duration, &block) ⇒ Sequence

Returns a new instance of Sequence.



26
27
28
# File 'lib/tone/event.rb', line 26

def initialize(segments, duration, &block)
  super `new Tone.Sequence(#{block.to_n}, #{segments.to_n}, duration)`
end