Class: Chord
Instance Method Summary collapse
-
#initialize(notes = []) ⇒ Chord
constructor
A new instance of Chord.
- #inspect(key = nil) ⇒ Object
Constructor Details
#initialize(notes = []) ⇒ Chord
Returns a new instance of Chord.
4 5 6 |
# File 'lib/kuromusic/Track/Measure/Chord.rb', line 4 def initialize(notes = []) @notes = notes end |
Instance Method Details
#inspect(key = nil) ⇒ Object
8 9 10 |
# File 'lib/kuromusic/Track/Measure/Chord.rb', line 8 def inspect(key = nil) @notes.map{|n| n.inspect(key)}.join(",\n ") end |