4
$\begingroup$

please bear with me as I'm not a mathematician and this is difficult to word properly. :]

I need the equation for a logarithmic spiral (let's call it $S(\theta)$) that meets certain constraints for a music visualizer I'm working on. Let's call the arc-length of the spiral $A(\theta)$. I'm looking for a spiral that meets the following requirements:

$A(0)=27.5$

$A(2\pi)=55.0$

$A(4\pi)=110.0$

$A(6\pi)=220.0$

$A(8\pi)=440.0$

I'm basically wanting the arc-length of this spiral to correspond to a frequency of a musical note. The requirements I gave basically plot the octaves of "A" notes. (http://www.phy.mtu.edu/~suits/notefreqs.html). This way I can create a "directional" spectrogram. All "A" notes will point toward $\theta=0,2\pi,4\pi,...$, all "E" notes will point roughly in the direction of $\theta=\pi,3\pi,...$.

I spent some time grinding out rough approximations of $a$ and $b$ values that give me proper values between arclengths of 27.5 and 14080.

The closes constant values I've landed on are:

$a=1.5145$

$b=0.0551625$

I'm looking for a way to generate values of expressions for $a$ and $b$ that will produce very accurate arclength results for the extent of the average human hearing range (20Hz-20KHz). If someone could explain the process I would need to go through to get these values I would be very grateful. Let me know if something doesn't make sense. My mind is a horribly tangled place.

  • 0
    Sounds fascinating. Please post a link to the first visualization you post online, even if the first version doesn't look pretty to you.2011-04-06

1 Answers 1

5

The arc-length of a logarithmic spiral is given here. You seem to want $A(\theta + 2\pi) = 2 A(\theta)$. This gives you $b = \ln 2/(2\pi)$. Use the value you want for $A(0)$ to find $a$.

  • 0
    @Ross, thanks for the correction.2011-05-14