lib/head_music/staff.rb in head_music-3.0.0 vs lib/head_music/staff.rb in head_music-3.0.1
- old
+ new
@@ -4,11 +4,11 @@
class HeadMusic::Staff
DEFAULT_LINE_COUNT = 5
attr_reader :default_clef, :line_count, :instrument
- def initialize(default_clef, instrument: nil, line_count: nil)
- @default_clef = HeadMusic::Clef.get(default_clef)
+ def initialize(default_clef_key, instrument: nil, line_count: nil)
+ @default_clef = HeadMusic::Clef.get(default_clef_key)
@line_count = line_count || DEFAULT_LINE_COUNT
@instrument = HeadMusic::Instrument.get(instrument) if instrument
end
def clef