Hi,
I've made a music player on BBC BASIC, but the emulator randomly crash when I play music notes with the VDP.
This is how I proceed to play notes, stopping them if they are a little too long :
1) Reset note (disable/enable)
2) Play note
33230 REM play note with the VDU
33240 VDU 23,0,&85,chan%-1,10:VDU 23,0,&85,chan%-1,4,waveform%(wvf%(chan%)):VDU 23,0,&85,chan%-1,0,vlm%(chan%)*2,n%(nt%,octv%(chan%)-1);nln%(chan%);
Checking sysvars before, to play notes when the emulator is ready, changes nothing.
Hi, I've made a music player on BBC BASIC, but the emulator randomly crash when I play music notes with the VDP.
This is how I proceed to play notes, stopping them if they are a little too long : 1) Reset note (disable/enable) 2) Play note
33230 REM play note with the VDU 33240 VDU 23,0,&85,chan%-1,10:VDU 23,0,&85,chan%-1,4,waveform%(wvf%(chan%)):VDU 23,0,&85,chan%-1,0,vlm%(chan%)*2,n%(nt%,octv%(chan%)-1);nln%(chan%);
Checking sysvars before, to play notes when the emulator is ready, changes nothing.