07-21-2022, 08:17 PM
Neat little experiment.
Yeah I think the PLAY command might be the only one that can play while the code keeps going. It uses the MB command inside the PLAY command to tell it to play that way. Here is an example I just made. MB sets it to play while it keeps going and the letters are the sound notes and the numbers are the duration of each note.
You also can see many other commands that PLAY has here. There might be a way to make a ship sound with it, not sure.
https://qb64phoenix.com/qb64wiki/index.php/PLAY
Yeah I think the PLAY command might be the only one that can play while the code keeps going. It uses the MB command inside the PLAY command to tell it to play that way. Here is an example I just made. MB sets it to play while it keeps going and the letters are the sound notes and the numbers are the duration of each note.
You also can see many other commands that PLAY has here. There might be a way to make a ship sound with it, not sure.
https://qb64phoenix.com/qb64wiki/index.php/PLAY
Code: (Select All)
Do
t = t + 1
Print t
Play "MB a16b16c16d16e16f16g16"
Loop