How do I calculate the maximum number of harmonics a complex wave can have based on the sample rate?
Say I Have a 20hz fundamental and a sampling rate of 44100 hz. My instinct is to take 44100/2 = 22050(nyquist) and the take the fundamental and multiply by 2 while the frequency is less than nyquist and the count how many times I had to multiply.
I would like to know if i'm going in the right direction and if i'm not... what is the correct way to do this?
EDIT: I would like to add that I am creating a table based oscillator with multiple tables with different harmonic contents.I am trying to figure out how to calculate the harmonics each table should have if I have an arbitrary number of tables. So table 1 would have say 500 harms so a max freq of 44.1hz and table n would have x harms and have a max freq of y.