lib/music-transcription/note.rb in music-transcription-0.4.1 vs lib/music-transcription/note.rb in music-transcription-0.4.2
- old
+ new
@@ -36,11 +36,11 @@
end
# Compare the equality of another Note object.
def == other
return (@duration == other.duration) &&
- (self.pitches.entries == other.pitches) &&
- (@links == other.links) &&
+ (self.pitches == other.pitches) &&
+ (@links.to_a.sort == other.links.to_a.sort) &&
(@accent == other.accent)
end
# Set the note duration.
# @param [Numeric] duration The duration to use.