Musical Notes Do - Ray - Me etc
Author Message
Musical Notes Do - Ray - Me etc

Help!! Does anyone know the codes I should put into Sound to get Do Ray
Me etc.

Thanking you

Paul Mason
--
Posted via Talkway - http://www.*-*-*.com/
Surf Usenet at home, on the road, and by email -- always at Talkway.

Wed, 18 Jun 1902 08:00:00 GMT
Musical Notes Do - Ray - Me etc
Quote:

> Help!! Does anyone know the codes I should put into Sound to get Do Ray
> Me etc.

Sound expects the frequency in Hertz. A (in German we name it
so, not La) has 440 Hz and all the other notes have frequencies
with a factor of the 12th root of 2.
Due to Bach's "wohltemperiertes Klavier".

Franz Glaser

Wed, 18 Jun 1902 08:00:00 GMT
Musical Notes Do - Ray - Me etc
Thanks Franz You notes here and your links to the Pascal web sites have

Regards

Pau
--
Posted via Talkway - http://www.talkway.com
Surf Usenet at home, on the road, and by email -- always at Talkway.

Wed, 18 Jun 1902 08:00:00 GMT
Musical Notes Do - Ray - Me etc

Quote:

> Help!! Does anyone know the codes I should put into Sound to get Do Ray
> Me etc.

Here are the frequencies for the different notes. Consider that the
procedure Sound does not allow floating point numbers to be passed a a
parameter. I recommend you use Round instead of Trunc, or better, you round
it yourself, that's some code less in your program.

C  : 261.63
C# : 277.20
D  : 293.66
D# : 311.60
E  : 329.63
F  : 349.23
F# : 370
G : 392
G# : 416
A  : 440
B  : 493.88
C  : 523.25
C# : 554.80

You can double these values to obtain the frequency of the same note on the
next octave. The result is not always exact, but it's a simple formula.

Wed, 18 Jun 1902 08:00:00 GMT
Musical Notes Do - Ray - Me etc

Quote:

> Sound expects the frequency in Hertz. A (in German we name it
> so, not La) has 440 Hz and all the other notes have frequencies
> with a factor of the 12th root of 2.

Correct.  The 12th root of two includes the black keys and white keys,
but the names Do Re Mi etc. apply only to the major keys (the white keys
in the key of C.)  The American names are:

Do    Re    Mi Fa    So     La     Ti Do
C  C# D  D# E  F  F# G  G#  A  A#  B  C
261.6                          440        523.3
Hz                            Hz         Hz

(view in fixed-pitch font)

- Rich

Wed, 18 Jun 1902 08:00:00 GMT
Musical Notes Do - Ray - Me etc
Quote:

> Correct.  The 12th root of two includes the black keys and white keys,
> but the names Do Re Mi etc. apply only to the major keys (the white keys
> in the key of C.)  The American names are:

>    Do    Re    Mi Fa    So     La     Ti Do
>    C  C# D  D# E  F  F# G  G#  A  A#  B  C
> 261.6                          440        523.3
>   Hz                            Hz         Hz

Thank you, now I have the cross reference...

Btw.: It is named an "octave" because it has 12 intervals :-))

One of the usual oddities wherever technique and arts
are crossing. But the "wohltemperierte Klavier" as calculated
by J.S.Bach is more mathematical than fine arts anyway.

Franz Glaser

Wed, 18 Jun 1902 08:00:00 GMT
Musical Notes Do - Ray - Me etc

Quote:

>>    Do    Re    Mi Fa    So     La     Ti Do
>>    C  C# D  D# E  F  F# G  G#  A  A#  B  C
>> 261.6                          440        523.3
>>   Hz                            Hz         Hz

>Thank you, now I have the cross reference...

>Btw.: It is named an "octave" because it has 12 intervals :-))

But only seven intervals in a given scale :-)))

I have a unit, dateprox, in which it is convenient to store the short
names of the days of the week in an array [0..7] :

WeekdayS : array [WkDys] of string [3] =
('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun') ;

This is handy both for ISO (1..7) and for DoW := (DayCount+x) mod 7 ;.

--

Web <URL: http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.

Wed, 18 Jun 1902 08:00:00 GMT
Musical Notes Do - Ray - Me etc
It is worthy to point out that since procedure Sound's accepted
parameter is a word - you have to round off the frequency to whole
number before pass to Sound. The relative error is smaller at higher
pitch than at lower pitch. I have tested it and even at lower pitch
the output is acceptable to human ear.

Clarence Li

Wed, 18 Jun 1902 08:00:00 GMT

 Page 1 of 1 [ 8 post ]

Relevant Pages