OpenNoteBlockStudio icon indicating copy to clipboard operation
OpenNoteBlockStudio copied to clipboard

BPM changes when project loaded

Open Inwoo1432 opened this issue 2 years ago • 1 comments

Describe the bug When you set BPM to 110 for example, It works fine, but when you save your project and load it again, It automatically changes into 109.95 bpm.

(This problem can be temporarily solved by setting BPM to 110 every single time when you open the project)

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Settings'
  2. Click on 'Preference'
  3. Click on 'Playback'
  4. Click on 'Beats per minute (BPM)'
  5. Click on 'OK'
  6. Set BPM to '110'
  7. Save The Project.
  8. Load it again.
  9. See How BPM Is Changed Into '109.95'

Expected behavior It should be exactly same BPM when loaded.

Inwoo1432 avatar Jan 26 '22 23:01 Inwoo1432

Thank your for reporting the issue!

This is caused by the tempo value being stored in ticks per second (t/s) in .nbs files. One tick per second equals 3.75 BPM, so only BPMs that are multiples of that value can be stored and loaded properly. This is one of the issues we plan to address in version 6 of the NBS format.

Bentroen avatar Jan 26 '22 23:01 Bentroen