Click noise when audio starts/stops using Sfizz on Zynthian mainboard (Raspberry Pi OS)

Hello,

I am using the Zynthian mainboard with Raspberry Pi OS. My goal is to use the Sfizz audio engine to build a custom sampler with my own workflow. So far I managed to get everything running and Sfizz is successfully playing my samples.

However, I noticed an annoying issue that I haven’t been able to solve.

Whenever I trigger a sample, I hear a click at the beginning of the sound. This is not caused by the sample itself (there is no click in the sample and it’s not related to the attack parameter).

Another click also occurs about 1–2 seconds after I release the note and stop playing.

If I keep playing continuously, the click does not occur. It only happens when I stop playing and wait around 2 seconds. When that happens, the next sample I trigger will again start with a click.

It almost feels as if the audio output of the board is going into some kind of idle state and then “wakes up” suddenly, producing the click.

Since Zynthian also uses Sfizz, I was wondering if anyone here might have an idea what could be causing this. I’m not sure if this could be related to JACK, the audio driver, or the Zynthian mainboard hardware.

I also did a small experiment:
I created an audio file with 3 seconds of silence followed by a sample. When the silent part starts there is no click. The click only appears when the actual audio begins.

Also, the click that happens after I stop playing does not depend on the sample ending. Even if the note is still held but the sample becomes completely silent, the click still happens after a short delay.

So essentially, I only avoid the click if there is always some audio signal going through the sound card. When the output becomes silent for a moment, the click appears again.

Has anyone experienced something similar or knows what could be causing this?

Thanks!

1 Like

That sounds like auto mute. You can disable this in webconf HARDWARE->Audio. Enable “Advanced view” and click on the button immediately below “Mixer Controls” to show the ALSA mixer controls. Look for auto mute settings, e.g. automute mono, automute 2, etc. and disable them then click the OK button at the bottom of the page.

@jofemodo is there a regression that has enabled this? We disabled it by default some time ago.

2 Likes

Hello, I had this kind of problem with my Zynthian V4. Personally, I experienced the issue at the end of the audio file. The problem stemmed from a faulty hardware component in my audio card. After replacing the card, the clicking problem disappeared. It could also be related to the type of audio cabling used, for example, balanced or unbalanced output.

Hi Riban, it’s me again — the guy who isn’t using ZynthianOS :sweat_smile:

As I mentioned earlier, I’m running Raspberry Pi OS, and I’m basically using the Zynthian mainboard only as the hardware platform to run Sfizz as my sampler engine.

I’ve been running several tests here, and the behavior I’m observing seems like it might be related either to the audio hardware on the mainboard or possibly to JACK (jackd).

I’m asking here because on the Sfizz forums it seems that people using other audio interfaces or sound cards are not experiencing this issue, so I’m trying to understand whether the problem could be specific to the Zynthian mainboard audio implementation.

As a next step, I’m going to run another test using an external audio interface (a Focusrite Scarlett) instead of the mainboard audio, just to see if the same behavior still occurs.

If the clicks disappear with the external interface, that would suggest the issue is related to the mainboard audio codec or its JACK configuration.

I’ll report back with the results.

Hi @soumello !

Did you try @riban sugestions?
The automute is enabled by default by the audio driver. You must toggle off. Take a deep look to all soundcard parameters. Use alsamixer.

Regards

2 Likes

it worked! thanks guys! it was the auto mute!

3 Likes