my small linear interpolator

For general discussion related FlowStone
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: my small linear interpolator

Post by RJHollins »

Thanks for citing an example 'tester' !

Gives me something to hang on to as I follow along ... and definitely a useful programming concept.

Thanks!
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: my small linear interpolator

Post by tester »

You're welcome.

The size of that X,Y table is not limited. By making it denser (more points) - you get more accurate curve, but I guess at greater arrays - it will start to work slower (may be of importance if using multiple at once).

It would be interesting to compare various (as many as possible?) interpolation approaches.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Drnkhobo
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: my small linear interpolator

Post by Drnkhobo »

Thanks tester ;)

Its quite awesome actually! I suppose its like a function then, which can be used for calculating/deploying volume loudness curves?
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: my small linear interpolator

Post by tester »

Yes. But you can also track other parameters this way.

Regarding loudness curves, there are two additional topics:
viewtopic.php?f=2&t=1373
http://synthmaker.co.uk/forum/viewtopic ... 12&t=12071

I created this one, because I wanted to understand what actually I'm looking for, and how it should work. I needed to "mess from scratch" so to speak.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
acg2010
Posts: 80
Joined: Tue Oct 05, 2010 3:18 am

Re: my small linear interpolator

Post by acg2010 »

@tester

While I have not have the chance to check out your schematic, your project sounded interesting and might help me in my project. I am working on a guitar cabinet sim. My first idea was to obtain readily and freely available on the internet (guitar forums, cab manuafacturers, etc.) frequency response curves of actual guitar cabs, then digitize that graph to obtain x (frequency) and y (db) values. These would be used either in an array or used to generate a transfer function that would modulate the volume depending on the frequency. Your interpolator work seems to fit well with the array approach. Of course this is just a simplistic approach as it would not create any phase distortion/shift that a real guitar cab might.

Does my approach make sense? Would just modulating volume or db of the input signal according to the frequency accomplish what I am trying to do?
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: my small linear interpolator

Post by tester »

I know that I may look like a guru, but unfortunately I am not one yet. ;-)
But let me clarify what (I think) this module can, and what can't.

1. You can automatically have different scalings for one input value.
(you can obtain input freq from pitch tracking elements)

2. You can assign different correction curves, depending on secondary input parameter
(like fundamental gain ranges, or some gain-to-gain rations, or else)

3. It will not work directly for live compensating FFT spectra of an input signal.
(consider FFT spectra as multiple input values at once).
For this one - you would require some sort of a filter?

My design here is rather simple. You probably rather will need filters, that will add a curve to FFT spectra - live.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: my small linear interpolator

Post by tester »

Following the idea - how to make it in streamed version, to pass blue wires through?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: my small linear interpolator

Post by tester »

Is it possible to make stream version of such type of interpolator/follower?

Two options are in the game I guess: external array of correction values (would be great) or internal list (fixed).
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Post Reply