How to make delay Time pot adjust gracefully?

Software questions and issues with the FV-1

Moderator: frank

Post Reply
agsilvio
Posts: 4
Joined: Fri Dec 15, 2023 11:44 am

How to make delay Time pot adjust gracefully?

Post by agsilvio »

Hi team,

I’ve hand coded a delay effect. It works great. It uses all three pots for time, level, and repeats, respectively. I love it, except for one thing. Moving the Time pot creates a really unattractive, digital, crunching sound. Question: are there some best practices for coding such a control? I expect that when the Time pot is adjusted, a pleasant “space noise” is the result.

I’ll explain how I coded it in more detail. It’s very simple. My POT0 is directly setting the ADDR_PTR. Don’t ask me why this works because I don’t know, but it does. So adjusting POT0 results in the the position of the delay register moving directly. I don’t do any pre/post processing on the POT value.

Also, I can supply the code, but not at this moment because I am not using the computer on which I wrote the Spin patch.

Please and thank you.
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Re: How to make delay Time pot adjust gracefully?

Post by frank »

You need to use a low pass filter on the POT value so it smoothly changes. Look at other code on here and you will see things like "smoothing" or "smooth the pot" in the comments in the code.
Frank Thomson
Experimental Noize
agsilvio
Posts: 4
Joined: Fri Dec 15, 2023 11:44 am

Re: How to make delay Time pot adjust gracefully?

Post by agsilvio »

Thanks, Frank! I'll keep an eye out for such comments in the code.
Post Reply