Suggestions for creating comb filters

Technical questions regarding the XTC tools and programming with XMOS.
unahm
Junior Member
Posts: 4
Joined: Mon Oct 13, 2025 1:21 pm

Suggestions for creating comb filters

Post by unahm »

Hello,

As part of an effects unit design I would like to implement feed-forward comb filters on the XK-AUDIO-316-MC-AB. Conceptually this is done by mixing a very slightly delayed version of the dry signal with itself to cause the comb filtering effect.

Looking at the python references (https://www.xmos.com/documentation/XM-0 ... html#delay), the 'Delay' effect seems to be appropriate, but I'm confused by the parameters. I couldn't find an example of how it's implemented, so I thought I'd ask here.

Thanks in advance!
Last edited by unahm on Mon Oct 13, 2025 4:23 pm, edited 1 time in total.
unahm
Junior Member
Posts: 4
Joined: Mon Oct 13, 2025 1:21 pm

Post by unahm »

Sorry to bump, but I think the problem I'm having is due to the documentation being different to what is implemented in the AN02014 note. I noticed that 'set_gain' is being deprecated, and to use 'target_gain_db', and a quick test to try this yielded this error in the Jupyter notebook:

AttributeError: 'VolumeControl' object has no attribute 'target_gain_db'

Which version of lib_audio_dsp is consistent with the documentation?
User avatar
Ross
Verified
XCore Legend
Posts: 1289
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

The app note SW download should have the complete codebase with all dependencies so it should all "line up". The changelog will also mention versions of all dependencies. You can also check the manifest.txt file in the SW zip download.
Technical Director @ XMOS. Opinions expressed are my own