|
|
| Everything HP200LX: Knowledge, Products, Service |
|
Alternative tone frequenciesFrom Ed Keefe CompuServe ID: [75300,3667] Here's another equation that will generate tone frequencies. {Music Frequencies| !Musical notes and frequencies! ! 1 2 3 4 5 6 7 8 9 10 11 12 ! ! C C# D Eb E F F# G G# A Bb B ! 0*(C_C#_D_Eb_E_F)+ 0*(1_2__3__4_5_6)+ 0*(F#G_G#_A_Bb_B)+ 0*(7_8_9_10_11_12)+ 0*+ LN(Frequency/55)/LN(2)= Octave+((Note-22)/12) } The advantage of this equation is that it will let you solve for any one of the three variables, given value of the other two. The disadvantage is that you have to enter the number of a note. The first four lines of the equation, 0*(C_C#_D_Eb_E_F)+, etc. are there to display a help list that shows which number is associated with a note. Notice that the string of characters inside the quotes are the names of unused variables. Variable names can not begin with a number, so we used the apostrophe to start each name. Variables cant be longer than 15 characters, so we broke the strings into two groups of six notes each.
|
|
Copyright © 2005 Thaddeus Computing Inc
<