lmms icon indicating copy to clipboard operation
lmms copied to clipboard

Sound of exported LV2 instrument plugins is shifted down one half tone

Open spechtstatt opened this issue 3 years ago • 7 comments

Bug Summary

When exporting sounds from a LV2 instrument plugin the resulting mp3 or wav file plays this sounds one half tone lower.

Steps to reproduce

  • Add a LV2 instrument plugin - e.g. Calf Organ or MDA ePiano
  • Create a melody
  • Export it as mp3 or wav format (between loop markers)
  • Resulting melody plays one half tone lower

Expected behavior

Exported sound from LV2 instrument plugins should match the sound played directly in LMMS

Actual behavior

Exported sound from LV2 instrument plugins are shifted one half tone lower

Affected LMMS versions

Version 1.3.0-alpha.1.149

spechtstatt avatar May 08 '22 15:05 spechtstatt

My guess would be that you run LMMS at 48kHz and export at 44.1kHz, but the LV2 plugin isn't aware of the sample rate change for some reason.

DomClark avatar May 08 '22 16:05 DomClark

the LV2 plugin isn't aware of the sample rate change for some reason.

It seems like Lv2ControlBase::reloadPlugin is supposed to handle sample rate change, but the function is not implemented yet. @JohannesLorenz Do you want to fix this?

PhysSong avatar May 09 '22 04:05 PhysSong

@JohannesLorenz Do you want to fix this?

I won't fix it before the end of reorg :joy: But if you want to fix it earlier, go ahead.

JohannesLorenz avatar May 09 '22 20:05 JohannesLorenz

Time to work on this.

JohannesLorenz avatar May 29 '22 22:05 JohannesLorenz

@spechtstatt I submitted PR #6419. Totally untested. Can you please check?

JohannesLorenz avatar May 30 '22 01:05 JohannesLorenz

OK, please don't test. It's causes segmentation faults, I need to fix it.

JohannesLorenz avatar May 30 '22 01:05 JohannesLorenz

OK, please don't test. It's causes segmentation faults, I need to fix it.

No problem - thank you for working on it.

spechtstatt avatar May 30 '22 18:05 spechtstatt