If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
BodePlot strange result (Non Linear and Sample Rate Adapt)
21 posts
• Page 1 of 3 • 1, 2, 3
BodePlot strange result (Non Linear and Sample Rate Adapt)
Hi,
Doing some measurement on allpass, i get strange result using this bode plot.
It's one from synthmaker era, done by Dofius, that i find very useful.
Normally i'm supposed to get the same result for each graph.
They each calculate exactly the same thing (or i'm wrong???),
But for the first one the same calculation are done twice (one for the out and one for the feedback)
Why different result ? And which one is the truth ?
I suppose the first one but like to be absolutely sure
Doing some measurement on allpass, i get strange result using this bode plot.
It's one from synthmaker era, done by Dofius, that i find very useful.
Normally i'm supposed to get the same result for each graph.
They each calculate exactly the same thing (or i'm wrong???),
But for the first one the same calculation are done twice (one for the out and one for the feedback)
Why different result ? And which one is the truth ?
I suppose the first one but like to be absolutely sure
- Attachments
-
- Bodeplot strange result.fsm
- (74.18 KiB) Downloaded 522 times
Last edited by Tepeix on Tue Apr 25, 2023 8:54 pm, edited 1 time in total.
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: BodePlot strange result
That's a bit tricky. If you build the filter in FS with discrete elements according to a textbook block diagram, the result will depend on the order in which you connect the parts. It is better to do it in code, where you have control over processing order.
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: BodePlot strange result
Thanks !
I will do with code to be sure.
Could reproduce the 2 different solutions with a code :
So finally it's just one sample later for the feedback that make this.
I will do with code to be sure.
Could reproduce the 2 different solutions with a code :
- Code: Select all
feed = mem[index]; /// First graph
p1=in+(feed*all1);
///feed = mem[index]; /// second graph if placed here
mem[index]=p1;
out=feed+(p1*all2);
index = index + 1;
index = (index<delay)&index;
So finally it's just one sample later for the feedback that make this.
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: BodePlot strange result
This time a very strange Bode Plot result
There's only one code. The code reduce the high frequency when testing with a synth.
(in some maybe nonlinear process)
But the Bode Plot show the same reduced volume for all frequency.
What could cause that ??
There's only one code. The code reduce the high frequency when testing with a synth.
(in some maybe nonlinear process)
But the Bode Plot show the same reduced volume for all frequency.
What could cause that ??
- Attachments
-
- BodePlot no result.fsm
- (57.65 KiB) Downloaded 505 times
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: BodePlot strange result
That was maybe a stupid question..
Never really understand how the bode plot works exactly,
But it send an impulse that is 1 for the first sample then analyze the result.
My code works when the signal go up and down, maybe it need a +1 then -1 or even more complex impulse to be analyzed ?
I tried to send an inverted impulse with one sample delay. And get a little curve that show less treble.
But this curve might be underestimated. the trick is not precise at all.
(Edit: this trick don't works at all.. acting like some sort of prefilter.. )
Or maybe also it's because of a non-linear process?
I read somewhere that it's more hard to analyze the result when using non linear think.
Never really understand how the bode plot works exactly,
But it send an impulse that is 1 for the first sample then analyze the result.
My code works when the signal go up and down, maybe it need a +1 then -1 or even more complex impulse to be analyzed ?
I tried to send an inverted impulse with one sample delay. And get a little curve that show less treble.
But this curve might be underestimated. the trick is not precise at all.
(Edit: this trick don't works at all.. acting like some sort of prefilter.. )
Or maybe also it's because of a non-linear process?
I read somewhere that it's more hard to analyze the result when using non linear think.
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: BodePlot strange result
You are right in saying that the Bode plot really only makes sense for a linear system. Think of the single impulse as a signal which contains waves of all possible frequencies. You pass that to your device and at the output you do a Fourier analysis to see which frequencies got amplified or attenuated. But this only makes sense if the result is the same when you send the waves for eeach frequency individually, i.e. when your system response is linear.
A nonlinear device like yours will not only alter the amplitude and phase of a sine wave, but, in general, will also alter its shape. So it is not well characterized by a spectral response function, regardless of how you measure it.
A nonlinear device like yours will not only alter the amplitude and phase of a sine wave, but, in general, will also alter its shape. So it is not well characterized by a spectral response function, regardless of how you measure it.
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: BodePlot strange result
martinvicanek wrote:A nonlinear device like yours will not only alter the amplitude and phase of a sine wave, but, in general, will also alter its shape. So it is not well characterized by a spectral response function, regardless of how you measure it.
I wish more people, using PluginDoc, analyzing 'analogue' flavor plugins, would better understand this.
Thanks Martin.
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: BodePlot strange result
Yes thanks !) I was confuse.
Was thinking that even with non-linear we would see a little what happens.
But the result is clearly unusable.
Maybe i could make some code with fixed input that replace the non linear part to test different volume input.
But would i take the time ? Finally testing with a synth, a scope and FFT give an idea of what happens.
Maybe we have to join the author of PluginDoc to said them to upgrade.
Was thinking that even with non-linear we would see a little what happens.
But the result is clearly unusable.
Maybe i could make some code with fixed input that replace the non linear part to test different volume input.
But would i take the time ? Finally testing with a synth, a scope and FFT give an idea of what happens.
Maybe we have to join the author of PluginDoc to said them to upgrade.
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: BodePlot strange result
Again a little stupid question
Is it possible to adapt the bodePlot to different sample rate ?
I find one way using the oversampling module and adapting the filter.
But it could only works for double sample rate.
I also try to resample the array but it doesn't seams to works for now..
Is it possible to adapt the bodePlot to different sample rate ?
I find one way using the oversampling module and adapting the filter.
But it could only works for double sample rate.
I also try to resample the array but it doesn't seams to works for now..
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: BodePlot strange result
I was thinking that removing the analiser and replacing it by blue code and mem i could get a plot that adapt to sample rate..
But it don't works, doing the same as a normal plot...
Strange.
Next try will be to resample the array..
But it don't works, doing the same as a normal plot...
Strange.
Next try will be to resample the array..
- Attachments
-
- Blue plot v2.fsm
- (19.43 KiB) Downloaded 478 times
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
21 posts
• Page 1 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 66 guests