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
12.33k stars 2.66k forks source link

Notes cut off on exported audio, when using VST instrument (EastWest Opus) #24961

Open Ctrl-Shift-Alvin opened 1 month ago

Ctrl-Shift-Alvin commented 1 month ago

Issue type

VST bug

Description with steps to reproduce

  1. Create piano score
  2. Write some sustained (pedal) passages with different note lengths and articulations
  3. Select "EastWest Opus" VST plugin in the mixer
  4. Load the "Bösendorfer 290" instrument
  5. Play score and notice the mostly normal playback
  6. Export to MP3 using any settings
  7. Audio is cut off in the exported MP3

Supporting files, videos and screenshots

audio.zip The ZIP contains "recorded_audio.mp3" which shows what the software plays in realtime, and "exported_audio.mp3" which shows the result of exporting the audio. diagnostic_info.zip

What is the latest version of MuseScore Studio where this issue is present?

Tried it with "OS: Windows 11 Version 2009 or later, Arch.: x86_64, MuseScore Studio version (64-bit): 4.4.2-242570931, revision: github-musescore-musescore-3130f97" as well as with the latest nightly build "OS: Windows 11 Version 2009 or later, Arch.: x86_64, MuseScore Studio version (64-bit): 4.4.3-242720503, revision: github-musescore-musescore-7f1f1fc"


one more case with East West https://musescore.org/en/node/370720

Regression

Yes, this worked in MuseScore 4.0

Operating system

Windows 11

Additional context

The exported audio is fine with all soundfonts as well as with MuseSounds. The sound seems to be cut on all notes, even if no pedal is used. However, using pedal does make it even worse. It seems like MS forces the plugin to stop playback of the notes, when their end is reached, instead of letting the natural reverb play. (that's what my ears tell me) I tried changing all settings on the VST plugin, disabling all reverb a.s.o. but the problem is the actual playback of the notes.

I'm happy to try anything you need me to with my setup, just tell me what to do.

Checklist

DmitryArefiev commented 1 month ago

@Ctrl-Shift-Alvin I can't reproduce with Piano VST from Kontakt 7. Does it occur with other VSTs or only with EastWest Opus Bösendorfer 290?

Also, I have noticed interesting detail with your audio file. exported_audio.mp3 has 44kHz and 130kbps which is weird, we don't have that setting in Export Audio dialog..

And are you sure it's not a regression? (so it was in MuseScore 4.0.0 too)

Ctrl-Shift-Alvin commented 1 month ago

@DmitryArefiev Hello. Thank you for your swift reply, and sorry for my late one. I was pretty busy the last few days. Yes, I can verify that the original unpacked file is also 130kbps. Since I cannot reproduce that, I assume that it was another app that corrupted it in some way. However, the actual clipped audio is still there, even when playing with different software like VLC/AIMP, directly after exporting, to rule out any external corruption. Since I only have 2 other VSTs, which are Pianoteq 8 and the AIR music piano one (which are not compatible with MS4), I unfortunately cannot try other instruments. And I have to apologize, after further testing in MS4.0, there is regression. My score must've been too short for me to hear the errors. I have updated the issue. I've attached a short score I composed in MS4.0 very quickly and exported directly after, and then that same score opened in MS4.4.2 and exported. The difference is very clear. Test Score Exports.zip

DmitryArefiev commented 1 month ago

@Ctrl-Shift-Alvin Cool! I can use Pianoteq 8 in demo mode. Can you also attach the score please?

Ctrl-Shift-Alvin commented 1 month ago

@DmitryArefiev Here you go: Test Score.zip

DmitryArefiev commented 1 month ago

@Ctrl-Shift-Alvin Thanks! I can reproduce it with Pianoteq 8 (Demo), but only when Export MP3 at 32kHz (all fine with 44 and 48) It gives me a notes cut off at the end:

https://github.com/user-attachments/assets/6e9f4b9f-1785-4948-9dd3-1484035d130e

Test Score 40.zip

@RomanPudashkin This audio glitch at the end doesn't happen in 4.4.1

DmitryArefiev commented 1 month ago

@Ctrl-Shift-Alvin Can you also provide your environment please? CPU model, Audio device and what sample rate is set in Windows?

Ctrl-Shift-Alvin commented 1 month ago

@DmitryArefiev Sure! CPU: AMD Ryzen 5 7600X Motherboard: ASUS ROG STRIX B650E-F GAMING WIFI Output device: Corsair Virtuoso USB Wireless Headset (48kHz) Buffer size (in MS): 4096

Ctrl-Shift-Alvin commented 1 month ago

And just for the record, for anybody else reading: I'm not only getting notes cut off at the end, it's pretty much every note, in my situation.

DmitryArefiev commented 3 weeks ago

And just for the record, for anybody else reading: I'm not only getting notes cut off at the end, it's pretty much every note, in my situation.

@Ctrl-Shift-Alvin Unfortunately, I can't reproduce it on other VSTs (and I don't have EastWest Opus license)

But some quick questions:

  1. Is it happen when you export the score with MuseSounds Grand Piano?
  2. Corsair Virtuoso USB Wireless Headset (48kHz) is output devices in Sounds settings in Windows? What happens if you turn off Corsair Headset and switch to internal audio card? (probably Realtek audio)
DmitryArefiev commented 3 weeks ago

Another report with East West https://musescore.org/en/node/370720

Ctrl-Shift-Alvin commented 3 weeks ago

@DmitryArefiev Hi again! For No. 1: No, I don't seem to have any issues with either the MS soundfonts OR the MuseSounds piani. For No. 2: I went ahead and disabled all playback devices aside from the "Realtek Digital Output", that included all speakers/headsets/external outputs, all software devices (SteelSeries GG, VB-Cable). The result is the same.

I imagine this will be easier to diagnose with the plugin at your disposal, so I would be happy to provide you (or whoever needs it) my Opus license/account. If you are willing to download Opus and the plugin (around 100GB), just contact me via the email on my profile. Otherwise, I'm still happy to try out anything further that's necessary.

DmitryArefiev commented 2 weeks ago

@Ctrl-Shift-Alvin Thanks for info. I see this occurs only with East West piano (another report on forum confirms that - https://musescore.org/en/node/370720)

I imagine this will be easier to diagnose with the plugin at your disposal, so I would be happy to provide you (or whoever needs it) my Opus license/account.

Thanks for help! But I think we can try to ask a license for testing from East West directly (FYI @bkunda )

Ctrl-Shift-Alvin commented 1 week ago

Alright. In case that doesn't work out, my offer is still on the table. Thanks for looking into this. <3