lib/music-transcription/note.rb in music-transcription-0.4.0 vs lib/music-transcription/note.rb in music-transcription-0.4.1

- old
+ new

@@ -28,18 +28,18 @@ attr_accessor :accent # A new instance of Note. def initialize duration, pitches = [], links: {}, accent: nil self.duration = duration - @pitches = Set.new(pitches) + @pitches = Set.new(pitches).sort @links = links self.accent = accent end # Compare the equality of another Note object. def == other return (@duration == other.duration) && - (self.pitches == other.pitches) && + (self.pitches.entries == other.pitches) && (@links == other.links) && (@accent == other.accent) end # Set the note duration.