X16 BASIC FM (and PSG) Utility

Post Reply
voidstar
Posts: 359
Joined: Thu Apr 15, 2021 8:05 am

X16 BASIC FM (and PSG) Utility

Post by voidstar »

This is a utility to help understand all the FMxxxx BASIC commands and what the resulting effects sound like.

This sets up parameters for each of the 8 channels that can be passed to FMFREQ or FMNOTE or FMDRUM.

Then there are also settings for the related parameters of FMINST, FMPAN, FMVOL.

It was meant to help with very brief sound effects to be used in BASIC games.

This does not help with FMCHORD or FMPLAY commands, and is not meant as any kind of tracker - it is just a simple sounds-effects tool. And can also quickly show a variety of things the FM chip can be made to do.

In the "Try it Now" you can press L to LOAD a sample file. Then press SPACE to play that sample.


This was made using BASLOAD. The BAS source is actually a text file, that BASLOAD will tokenize as it reads it in.

Version 1.0 has added a lot of features:
- save/load to custom filename
- EXPORT command: export the current settings to the equivalent set of BASIC command program
- AUTO command: automatically play all the active channels continuously (and can continue to adjust settings in real time)
- FMVIB can also be adjusted (effect applies only to certain instruments)
- Each channel has its own post SLEEP delay, if desired

Version 1.1 fixes:
- Fixed a bug where after a COPY channel the sound settings weren't automatically being applied
- Minor cosmetic update on the current channel highlight (now top and bottom) to help make it more clear
- SAVE/LOAD wording updated as a reminder to which operation is being performed (in case pressed wrong button)

Try It Now!
Attachments
X16AUDIOFM_1_1.ZIP
(58.8 KiB) Downloaded 139 times
X16AUDIOFM.PRG
(13.17 KiB) Downloaded 126 times
X16audiofm1_1.png
X16audiofm1_1.png (21.57 KiB) Viewed 2159 times
X16AUDIOFM.BAS
(16.77 KiB) Downloaded 132 times
Last edited by voidstar on Mon Oct 02, 2023 6:46 am, edited 1 time in total.
voidstar
Posts: 359
Joined: Thu Apr 15, 2021 8:05 am

Re: X16 BASIC FM Utility

Post by voidstar »

Here is a PSG version of essentially the same utility (PSGFREQ, PSGNOTE, along with PSGVOL and PSGPAN -- but not PSGCHORD or PSGPLAY).

However, PSGFREQ commands don't "stop" (until set to 0 explicitly). So be prepared to press Z to stop the audio. Toggling a channel off will also set its volume to 0.

Intended just to help dial in some brief sound effects within BASIC.
Attachments
X16AUDIOPSG.PRG
(11.88 KiB) Downloaded 122 times
X16AUDIOPSG.BAS
(15.37 KiB) Downloaded 117 times
voidstar
Posts: 359
Joined: Thu Apr 15, 2021 8:05 am

Re: X16 BASIC FM (and PSG) Utility

Post by voidstar »

reminder: Possible bug in PSG version during LOAD (maybe only during multi-channel)
Post Reply