Integer is definitely not accurate enough to store a value in beats per minute. The only suitable way the tempo can be stored as an integer is as the original microseconds per quarter note value, which is how it is encoded in the MIDI file. I don't know if NAudio makes any assumptions for the BPM variable having been rounded to an int value though.
↧