Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by AlexPaterson

  1. On 11/24/2021 at 6:16 PM, SlithyMatt said:

    Well, you did pick a very low frequency: about 265 Hz. Maybe try a higher frequency by poking 4 instead of 2 in the high frequency byte. Also, I don't imagine that the for loop gives you a very long tone. At 8MHz, the X16 should plow through that pretty quick.

    I've increased the frequency, but that doesn't seem to make much difference to the volume. I've also increased the length of the tone too.

    On 11/24/2021 at 6:40 PM, kliepatsch said:

    I didn't check your source, but you are right: The overall volume of the emulator is very low.

    That explains why changing the frequency and duration doesn't change much.


    Thanks for the help @SlithyMatt and @kliepatsch

  2. On 11/24/2021 at 2:49 PM, SlithyMatt said:

    It all depends on what kind of sound you want to make. I have videos showing you how to use the Programmable Sound Generator (PSG):

    and then another for using the YM2151 FM Synthesizer chip:

    If you want to playback PCM sound samples, I have example code but no video yet.

    Thanks @SlithyMatt, but I managed to adapt a BASIC program from here (https://www.8bitcoding.com/p/sound-in-basic-i-programmable-sound.html) to play a simple sound using vpoke statements. I've attached the .c file I used to this post in case anyone asks the same question I did. However, it's very quiet - way quieter than the rest of the sounds on my PC - even though I've set the volume bits set to all 1's. Is this an emulator thing, or have I done something wrong?


  • Create New...

Important Information

Please review our Terms of Use