|
|
|
||||
|
| Author |
|
|
question about audio frequency log scale (maths)
So I'm writing a little program to generate a pitch sweepable sine wave.
It's easy enough to make it linear. I have a seekbar with values from 20hz to 20khz, but I want to make it a log scale and I'm completely lost. What's the equation to find the next interval (up or down) from a given frequency. Or maybe, a better question, is how do convert and arbitrary linear scale to a log scale relevant to frequency? My brain is now boogaloo
__________________
![]() Youtube Glitch OST: Waay better than it sounds. a mixture of stuff from alva noto to ligeti to undersea recordings doa thread here |
||
|
|
|
|
Quote:
Similarly, 1000 = 10^3 so log 1000 = 3. You would have an exponential function f(x) := 2*10^x If you take values of x from 1 to 4 you'd get the familiar 20-20kHz sweep. f(1) = 2*10^1 = 20 Hz f(2) = 2*10^2 = 200 Hz f(3) = 2*10^3 = 2 kHz f(4) = 2*10^4 = 20 kHz Rather than sweeping from 20 to 20 000 by a step of 1, you would sweep from 1 to 4 with a step of 0.01 (or whatever values are appropriate for the rate of change). I hope that's of some use!
__________________
|
|||
|
|
|
|
Quote:
__________________
![]() Youtube Glitch OST: Waay better than it sounds. a mixture of stuff from alva noto to ligeti to undersea recordings doa thread here |
|||
|
|
|
|
| « Previous Thread | Next Thread » |
|
|
|||||
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| maths question | Mateyboy | The Board | 10 | 08-30-2010 11:56 AM |
| Maths Question | chinablue | The Board | 26 | 01-02-2010 08:07 AM |
| Very Simple Maths Question | finjetsu | The Board | 14 | 11-22-2007 04:15 PM |
| Maths (probability question)???? | skribla | The Board | 30 | 04-18-2007 11:19 AM |
| Maths Question | Editz | The Board | 14 | 08-25-2005 09:50 PM |
| < Contact Dogs On Acid > The Board | The Grid | DOA Audio | DOA Radio | Mp3 | Store | Video | Events Options (User CP) | FAQ | Calendar | Private messages | Who's online | Members List | Forum Leaders Copyright © Dogs On Acid LTD 2001-2011. Please review our members agreement. |