Dead Hackers Society
Other BBSes »

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

Atari demoscene BBS
Re: YM2149
Posted by: Paranoid Jun,02.2024-13:50 

I think evl quoted the basic skeleton of sample code above, even though it's a bit cryptic. The sample routines i know decouple any sort of frequency generator from any channel (which will lead to a permanent high on each channel internally) and then modulate the output amplitude by setting each channel's volume register as defined by the sample. Per channel, the volume is limited to 4 Bits but by using more channels, the precision can be extended to 8 Bits.

But this into a timer interrupt service routine occuring 5000 per second and your sample plays at 5KHz.

Because the YM needs to accept and process the data to a certain degree, i think its 2MHz clock limits the replay rate achievable, no matter how fast your CPU is.

The Paranoid / Paradox

[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
YM2149 AdamK May,31.2024-21:18
  Re: YM2149 evil Jun,01.2024-19:31
    Re: YM2149 Cyprian Jun,01.2024-23:09
      Re: YM2149 evil Jun,02.2024-10:57
        Re: YM2149 Paranoid Jun,02.2024-11:13
          Re: YM2149 AdamK Jun,02.2024-11:36
            Re: YM2149 Cyprian Jun,02.2024-13:11
              Re: YM2149 Paranoid Jun,02.2024-13:50
                Re: YM2149 evil Jun,02.2024-16:50
                  Re: YM2149 Cyprian Jun,02.2024-18:13

Reply to this message
Anti-troll code:


What's the anti-troll code?
That's your personal code to be able to add comments and messages on the site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson