lib/music-transcription/part.rb in music-transcription-0.5.3 vs lib/music-transcription/part.rb in music-transcription-0.5.5

- old
+ new

@@ -67,13 +67,10 @@ # Add on notes and dynamic_profile from another part, producing a new # Part object. The offsets of value changes in the dynamic profile, # for the other part, will be considered relative from end of current part. def append! other - d = self.duration - @dynamic_profile.merge_changes!(d => Change::Immediate.new(other.dynamic_profile.start_value)) - @dynamic_profile.merge_changes!(other.dynamic_profile.shift(d).value_changes) - + @dynamic_profile.append!(other.dynamic_profile,self.duration) @notes += other.notes.map {|x| x.clone} return self end end