Csound Csound-dev Csound-tekno Search About

Re: Question about nyquist frequency

Date1999-01-29 17:37
FromJens Groh
SubjectRe: Question about nyquist frequency
Erik Spjut  wrote:
>You can't actually filter out an aliased unless you know the
>frequency it's been aliased to. You have to generate the signal at a higher
>sample rate, lowpass filter, and then resample at the final rate.

Look again at my code: That's what it does (with a sample rate of sr*2 and
the filter being far from perfect).

>A better approach for Csound is to generate a series of function tables of
>band-limited sawtooths (sawteeth?) with different limits and have the
>instrument select the correct waveform according to the pitch of the note.
>It's very fast at the cost of a little memory.

The better idea, I admit.

Jens