music-notation-swift / music-notation-core

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

Remove need for Foundation/Darwin.C #146

Open drumnkyle opened 4 years ago

drumnkyle commented 4 years ago

Look for comments referencing this issue number in the code and remove the need for these imports. It will build on iOS or macOS even if you remove it. The method you need to fix is to use Double.rounded(_:) instead of the free function floor in the places you see this. Then, remove these imports.

drumnkyle commented 4 years ago

In MeasureDurationValidator, you will also need to use something instead of pow and log. If there is no equivalent in Swift, then you will have to leave this import. If so, create a new issue to resolve that later when hopefully it's added to Swift.