Mail Archives: djgpp/1999/06/23/19:20:42
In article <37703244 DOT 48BB0E5C AT computerpro DOT com>,
paradise AT computerpro DOT com wrote:
> hmm...
>
> The problem I'm having with sound( ) and nosound( ) and delay( ) is that I
> don't know the syntax of what goes in ( ).
>
> In replace of sound( int _Frequency)
> ie. sound(A5)?????????? or something??????
> anyone know what I mean
I can give you a few hints, but this is off-topic so mail me for more...
middle A is 440 hertz (the _Frequency arg).
the octave above: 880 hz.
and below: 220 hz.
So for the next octave, you double the frequency. Since there are 12
semi-tones in our chromatic scale, you are looking for a number you can
multiply 12 times itself and get 2, or this: x ^ 12 = 2, or 2 ^ (1/12) = x,
or x = 1.059463094359.
a, a#, b, c 440 * 1.06 * 1.06 * 1.06 = 523,2511306008 (for the first c
after the middle a).
This make any sense?
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
- Raw text -