But, with the SVF, I can't figure how to do thru zero FM (i.e. including negative frequencies).
With the Matthews rotation filter it is trivial

Code: Select all
double xoxos(double phase, double A, double B_sin, double B_cos, double C)
{
double sin_x, cos_x;
sinCos(phase, &sin_x, &cos_x);
double sqrt_val = sqrt(pow(A + cos_x, 2) + pow(C*sin_x, 2));
double out = ((A + cos_x)*B_cos + (C*sin_x)*B_sin) / sqrt_val;
return out;
}
Code: Select all
double XoxosOscillator::getSample()
{
double x, y, t = s0;
s0 = s0 * w0 + s1 * w1;
s1 = s1 * w0 - t * w1;
x = s0 * scale;
t = s1 + offset;
y = t * m0 - x * m1;
x = x * m0 + t * m1;
return y / sqrt(x * x + y * y);
}
There's nothing "weird" about these, it's all pretty straight-forward.kamalmanzukie wrote:yes heterodynes! another mystery. someone built a sort of weird quasi fft that uses heterodynes for the reaktor user library. it shifts the frequencies to near zero as beats, correct?
This is fairly easy to understand in terms of complex sinusoids, if you're not afraid of thinking about it mathematically.kamalmanzukie wrote:i think i follow. i just read somewhere the other day about it being just taking the integral, which had never clicked before. i don't understand how every freq is shifted to dc though, does that have to do with amplitude being unipolar?
are you saying that as an answer to my question about bandpasses? if so, that's rad, but i've actually been messing around with heterodynes again after you mentioned em and i think you're not wrong. i'm always on the lookout for new radio technologies to appropriateSmashed Transistors wrote:This is frequency translation by AM (de )modulation that's very similar to how AM radio works.
a little bit, actually. but what i tell myself is that i'm a notmath in reform. and, as such, doing a bit of research to reply kind of snowballed and i'd say your reply prompted 2 distinct forays down the rabbit hole. the first one to make sure i understood what was being said. the second, more general, was the slower realization that being a person who thinks about math related things as much i do,while having almost no basic competence in actual arithmetic is sort of an absurd thing to bemystran wrote:
This is fairly easy to understand in terms of complex sinusoids, if you're not afraid of thinking about it mathematically.
Submit: News, Plugins, Hosts & Apps | Advertise @ KVR | Developer Account | About KVR / Contact Us | Privacy Statement
© KVR Audio, Inc. 2000-2026