musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
11.8k stars 2.56k forks source link

Adding fermata increases tempo dramatically, if fermata was added after changing tempo with tempo slider #17401

Open ruza-net opened 1 year ago

ruza-net commented 1 year ago

Issue type

General playback bug

Bug description

I have a score with a set tempo (increased uniformly by a percentage). One particular measure ends with a sequence of three 16ths (interrupted by a 16th rest), followed by a quarter. Note that when I play this sequence, the playback proceeds as expected (though I think the 16ths are too fast); after the measure ends, the following measures have the correct tempo.

When I add a fermata to the quarter, however, the tempo after this measure is about 50% faster than the original tempo. This increase in tempo persists even after "undo". The only way to reset the tempo is to delete the measures and create them anew.

Steps to reproduce

  1. Create two consecutive measures, A and B.
  2. Fill them with quarter notes.
  3. In measure A, replace the penultimate quarter note with a sequence of 16ths (note-note-rest-note).
  4. Increase playback tempo by a percentage (e.g. to 175%).
  5. In measure A, add fermata above the last note.
  6. Observe the playback tempo.

Note: The order of the steps above doesn't really matter, as long as the percentage increase of tempo precedes the addition of fermata.

Screenshots/Screen recordings

see https://github.com/musescore/MuseScore/issues/17401#issuecomment-1540246426

MuseScore Version

4.0.2-230651546, revision: github-musescore-musescore-dbe7c6d

Regression

I don't know

Operating system

macOS 12.4, Arch.: x86_64

Additional context

No response

DmitryArefiev commented 1 year ago

The problem here is because fermata was added after increasing playback tempo with tempo slider

  1. Change tempo with tempo slider
  2. Add fermata
  3. Playback

https://github.com/musescore/MuseScore/assets/90187801/d35fe34a-9151-4edb-92ce-d15eea87bb44