falkTX / Carla

Audio plugin host
https://kx.studio/carla
1.6k stars 147 forks source link

Carla baypatch + Dexed + LMMS problem #518

Open farvardin opened 7 years ago

farvardin commented 7 years ago

I'm using Carla baypatch in LMMS (1.1.3 and 1.2) for loading Dexed instruments, with Linux Mint 17.3 and kxstudio repository. It works rather OK, but sometimes some instruments in the carla plugin (lv2) are not correctly saved. I'd say 1/10 of them has this problem (most are saved ok). After reloading the song, we notice some settings in the instruments are different from what they were before saving them, so it sounds odd (for example in a FM instrument, the algorithm used will be the 1st instead of the 15th). But, if I open again the carla baypatch rack, clic on the option button to load the LV2 interface, then select the instrument again, it will reload correctly into the song. It's a bit tedious to do this for every instrument in a song, but it works at least...

I don't know if the problem is from LMMS, from Dexed or from Carla.

So it worked like this until the latest carla and dexed updates from kxstudio (2017-08-28 and 2017-08-26). Now it's worse, when loading a song, all instruments are muted. If like before I open the carla rack, and reload manually every instrument, it works. But the problem some other instruments are not listed in the dexed panel (they are probably in memory) so I can't click to reload them. Then I've upgrade LMMS to latest git version (1.2.0_rc3.51), and now when I click in a carla instrument, it just crashes LMMS. :(

falkTX commented 7 years ago

There was a small window of time where carla loading got broken because of juce. Projects saved within this time are broken. :( But I believe it has been fixed.

dexed backwards compatiblity was lost when updating to the new version. not sure what happened there, but likely an upstream issue. old projects with dexed need to be recreated now

regarding the crash within lmms, I cannot reproduce it, maybe something in lmms 1.2? how did you install this new version?

farvardin commented 7 years ago

ok, thank you for telling me. I'll need to test creating a new project in LMMS with dexed instruments, and check if the settings are kept better than in the previous version. Meanwhile, do you know where I could find the previous dexed package (20160323) from kxstudio? So I could finish my projects :)

For the crash again it was by loading an older project, maybe it's the reason. I'll test further. I've compiled LMMS from sources (gcc 4.8) and installed it using checkinstall

farvardin commented 7 years ago

for the older packages, I've recreated them from an other computer, using dpkg-repack, very easy to use:

sudo dpkg-repack dexed
dpkg-deb: building package dexed' in./dexed_20160323-1kxstudio2_all.deb'. sudo dpkg-repack dexed-lv2 dpkg-deb: building package dexed-lv2' in./dexed-lv2_20160323-1kxstudio2_amd64.deb'.

farvardin commented 7 years ago

I've installed the older dexed packages. Now I got sound. But when clicking on instrument for get the options, it made lmms crashing. So I've installed also the older carla packages. Thanks a lot for your help. Now I need to use an other computer for making more experiments with the newer packages. It's a pity LMMS doesn't seem to support Carla enough because it's absolutely wonderful to use them both (Carla + LMMS)

falkTX commented 6 years ago

I'm trying to see if I can reproduce this, but with the latest Carla and dexed from the kx repos, the issue does not happen for me. Can you confirm please?

farvardin commented 6 years ago

hi, thanks for having made some tests.

I've tried again, with LMMS 1.2.0-rc2.151 at the moment (I must compile newer version on this computer and I can't test latest Carla on my main computer because I have some work to finish and can't risk to break everything). And latest Carla (20171129) and Dexed (20171011)

What works: Creating a new file from scratch in LMMS, loading a dexed preset (from synprezFM for example) , saving. When I load again, there is sound. I haven't tried many patches, but it seems to work from a few tests.

What doesn't work:

So there is probably something broken in the older format of the song. Probably I'll use Ardour for my next works with Dexed...

falkTX commented 6 years ago

hmm might be an LMMS issue, not sure. can you sent one of these old songs, is that okay for you? (you can use email, just falktx at falktx dot com)

farvardin commented 6 years ago

I've just done it!

falkTX commented 6 years ago

Thanks, I will have a look at this before the next beta is out.

aegroto commented 4 years ago

I confirm this issue is still present using Carla 2.1.1 or 2.2.0 RC1 (carla and carla-git packages on Ubuntu repositories) and LMMS 1.2.2. I was able to work smoothly until I noticed that instruments were not saved anymore. I don't know what caused the bug but it should be pretty easy to reproduce.

farvardin commented 4 years ago

I don't think it's related to LMMS. This user is having similar problem with Cubase: https://github.com/asb2m10/dexed/issues/210

And I had this problem with Ardour as well (native version, without Carla bridge). I've made a video of the problem.

I haven't tried with VST as requested in the other issue (I suppose it's the same as LV2), anyway, Cubase only has VST so it will have a similar behavior, it's probably a problem related to Dexed.

farvardin commented 4 years ago

I was wrong. The problem is only related to the LV2 version of Dexed: I've made 2 tracks with the same patch, and only the LV2 version has the behavior you can hear in this video: https://www.youtube.com/watch?v=f_W96fira1U.

Tested on Muse-sequencer and Ardour5, same problem. The VST version is storing correctly the patches. The LV2 version can have issues. I haven't tried with Carla + VST though.