music-notation-swift / music-notation-core

Music Notation Library in Swift (Deprecated. See `music-notation` instead)
MIT License
115 stars 16 forks source link

Refactor `MeasureDurationValidator.findLargestDuration(lessThan:) -> NoteDuration` #141

Open sprzenus opened 4 years ago

sprzenus commented 4 years ago

The function MeasureDurationValidator.findLargestDuration(lessThan:) -> NoteDuration should be refactored. All durations should be static getter of NoteDuration struct and function findLargest(start:, end:) -> NoteDuration should be in Array extension for equatables elements

drumnkyle commented 4 years ago

Make NoteDuration conform to CaseIterable and use allCases