CALF effects, they do not work.

After an automatic update of Audacity 2.1.3 on ubuntu 17.10. x86_64, Calf effects, do not apply. The previous listen if it works, but when the effect is applied, no process occurs. language

In Spanish language
Efectos CALF, no funcionan.
Despues de una actualización automática de Audacity 2.1.3 en ubuntu 17.10. x86_64, los efectos Calf, no se aplican. La se escucha previa si funciona, pero cuando se aplica el efecto, no ocurre ningun proceso. lenguaje

There has been an ongoing problem with Calf plug-ins, which is a shame because they are terrific effects. The problem is not unique to Audacity - I’m not sure about the status right now, but there have also been repeated crash issues with Calf plug-ins in Ardour.

I think that the problem is that the Calf developers take an uncompromising approach, and use very recent libraries, which can cause compatibility issues with older libraries in most mainstream Linux distributions. I get the impression that the distribution packagers don’t test thoroughly enough and assume that if the effects build and launch, then they are OK (apologies to the Ubuntu packagers if I am misrepresenting).

I’ve just tested on Ubuntu 16.04 with the Calf LV2 plug-ins from the Ubuntu repository and Audacity 2.1.2, and it seems that most (but not all) of the Calf plug-ins are mostly working correctly. (Note that Audacity does not have all of the features of real-time DAW applications such as Ardour). One problem that I see is that if one of the Calf plug-ins fails, then all Calf plug-ins will fail until Audacity is closed and restarted.

Sorry but I don’t know the solution to this, other than perhaps building both Audacity and the Calf plug-ins from source code and then debugging any problems that arise. Both Audacity and the Calf plug-ins are complex software, so not an easy job. If you know of any skilled Linux developers that would be interested in helping, please send them our way.

Thank you very much for the explanation Steve.

This is a real bummer as I love the plugins. Is rolling back audacity and/or calf the current working solution?

It is still possible to use Calf plug-ins “with” (rather than “in”) Audacity.
If you use Jack Audio System, you can use the plug-ins in “Calf Jack Host”, and route the signal through the plug-in rack before being recorded. This way you can either add live (real-time) effects while you record, or bounce a track from Audacity, through Calf Jack Host and back into Audacity, which gives true real-time effects while bouncing from one track to another. It’s a bit of a faff to set up, but it works very well.
Audacity-Calf-Jack.png

Dear Audacity users,

since Calf Studio Gear 0.90.0 release the plugins can’t be added to the list of usable ones from within the plugin manager any more. Version 0.0.60 worked well. I contacted the Audacity developers team via the preferred method (email) to bring it to their knowledge and asked for advice in debugging this issue.

Unfortunately no response so far.

To clarify some things:

The problem is not unique to Audacity - I’m not sure about the status right now, but there have also been repeated crash issues with Calf plug-ins in Ardour.

I think that the problem is that the Calf developers take an uncompromising approach, and use very recent libraries, which can cause compatibility issues with older libraries in most mainstream Linux distributions.

Crashes in Ardour are unrelated to non-working plugins in Audacity. Additionally Calf doesn’t rely on recent libraries.

In 2013 (afair) there was a problem with the quite outdated FFTW library which affected a couple of plugins since it wasn’t (and still isn’t) thread-safe by sharing FFTW plans. The issue was fixed in Calf in 2014 by implementing a custom FFT routine. This problem made Ardour crash when different DSP routines accessed libfftw.

Another reason for recent crashes was the fact that Debian maintainers/LMMS crew decided to offer a very outdated version of Calf LADSPA as dedicated package which is obsolete since a couple of years now. Having old LADSPA and recent LV2 Calf effects side by side made Ardour crash when adding a plugin to a bus/track. This is fixed by LMMS team by moving their Calf fork to a dedicated namespace and will be released with the next version. Additionally FalkTX made a package for KXStudio to make things work in the meantime at least for his users.

I hope this sheds at least a bit light onto the known problems.

Best
Markus

My recent tests were with Version 0.0.60 on Ubuntu 16.04.
As I wrote previously, most of the plug-ins worked fine, up to the point of one of them not working. When one of the Calf plug-ins failed, all Calf plug-ins failed until Audacity was closed and restarted.

I’ve not yet tried version 0.90.0. What’s the problem there? Do they not enable at all?

I stand corrected. My comment was based on trying to build Calf some years ago and failing due to several dependencies being too old on my system (on Debian stable if I recall correctly). Have now looked again at the current Calf requirements, I quite agree.

Thanks for the details. It’s encouraging to hear that the problem is understood.

Sorry about that Markus, but you have caught us at a bad time. We are very understaffed, one of our most senior team members passed away a couple of months ago, and we are all hands on deck preparing for the release of Audacity 2.2.1 (scheduled for early December).

Yes it does. Thank you.

I’ve not yet tried version 0.90.0. What’s the problem there? Do they not enable at all?

Exactly. They show up in the plugin manager ready to be added. Trying to add one or more of them shows a progress bar (as it should) but nothing is added to the plugin menu. No errors in the console, nor in the terminal. If you have any advice for me where to start debugging I’m willing to help out.

We are very understaffed, one of our most senior team members passed away a couple of months ago

Makes me sad to hear! I hope the rest of the crew stood strong and took it calmly. Please keep up your great and important work, wish you guys all the best for the upcoming release.

I presume nothing in Audacity’s log either? (http://manual.audacityteam.org/man/help_menu_diagnostics.html)

Ooops, wrong terminology, nothing in log is what I meant.

I’ve looked in Ubuntu package search, and I can’t find Calf Studio Gear 0.90.0, only the 0.0.60 version (https://packages.ubuntu.com/search?keywords=calf&searchon=names&suite=artful&section=all).
How do ‘normal users’ install Calf Studio Gear 0.90.0?

Either via KXStudio repositories or build from source/git. There’s a copy’n’paste walk-through on our website.

I’ve built the plug-is from source, and can reproduce the problem.
When running a debug build of Audacity, I see these errors:

lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Analyzer>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/BassEnhancer>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/CompensationDelay>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Compressor>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Crusher>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Deesser>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Emphasis>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/EnvelopeFilter>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Equalizer12Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Equalizer30Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Equalizer5Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Equalizer8Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Exciter>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Filter>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Filterclavier>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Flanger>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Gate>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/HaasEnhancer>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Limiter>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MonoCompressor>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MonoInput>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Monosynth>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MultiChorus>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MultiSpread>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MultibandCompressor>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MultibandEnhancer>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MultibandGate>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MultibandLimiter>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Organ>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Phaser>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Pulsator>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Reverb>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/ReverseDelay>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/RingModulator>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/RotarySpeaker>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Saturator>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/SidechainCompressor>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/SidechainGate>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/SidechainLimiter>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/StereoTools>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/TapeSimulator>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/TransientDesigner>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/VintageDelay>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Vinyl>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Vocoder>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/XOver2Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/XOver3Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/XOver4Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/

Does that mean anything to you?
Any idea why / how is it seeing the calf plug-ins twice? (and this is only happening with the calf plug-ins)

Great, thanks a lot for the findings. As soon as I’m back from my trip I’ll take a closer look.

I pushed some changes to Calf git for the RDF file generation which will most likely not influence this issue. I also tested some other hosts (ecasound, carla, lv2file, ardour) which are all able to launch calf plugins.

I don’t see the duplicates you posted above on my machine. Is it possible that things are mixed up somehow in your /usr/local/lib/lv2/calf.lv2/ ?

I don’t think so, but not impossible. I previously had the older Calf plug-ins installed, and told Symantic to do a “complete uninstall”. Then, after rebooting, built and installed the new Calf plug-ins, which appeared to go smoothly without a glitch. I’ve (briefly) tested with Ardour 4, and they appear to work fine.

I do a bit of C++ programming, but I’m out of my depth with this, and unfortunately within our small team of developers, there are currently no Linux specialists.
I think it would be terrific for Audacity / Linux users, if these plug-ins worked in Audacity. To a lesser extent it would probably be good for Calf too. If you’d like to talk to the Audacity developers about the Calf plug-ins, the mailing list is here: audacity-devel List Signup and Options

Yep, I’m willing to help you guys out, probably I’ll get some information on the devel list to lower the getting-started-hurdle, thanks for the hint/link.