Sample Rate Change and Clear Audio.

For general discussion related FlowStone
Post Reply
Tepeix
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Sample Rate Change and Clear Audio.

Post by Tepeix »

Just get this troubling question now..

I was thinking about a way to make the program restart (clear audio) when the sample rate is change by the user.
And reset some variable..

Is it a good idea ?
But isn't it also something that we must always do just in case ???

Is it possible that some filter or process could make some instability ?...

They might be a time where the green process have not change the coefficient, but the dsp process is at a new sample rate... ...
But i suppose that this do not instability.. But just some filter or delay might have an adaptation time..
Where they will sound a little differently, then come back to normal ?
Attachments
Sample rate and reset.fsm
(2.91 KiB) Downloaded 505 times
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Sample Rate Change and Clear Audio.

Post by Spogg »

Interesting point!

If a user changes the audio interface sample rate, or it gets changed from the DAW, I understood the audio engine has to restart.

At this point in my FS “career” I’ve not heard any mention of an issue with changing sample rates, but that doesn’t mean it couldn’t happen!
Tepeix
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Sample Rate Change and Clear Audio.

Post by Tepeix »

Thinking more about it, i think it might be really rare.
Or maybe almost impossible ?

Most time, if we adapt the coefficient of a filter to the new sample rate,
i think they could not really become unstable but just shift their frequency.

... This is maybe more for an experimental design..
If i do experimental filter and want to adapt the coefficient to a new sample
rate, i might be really sure about the precision and stability..
But even in this case, this is more to make a filter that stay stable in any situation than changing sample rate...

I also encountered another thing, but once again this is more adapting to the new sample rate that the transition of it (it will "blow up" with or without clear audio)..
If doing an allpass with a variable delay, this delay could not be less than 1 sample. So if we adapt the delay to the sample rate, this one might be limited at a minimal value of 1 sample.

So maybe i imagine something impossible or very very rare and design dependent...
Post Reply