I thought I would be able to figure this common problem by myself but I'm really stumped and becoming too tired to think mathematically.
My problem is that I am trying to sweep the frequency of a bandpass filter up and down. I want to cover the majority of the audible spectrum with this filter sweep, but when it sweeps up and down, I want it to sound like it is sweeping "evenly."
If I just use a linear function to sweep up and down, moving the frequency up and down, it doesn't sound even, because it takes a lot longer to sweep from 10000 hz to 20000 hz than it does to sweep from 100 hz to 200 hz, even though the difference in frequencies in both cases is an octave, which sounds like the same difference in pitch in terms of psychoacoustics.
When the filter sweeps up and down, it has plenty of time to showcase the high frequencies, but as it reaches the lower frequencies it just flies right through them. I'm wondering what sort of equation I can use to change this, so that the time it takes for the filter to sweep through one musical interval is constant, regardless of where in the spectrum it is.
I'm really tired and confused after spending too much time playing with exponents and logarithms and wishing that I had payed more attention in my math classes. I hope I've still been able to make myself clear.