Musical notes in MMBASIC


Author Message
cosmic frog
Guru

Joined: 09/02/2012
Location: United Kingdom
Posts: 307
Posted: 09:37pm 14 Mar 2012      

Hello, Just finished working out all the notes for use in the SOUND Command.

E=83,F=88,F#=93,G=98,G#=104,A=110,A#=117,B=124,C=131,C#=139, D=147,D#=156.

To play the next octave just times by 2 ie.C=131*2 is 262.
So a list of notes with five octaves would look like this-

E 83,165,330,660,1320
F 88,175,350,700,1400
F# 93,185,370,740,1480
G 98,196,392,785,1570
G# 104,208,416,832,1664
A 110,220,440,880,1760
A# 117,233,467,934,1868
B 124,247,495,990,1980
C 131,262,525,1050,2100
C# 139,277,555,1110,2220
D 147,294,558,1176,2352
D# 156,311,623,1246,2492

Hopefully this list will make it a lot easier when writing music in MMBASIC.

Dave.