
-----------------------------------
PianoGirl
Mon Jan 17, 2005 8:58 am

Music.Play and different versions of turing
-----------------------------------
I previously posted about a problem with Musi.Play and I would first like to thank all of you for your help with the program.  :) 

However, I am having a problem. The program works fine with Turing 4.0.1, but not with Turing 4.0.5. 

I could use Turing 4.0.1 for the program, but here are my problems: 
- Pic.Scale does not work
- jpegs are not supported, and I have many pictures so bmps would slow down the program tremendously
- the forking is not working so I cannot play chords. 

For 4.0.5:
- I cannot play the bass clef notes and the treble clef notes at the same time

Here is my code:

** Please note that the code below is only for playing the music, none of my picture files and other routines are included. 



% Routines and Procedures

function checkNote (x : string (1)) : string

   % Purpose: Tells the program which note is associated with each key on the keyboard

   % Down 1 octave:
   if x = " " then % space - C
       result "d"
   elsif x = chr (57) then % 9 - E
       result ">e"
   elsif x = chr (48) then % 0 - F
       result ">f"
   elsif x = chr (45) then % - - G
       result ">g"
   elsif x = chr (61) then % = - A
       result ">a"
   elsif x = chr (8) then % backspace - B
       result ">b"
   elsif x = chr (192) then % F6 - #C
       result ">c+"
   elsif x = chr (193) then % F7 - #D
       result ">d+"
   elsif x = chr (195) then % F9 - #F
       result ">f+"
   elsif x = chr (196) then % F10 - #G
       result ">g+"
   elsif x = chr (197) then % F11 - #A
       result ">a+"

       % Down 3 octaves:
   elsif x = chr (90) then % Z - C
       result "