Mega Drive Sound Hardware

Discussion in 'General Gaming' started by randyrandall, Aug 17, 2010.

  1. randyrandall

    randyrandall Guest

    Hi,
    In GENS- you can disable four options under 'audio'.

    z80
    YM2612
    PSG
    DAC.

    I know the first two are processors- with the YM being the dedicated Yamaha and the Z80 being teh Zilog chip. What are the PSG and DAC? Did all games use each of these in their music generation? What are the sound characteristics of each? Mega Drive sound generally sounded very 'metallic', and I believe that is the Yamaha chip- what is the reason for this characteristic?

    Some MD games have awful music. Otheres (Eg Sonic) have stunning music. Does the better music use the chips in unison better than bad music? Is it hard to program them in 'sync'.

    Just very interested in this entire field. Any information or links would be most appreciated.

    It is so interesting fiddling with these options in GENS. In Sonic 3D, disabling the YM removes the melody.

    Disabling the Z80 seems to kill it- the timing becomes off and so does the pitch (is this to do with this...? [wiki] The sixth channel can act as a surrogate PCM channel by means of the 'DAC Enable' register, allowing the chip to play 8-bit PCM sound samples. Enabling the register disables FM output for that channel. PCM data is written to the channel via an 8-bit register. The YM2612 does not provide any timing or buffering of the PCM samples, so all frequency control and buffering must be done in software by the host processor.)

    Disabling the DAC kills everything, whilist leaving the DAC and Z80 on just leaves the drum sounds. And sound effects all seem to be generated by the YM. In Talespin- with dreadful muisc- disabling DAC just removes a drum sample, and the music plays. The YM is doing all the 'melody'. And the PSG does nothing. Arg- I'm just craving more info and how these components were used.
     
    Last edited by a moderator: Aug 17, 2010
  2. Tatsujin

    Tatsujin Officer at Arms

    Joined:
    Nov 24, 2005
    Messages:
    3,614
    Likes Received:
    6
    PSG = Programmable Sound Generator
    DAC = Digital to Analogue Converter (used especially for drum things).
     
  3. Kami68k

    Kami68k Robust Member

    Joined:
    Sep 15, 2006
    Messages:
    227
    Likes Received:
    0
    The PSG is (originally) an SN76489 Soundchip. Thats the one you have in the Master System. You will hear it only when playing MS Games :)

    afaik not a single MD Games uses the YM2612 and the PSG together, although It would possible (iirc the BIOS does this).

    The 'metallic' Sound is coming from the YM. It is making sounds using FM Synthesis (FM), and 'metallic' often is a fitting description of what you can do with it ;)

    It looks like in GENS the sound is taking this way:

    Z80 -> PSG + YM2612 (sound synths) -> DAC (plays Samples and mixes them with the synthesized sounds) -> Output (speakers)

    So disable the YM2612 and all you can hear are the samples. Disable the DAC and you hear nothing, etc. :).

    In reality, the PCM Sample is played by the YM2612 aswell, but maybe its easier to work with the chips like this? I dont know.
    The DAC only transforms the digital signal (from PSG+YM) into an analog signal, which you can feed into your Speakers then. It does not "play" anything at all, but it is essential if you want to hear something.
     
    Last edited: Aug 17, 2010
  4. Alchy

    Alchy Illustrious Member

    Joined:
    Apr 6, 2004
    Messages:
    6,216
    Likes Received:
    19
    FM synthesis. It's a complex method of sound generation that is not intuitive and requires a reasonably high level of mathematical and programming competence from the composer. Since most composers aren't programmers and vice versa this presents something of a problem. It's the reason some MD games have truly terrible music - it's a tough chip to work and it takes time to become competent with FM synthesis. By contrast the SNES had a separate sound board with a wavetable synth (sample-based, had its own dedicated CPU and RAM) and software conversion utilities for MIDI, all of which sounds a lot more friendly.

    I don't really understand why the DAC is listed in GENS. I suppose its audio characteristics are being emulated? I also don't understand how Tailspin can play any music at all if it's disabled, it's obviously essential for any sound to be played. 0s and 1s need to become waveforms before they can be heard!

    The YM chip isn't classed as a CPU, incidentally.
     
  5. Tatsujin

    Tatsujin Officer at Arms

    Joined:
    Nov 24, 2005
    Messages:
    3,614
    Likes Received:
    6
  6. ccovell

    ccovell Resolute Member

    Joined:
    Jan 29, 2005
    Messages:
    954
    Likes Received:
    10
    This is not true and in fact hundreds of games use the YM2612 and SN764** PSG chips together. (Also, MDs from 1988-1991 have no BIOS and thus the BIOS plays no part in setting up audio. It's a lockout chip for unlicensed games.)

    Turn off the YM chip in your player's options and try game soundtracks like Gauntlet IV, Sonic, Streets of Rage, Gunstar Heroes, etc. You'll hear the PSG used for backup melodies and some leads. Gunstar Heroes is in fact very PSG-heavy.

    Anyway, the Z80 CPU is often used as the sound driver in most MD games, because it's otherwise left idle with the 68K CPU running the game itself.
     
    Last edited: Aug 18, 2010
  7. l_oliveira

    l_oliveira Officer at Arms

    Joined:
    Nov 24, 2007
    Messages:
    3,879
    Likes Received:
    245
    For example all Sonic games use the PSG for Sonic's jump sound.
     
  8. MottZilla

    MottZilla Champion of the Forum

    Joined:
    Feb 1, 2006
    Messages:
    5,066
    Likes Received:
    102
    T.M.N.T. The Hyperstone Heist uses the YM2612, PSG, and DAC together very well. When I read this I checked out some other games, like Castlevania Bloodlines which seemed to me to only use the YM2612. It didn't seem to use the PSG or DAC at all, atleast not in the brief bit I played with the others disabled.
     
  9. LocalH

    LocalH Spirited Member

    Joined:
    Sep 2, 2007
    Messages:
    134
    Likes Received:
    13
    The DAC only handles digital samples, usually output under control of the Z80. The 2612 synth and PSG do not go through the DAC for output.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page