Computer Science Canada

music for happy birthday

Author:  rainbow-connexion [ Thu Apr 21, 2005 9:39 pm ]
Post subject:  music for happy birthday

hey, if anyone can help...if i were to create a procedure that plays the tune to happy birthday, how would i do that?

would it just be like this?

procedure happy birthday

play ("GGABDFGBCBAGGA2G") <--not the real notes, just an example

end happy birthday

Author:  mike200015 [ Thu Apr 21, 2005 11:18 pm ]
Post subject: 

yep thats right.. the only thing, when u name the procedure, there cant be any spaces so change it to "happybirthday" as one word or watever... and then u also gotta call the procedure in order for it to execute, ie:
code:
procedure happybirthday

play ("GGABDFGBCBAGGA2G")

end happybirthday

happybirthday %this line executes your procedure above

Author:  *fourstar [ Sat Apr 23, 2005 8:30 pm ]
Post subject: 

oh and music, are their higher octaves in the music part of turing? there probably is one, but how would you use it? i dont think using numbers like 6 cuz thats like a rest or seomthing, can somebody help me

also how do you upload music files into your program, when i tried to upload my music, and specify the address like the tutorials said, my program always says illegal string term of something and it highlights my 'c:/mydocuments' part and if i take out the my documents part then it take highlights the next section like 'c:/mymusicfiles', can someone help me


: