lib/head_music/staff.rb in head_music-2.0.1 vs lib/head_music/staff.rb in head_music-3.0.0
- old
+ new
@@ -11,8 +11,8 @@
@line_count = line_count || DEFAULT_LINE_COUNT
@instrument = HeadMusic::Instrument.get(instrument) if instrument
end
def clef
- default_clef || instrument&.default_staffs&.first
+ default_clef || instrument&.default_staves&.first&.clef
end
end