Well... First you have to load all of the sounds you would want your guitar to play...
Load Sound "G.wav",1
Load Sound "B_Flat.wav",2
...ect...Make sure the sound files are in the same folder as your project...
Then... you have a couple of choices on how to make it play the sound when you press a button... you could use Inkey$() or Keystate()... personally I would use keystate although it is harder to understand...
If Keystate(5)=1 and sound playing(2)=0 then loop sound 2
If Keystate(5)=0 and sound playing(2)=1 then stop sound 2
Let me break this down for you... "If Keystate(5)=1" If you are pressing the "4" key,(5-1=4)..."and sound playing(2)=0" and the sound number 2 is not already playing... "then loop sound 2" then play sound number 2 over and over again...
The second line works more or less the same way...If your not pressing the "4" key and the sound number 2 is currently playing then it will stop the sound number 2 from playing...
(I hope that made sense...but I doubt it...lol)
To check to see if the user clicks a certain spot on the screen you would say...
If mousclick()=1 and MouseX()+5>20 and MouseX()-5<20
If MouseY()+5>130 and MouseY()-5<130
Play Sound 1
Endif
Endif
This would tell the computer that if the user used the left mouse button to click within 5 units of the XY screen coordinates then it will play the sound number 3...
Well... I hope that helps...
Previously known as "Game_Creator". Thou shalt not thwart the way of the dragon. For thou tasteth like chicken.