melanchall / drywetmidi

.NET library to read, write, process MIDI files and to work with MIDI devices
https://melanchall.github.io/drywetmidi
MIT License
540 stars 75 forks source link

BeatsPerMinute value error #110

Closed RadioDisney closed 3 years ago

RadioDisney commented 3 years ago

Melanchall.DryWetMidi.Interaction.Tempo.BeatsPerMinute When the bpm is 69.999988333335278,this feild return 69

melanchall commented 3 years ago

Hi,

Yes, we need to change the type of BeatsPerMinute to double. I'll do this and let you know.

Thanks, Max

melanchall commented 3 years ago

I changed the type of the BeatsPerMinute property to double. Now it's up to you how to round its value.

Changes are in develop branch. You can either build the library from sources or take new DLL from here:

Thanks for the issue and for using the library.

melanchall commented 3 years ago

@RadioDisney Is your problem solved?

melanchall commented 3 years ago

Closing due to no response.