Class: Tone::Event::Loop

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

Instance Method Summary collapse

Constructor Details

#initialize(interval, &block) ⇒ Loop

Returns a new instance of Loop.



32
33
34
# File 'lib/tone/event.rb', line 32

def initialize(interval, &block)
  super `new Tone.Loop(#{block.to_n}, interval)`
end