Complex waveforms: calculated or samples (in: Instruments)
By: jupiter8
11 Mar 11:35
A real Moog saw is analog so it’s neither. Though i’d say closer to calculates than sampled.
Something like:
[code]
phase=-1.0;
phaseIncrement= frequency * something/samplerate;
phase += phaseIncrement;
if (phase > 1.0) phase -= 2.0;
sawOut = phase;
pulseOut = -1.0;
if (phase > threshold) pulseOut = 1.0;
[/code]
That’s the absolute basic but you’d need a lot more stuff for antialiasing and sync and stuff.
That’s probably how i would start, so calculated. But if i can get the exact same res…
Go to first unread post in this topic
Read more here: Source link
