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.79k stars 2.56k forks source link

[VST] Notes are not retriggered correctly during playback and note input #23364

Open metasekk opened 5 days ago

metasekk commented 5 days ago

Issue type

VST Bug

Bug description

I report three issues which I believe pertain to the same kind of behaviour for VSTs:

  1. Playback is not triggered at all in two cases: (a) if it is stopped and restarted at the same position, and (b) if the playback cursor is located on a tied note. See the video below (at the end, incidentally, you will notice that there is a weird playback artifact on the third staff that uses Muse Sounds): https://github.com/musescore/MuseScore/assets/120221700/7c86df37-e667-41b4-ba65-29165d011bf0
  2. Playback and note-input preview are not correctly retriggered (that is, notes are not triggered from the beginning) if playback was stopped abruptly. Instead, the new sounds are superimposed on the end of the sound that was stopped suddenly. This is conspicuous for sustained sounds, as shown in the video below, but it is likely to happen for short sounds too (to back up this point, see point 3. below). https://github.com/musescore/MuseScore/assets/120221700/dafe89d4-4742-4058-9de4-2b32b1da5389
  3. In the latter case, the last played note is not shown as released on VST interfaces (apparently, the information that playback was stopped is not sent to the VST user interface). https://github.com/musescore/MuseScore/assets/120221700/d26c8254-2d9a-4add-96ba-1b4352bae5d2 (4. In long scores, playback is not triggered for the first note of any bar: this issue is known as #22638)

Steps to reproduce

See above

Screenshots/Screen recordings

No response

MuseScore Version

Tested on latest 4.4 master and 4.3. Probably not a regression in MS4.

Regression

I don't know

Operating system

Win10 (22H2); RAM: 16Go; CPU: Intel Core i5-9300H (2.40GHz)

Additional context

Tested on different sounds in DecentSampler and Spitfire Audio LABS.

Reported on musescore.org (https://musescore.org/en/node/341622, https://musescore.org/en/node/298806, https://musescore.org/en/node/346340)