Class: Tone::Event::Pattern

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

Instance Method Summary collapse

Constructor Details

#initialize(notes, type, &block) ⇒ Pattern

Returns a new instance of Pattern.



14
15
16
# File 'lib/tone/event.rb', line 14

def initialize(notes, type, &block)
  super `new Tone.Pattern(#{block.to_n}, #{notes.to_n}, type)`
end