lib/head_music/content/placement.rb in head_music-0.24.1 vs lib/head_music/content/placement.rb in head_music-0.24.2
- old
+ new
@@ -3,9 +3,10 @@
# A placement is a note or rest at a position within a voice in a composition
class HeadMusic::Placement
include Comparable
attr_reader :voice, :position, :rhythmic_value, :pitch
+
delegate :composition, to: :voice
delegate :spelling, to: :pitch, allow_nil: true
def initialize(voice, position, rhythmic_value, pitch = nil)
ensure_attributes(voice, position, rhythmic_value, pitch)