Any Whittaker–Shannon Interpolation module?

For general discussion related FlowStone
Post Reply
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Any Whittaker–Shannon Interpolation module?

Post by Nowhk »

Hi there,

I've a collection of 100 samples that describe a discrete signal (from 1hz to 40hz), and I'd like to plot a graph that show the analog/continuos-bandlimited signal after an ideal DAC.

Is there any Whittaker–Shannon Interpolation module out of the box that will already draw it?
Or somethings made by community in these years that emulate this?

Thanks
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Any Whittaker–Shannon Interpolation module?

Post by martinvicanek »

Here is one for sample size power of two.
Attachments
SincInterpolation.fsm
(8.9 KiB) Downloaded 860 times
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Any Whittaker–Shannon Interpolation module?

Post by Nowhk »

martinvicanek wrote:Here is one for sample size power of two.

Thanks for the help and the fancy module :) Tried to edit the input signal with a sin. But it messes the graph, not sure why:

sine.png
sine.png (41.57 KiB) Viewed 9641 times

Here's the DSP code:

Code: Select all

streamin sr;
streamin freq;
streamout x;
float i=0;
x = sin1(i/sr);
i = i + sr/freq;


Schematic:
SincInterpolation_Sine.fsm
(10.04 KiB) Downloaded 865 times

Sometimes, it draw correctly :) Where's the bug? Thanks
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Any Whittaker–Shannon Interpolation module?

Post by Nowhk »

I think I've got it! I just need to retrigger the [F] SyncInterpolation module, so it propagates the changes ;)

Thanks boss!!!!
Post Reply