Page 2 of 3

New community dev tool uploaded: Simplest Sound Effects Library for BASIC programs

Posted: Tue Sep 01, 2020 3:23 pm
by BruceMcF


On 8/31/2020 at 4:26 AM, DusanStrakl said:




Very cool! No I don't preserve registers.



OK, I've added PUSH, and PULL, to "comma" ("copy data into the current spot in the dictionary") whichever register storage to the hardware stack is required by the implementation.

I've only recently downloaded the CX16 emulator, and I don't have sound, but I'm pretty sure it will be straightforward. I don't touch interrupts at all at this point in Forth compiler development.


New community dev tool uploaded: Simplest Sound Effects Library for BASIC programs

Posted: Sat Sep 12, 2020 2:15 pm
by mobluse

I tried both EFFECTS and EFFECTSHI with my program Aritm, but in both cases it deletes the screen and changes background color after the sound, and then you cannot see what you type. I use R38 of the emulator in most updated Windows 10.

I added these lines to Aritm:


Quote




10 IF PEEK($9000)=0 THEN LOAD"EFFECTSHI.PRG",8,1,$9000



3612 SYS $9000






Quote




10 IF PEEK($400)=0 THEN LOAD"EFFECTS.PRG",8,1,$0400



3612 SYS $400



 


New community dev tool uploaded: Simplest Sound Effects Library for BASIC programs

Posted: Thu Sep 24, 2020 6:09 pm
by DusanStrakl


On 9/12/2020 at 7:15 AM, mobluse said:




I tried both EFFECTS and EFFECTSHI with my program Aritm, but in both cases it deletes the screen and changes background color after the sound, and then you cannot see what you type. I use R38 of the emulator in most updated Windows 10.



I added these lines to Aritm:



 



Thanks for the comment Mikael. It seems that there was some interference between effects library and some VERA related actions from BASIC programs, specifically in your case, scrolling of the screen. I added some code to save and restore VERA state inside the IRQ Player. I tried both EFFECTS.PRG and EFFECTSHI.PRG with your program and it seems to work without problems now. 


New community dev tool uploaded: Simplest Sound Effects Library for BASIC programs

Posted: Fri Sep 25, 2020 12:30 pm
by mobluse


22 hours ago, DusanStrakl said:




Thanks for the comment Mikael. It seems that there was some interference between effects library and some VERA related actions from BASIC programs, specifically in your case, scrolling of the screen. I added some code to save and restore VERA state inside the IRQ Player. I tried both EFFECTS.PRG and EFFECTSHI.PRG with your program and it seems to work without problems now. 



Yes, both EFFECTS and EFFECTSHI works for me in Aritm now. In order to use it with the "Try it now" button one would have to be able to upload disk images or have some way of including the sound effects library in a single file with my BASICv2-program. Edit: The "Try it now" button for Aritm with sound works now. I put both files in a zip-file and updated. It automatically selected the right file, but if it should choose wrong you can edit which file is the main program.


New community dev tool uploaded: Simplest Sound Effects Library for BASIC programs

Posted: Fri Sep 25, 2020 3:03 pm
by mobluse

In the table EXPLODE and ZAP should switch places.


New community dev tool uploaded: Simplest Sound Effects Library for BASIC programs

Posted: Fri Sep 25, 2020 7:43 pm
by DusanStrakl


4 hours ago, mobluse said:




In the table EXPLODE and ZAP should switch places.



Thanks. Corrected.


New community dev tool uploaded: Simplest Sound Effects Library for BASIC programs

Posted: Tue Jan 12, 2021 1:56 am
by mobluse


On 9/25/2020 at 9:43 PM, DusanStrakl said:




Thanks. Corrected.



Yes, it's fixed in the first post here, but the table is still wrong on the file download page: https://www.commanderx16.com/forum/index.php?/files/file/62-simplest-sound-effects-library-for-basic-programs/


New community dev tool uploaded: Simplest Sound Effects Library for BASIC programs

Posted: Tue Jan 12, 2021 2:03 am
by DusanStrakl


5 minutes ago, mobluse said:




Yes, it's fixed in the first post here, but the table is still wrong on the file download page: https://www.commanderx16.com/forum/index.php?/files/file/62-simplest-sound-effects-library-for-basic-programs/



Darn it. Thanks, you have eagle eyes. I hope that is fixed now too.


New community dev tool uploaded: Simplest Sound Effects Library for BASIC programs

Posted: Tue Jan 12, 2021 11:49 am
by paulscottrobson

Did you used to own an ORIC ?


New community dev tool uploaded: Simplest Sound Effects Library for BASIC programs

Posted: Tue Jan 12, 2021 4:30 pm
by DusanStrakl


4 hours ago, paulscottrobson said:




Did you used to own an ORIC ?



Ha, ha, yes I did. It was my first computer. Anybody who did will know these four sound effects ?