Playing Music in Background
Hi guys! So, I made the theme from The Pirates of the Caribbean using several play statements for a pirate themed basic. I want to play this in the background, and after searching the internet, found the command "mb" which is supposed to make this possible. However, when I try this, the program does not progress until the song's over. Any suggestions?
P.S. I only have TrueBasic Bronze... Does the mb command even exist in bronze?
Comments
Yes that's right. we can play
Yes that's right. we can play but little change in the coding with the audio file location will need to be add in that code.
Re:Playing Music in Background
This code seems to workd fine for me:
FOR X=1 TO 1
READ MUSIC$
PLAY MUSIC$
PRINT MUSIC$
NEXT X
DATA T220 MB A B C B D E F G A C D E F G A B D C
END
PS: You have to put MB at the begining of every line. Also, if it is in a loop, it will not loop until the current line(s) have finished playing. Example:
FOR X=1 TO 2
READ MUSIC$
PLAY MUSIC$
NEXT X
END
DATA T100 MB A B C D
DATA MB G E F D
In this code, the program would not print the second line of music until the first line ended.