Class: Tone::Event::Pattern
Instance Method Summary collapse
-
#initialize(notes, type, &block) ⇒ Pattern
constructor
A new instance of Pattern.
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 |