Showing posts with label Sega. Show all posts
Showing posts with label Sega. Show all posts

Wednesday, April 15, 2015

GEEKSPEAK U: The Yamaha FM chips of Gaming - Part 12 of 12: YMF292 (aka SCSP - Saturn Custom Sound Processor

Happy Tax deadline day to my US readers! :-)

This is our final installment of the FM chips series, and frankly, I wasn't even going to do this one. Why? Because I have yet to find anything that's music on the Saturn that is 100% confirmed to be FM.

What gives?

Well, the FM on the SCSP is a REALLY interesting animal. And when I'm done explaining it, you'll see why I say it is by far the MOST powerful, and yet, the LEAST powerful (or at least, the least useful) of all the FM chips.

Here's how it works. The SCSP is a 32-channel PCM chip, but each of those channels can function as an FM operator as well. NOTE: I did NOT say FM channel. I said FM operator. So, if you wanted to have a four op FM voice, you had to slave four channels to this voice. That means to replicate the functionality of the OPM (which if could do perfectly), you needed to tie up all 32-channels just to have the 8 channels of the OPM. If you wanted to replicate the OPN2, you had to tie up 24 channels with eight free for other stuff. If you wanted to replicate the OPL2, then you had to tie up 18 or 22 channels (depending on "drum mode" on or off) with 14-10 channels free for other things. Replicating an OPL3 would be impossible since you'd need 36-38 channels and you only have 32. OPL4? [In my worst fake New York accent] "Forget about it!"

So, when a) you have to tie up two-to-four channels just for one voice, b) you had such high quality sampling available plus post-sample effects like envelopes etc that it's virtually impossible to distinguish "sampled FM" from "real FM", or could just stream PCM samples of FM or use rebook audio, and c) it takes a whole lot more programming work to get the four channels to work together properly than it does to slap down a sample, it's so EXCEEDINGLY impractical to actually use real FM that like I said, I have yet to find anyone absolutely confirm its use as music instruments. I have had a few instances confirmed as sound effects, and have had have a few instances confirmed using the FM function in the sub sonic range as an LFO on music and sound effects...but that's it. No real FM used for music unearthed (so far) even though there are a lot of "FMy" sampled sounds used in Saturn music.

This is why I say it's the LEAST powerful, or at least, least useful FM chip in the bunch. Essentially worthless in any practical sense as its [shall we not say] "robust" usage demonstrates.

However, the great paradox here is that in a theoretical sense, in terms of what the chip actually "could" do, it is so far and away above and beyond ANY of the FM chips we've looked at.

Consider: OPM, you could do anything you wanted with one waveform on up to four operators on a given channel. OPL3, you could do anything you wanted with up to eight waveforms on up to four operators on a given channel. With the SCSP, you had a virtually limitless variety of eligible waveforms (as far as I know, you could even use a PCM sample as your waveform, so "FMing" PCM, and all the tantalizing possibilities that entails), plus, you were not constrained to the number of operators you could use on a single voice (up to the 32-channel limit of course). So, while it would probably sound absolutely TERRIBLE, and while it's be incredibly impractical, if you wanted a single 32-operator voice with complex PCM samples as your waveforms....you could do it. Heck, for perspective, even the venerable Yamaha DX7 music keyboard (YM21280 - OPS) could not do anything even remotely like this, being instead "just" a 16-channel, 6-op, straightforward FM chip. Heck, OPS was even sine-only. From the documents I've read, though, if and when SCSP did use FM, it pretty much just kept things to four-operators.

So, unfortunately, I must end this series rather anticlimactically, and leave you, not with music that demonstrates the amazing powers of this most peculiar chip, but rather, with videos of a simple (early 80's TV sounding) jingle being played over and over again with different FM parameters, not seeming to use more than four ops a voice, and only using basic or quasi basic waveforms for the operators (much of this sounds very OPM to me). I'll also include a video of them scrolling through available waveforms, and most of them are not sine, so if the FM parameters used in the jingle are these waveforms, and not just sine, then this is indeed going beyond what the OPM would be capable of.

I hate to use something so simple to demonstrate something so powerful. It's like letting a lion out into a very small cage...but on the other hand, as far as I can tell, appealing to actual Sega Saturn music is like not letting the lion out at all. At least this is real FM really being done on a real Sega Saturn...

...enjoy?






PS. Thank you for coming along with me on this journey through the FM chips of Gaming! I hope it was equal parts educational and entertaining ("Edutaining?"). And I hope it will help you see - and hear FM in a whole new light...or at least with greater depth and clarity.

Cheers!

Sunday, April 12, 2015

GEEKSPEAK U: The Yamaha FM chips of Gaming - Part 8 of 12: YM2413 (aka OPLL)

OPLL is based on the OPL2, but stripped down for budget purposes. For one, it could only use two of OPL2's four waveform options - plain sine, or half sine, and not the absolute sine or quarter sine. For two, it was TDM, like the OPN2, rather than adder output (though I do not believe it suffered from the ladder effect).

Lastly, and perhaps most importantly, on ALL of these chips I've mentioned so far, OPM, OPN, and OPL you could custom set the channel parameters (operators, algorithms, etc) on EVERY channel on that chip. On the OPLL, of the nine (or six) instrument channels, only one...ONE was completely user definable. The other channels had to use "canned", or pre-programmed instruments (such as flute, acoustic bass, guitar, brass, etc).

There were 15 canned voices that programmers could choose from, and that was what they had to work with. Granted, the voices sounded nice...but still they were canned instruments, with only one definable custom voice at any one time. As a result, OPLL music is going to sound a LOT more samey than any of the other FM chips.

That's a huge limitation for OPLL! Even with OPL only being able to use plain sine, OPL, as "vanilla FM" as it is is still generally regarded to be the more all-around usable, powerful chip because of the user definability of all its channels. Though, to me, the listener, I still think OPLL sounds more robust than OPL due to it's ability to use half-sine operators. It sounds more like OPL2 to me than OPL.

I guess I'll let you decide for yourself. :-)

OPLL did see some use in the Arcade (though I don't believe it was ever used by itself, but in conjunction with, say, the OPN), and it was also used in an FM music making cart for the MSX called the MSX Music. There was also MSX Audio which was considered the more powerful format, and featured OPL instead of OPLL. But most likely its most famous use was in the Japanese Sega Mastersystem. The Japanese Mastersystem had the OPLL built in as well as the global Mastersystem's PSG chip, the Texas Instruments SN76489. None of the other region's Mastersystems had the OPLL built-in (though there is an aftermarket mod kit that will add it to the other regions).

The relationship between FM and PSG on the Mastersystem is different than the relationship between FM and PSG on the Genesis. On the Genesis, the PSG supplements the FM, and all Genesis games (except Frogger) use the FM, but several choose to supplement it with PSG, bringing sound channels to 10 from 6. Well, in the case of the Mastersystem, it's either or, rather than both / and.

Many games have no instructions for FM, and will run PSG in any region. The ones with instructions for FM also have instructions for PSG, but they won't run simultaneously, instead, it will check for the presence of the OPLL, and if found, will play FM. If not found, it will revert to PSG (this is why the FM mod on, say, the US Mastersystem will be effective, because even the US version of those games still have the FM code in them, they just revert to PSG when the FM chip is not found).

The only exception to this is not a game, but the BIOS screen to the JP SMS, if turned on without a game plugged in, it'll play a track from Space Harrier, but modified to feature FM and PSG working in concert, like you'd hear on the Genesis. This implies to me that it's not an actual hardware limitation in the system as I had suspected. I suppose it's so the game will work seamlessly in any region without requiring reprogramming.

If anyone knows of any actual Mastersystem games that actually do use FM and PSG in tandem, please let us know in the comments.

The Konami VRC7 chip is based on the YM2413, but there are enough differences between it and a stock OPLL that we can consider it a distinct chip, and thus, it shall receive its own part in the series.

I'll share some OPLL examples from the Mastersystem, as well as the MSX Music. And for cross-reference, I'll share both the FM and the PSG versions of the Mastersystem R-Type soundtrack.

For starters, here's the FM version of R-Type


Now, here's the PSG version - this is running on the Texas Instrument SN76489 PSG chip that is common to all regions of the Mastersystem (and is also the exact same PSG chip used in the Genesis for its PSG - a modified for stereo version of it can be found in the Game Gear handheld)


One more comparison while we're at it, The Aleste soundtrack - only this time not Mastersystem FM vs Mastersystem PSG, but rather Mastersystem OPLL vs MSX Music OPLL. The MSX version sounds much beefier and fuller, while the Mastersystem version sounds thinner and scratchier. I don't know if this is an accurate reflection of the difference from system to system, or just the quality of the YouTube video. More investigation is required on my part, and if I find anything interesting, I may post a blog about it in the future.

Meanwhile, here's the Mastersystem version


Here's the MSX: One difference I do notice is that the MSX version is getting some percussive help here and there from the MSX's stock PSG chip, while the Mastersystem version is depending entirely on the FM chip. I don't believe this wouldn't account for any of the differences I mentioned above, but it is a difference to notice.


There were different carts with the MSX Music designation. While they all had the OPLL as the common denominator, and while they all had access to the MSX's stock General Instruments AY-3-8910 PSG, they differed in various other ways. Some even included the ability to use PCM percussion! As far as how this FM/PCM/PSG MSX2 sound system would stack up to say, a Sega Genesis, it's an interesting question. The FM chip in the Genesis is substantially superior to the FM chip found in the MSX, but the PCM quality is significantly better than the DAC sampler on FM channel 6 in the Genesis (and the MSX PSG is slightly better than the PSG the Genesis uses as well.) I'd still give the crown to the Genesis on account of the FM chips. But it's a real question, worthy of real discussion.

Once again, I'll let you decide for yourself. Here are Xak 1 and 2, and Xak: The Tower of Gazzel (presumably Xak 3.) For some reason, the Xak 2 soundtrack does not use PCM percussion, but 1 and 3 do.




As alluded to earlier, here's the OPLL/PSG duet JP BIOS version of the Space Harrier theme



And lastly, I'll just leave you with two random tracks from the Mastersystem...just because.

Galaxy Force - Beyond the Galaxy (in my opinion, the best Mastersystem use of the OPLL of everything I've shared here.)



Double Dragon - Stage 2


Friday, April 10, 2015

GEEKSPEAK U: The Yamaha FM chips of Gaming - Part 5 of 12: YM2612/YM3438 (aka OPN2/OPN2c)

We've heard from chips, and will hear from chips both more powerful and less powerful than the YM2612 (OPN2). But this one is by far the most famous FM chip in gaming. It was only used in two systems, the Fujitsu FM Towns / FM Towns Marty (along with the same Ricoh ADPCM sampler used in the Sega CD), and of course, most famously, the OPN2 was the FM chip powering the Sega Genesis.

It is a six channel FM chip, with the PSG components gutted out of it (though I guess things that would've gone to the PSG are still there, showing its OPN DNA). The OPN2 didn't have an independent sampler channel, but it could sample....at a price: Channel six could either function as an FM channel, or as a fairly basic DAC sampler (much better at sampling than NES, but not as good as these other chips with dedicated ADPCM, or the SNES, or heck, even the PC Engine). So, what that means is without other methods of producing percussion, the Genesis, though technically a six channel FM chip, in effect, only could realistically use five FM musical voices at once (except, of course, when there was no percussion in the track, then you could have six concurrent non-percussive FM instruments).

In the case of the Genesis, it DID have PSG...but not via the YM2612. Again, the YM2149 was gutted out of the YM2612, though the "PSG-shaped-hole" in the 2612 is still apparent for those with eyes to see. Instead, it carried over the Texas Instruments SN76489 PSG that was in the 8-bit 3rd ten Sega Mastersystem. This was principally for backwards compatibility with SMS games, but did work in concert with the OPN2 giving the system a total of 10 channels...when used. Many games use the PSG...and many games don't.

The OPN2, had an interesting bug in it called "the ladder effect", where the negative half of the waveform was ever so slightly delayed. This had an impact on sound that was generally viewed as unfavorable, so there were filters built in to the system to combat this. Also, as a cost saving move, the OPN2 did not use an "adder" to mix down the individual sound channels for stereo output (like the others), but instead, used a method called a "Time Duplex Multipler". TDM is where instead of adding the channels together to mix them down for output, what it did was only output one channel at once, but toggled between those channels so fast that the human ear can't detect it, and perceives that it's hearing all six channels at once - even when in reality, it is actually only hearing one channel at any given time. This TDM technology was (is?) also used in telecommunications applications.

There was a slightly modified version of the OPN2, the OPN2c (YM3438), but I can't recall the particulars of how it's different (other than it's a CMOS version), and don't feel like looking it up. I don't think it was used in any consoles, though it might've been used in the arcade. The OPN2 was not used in the arcade as best as I'm aware, with the lone exception of "Thunder Force AC", which is just a slightly-modded-for-arcade-play version of Thunder Force III, and as best as I can tell, is running entirely on Sega Genesis hardware, only in an arcade form factor.

There are several soundtracks I could share that use both FM and PSG (with the resulting sound being very similar to the OPNA (2608), only with less robust percussion and samples). The PSG in the Genesis IS inferior to the YM2419 built into the YM2608, but in the context of just supplementing a louder, stronger FM, the differences are so incredibly negligible, that it's usually quite difficult to discern.

To give you the purest taste of the YM2612, I felt my main soundtrack example should be from a game that does NOT use PSG or even DAC samples. This soundtrack I'm about to share, namely, Castlevania Bloodlines, is 100% FM cover to cover. In this application, the YM2612 will sound similar a YM2151 (OPM), but with fewer channels, ladder effect, etc. It will only come very close to measuring up...without quite making it. Still, considering this chip at least has the ability to sample, while the OPM doesn't, there's still at least a case to be made for YM2612 in a 2612 vs 2151 contest.

Afterwards, I will share at least one example of all the other Genesis modes (FM+DAC+PSG, FM+DAC-PSG, and FM-DAC+PSG) as well as sharing something from the FM Towns Marty that uses the chip.

Meanwhile, enjoy Castlevania! :-)


Now, for the opposite extreme, here are a couple soundtracks WITH PSG AND DAC. In this mode, the Genesis can sample, and has a total of 10 channels.

Streets of Rage 2 - composed by the legendary Yuzo Koshiro [SALUTE!]


Here's another to use FM + DAC + PSG (and one of my favorite soundtracks on the system) - Sword of Vermilion


And another - Ristar

Now, sometimes a soundtrack with really good FM percussion can fool you, and make you think you're listening to DAC drums when it is all FM. I had believed all along that this soundtrack used DAC, but it was in listening to it tonight with critical ears that I discovered to my amazement, it was actually FM. So, this soundtrack DOES use PSG, but DOES NOT use DAC - Thunder Force IV (aka Lightening Force - their typo, not mine)


And here's another - same thing: Had always assumed the percussion was at least partially sampled, but it's actually all FM. In fact, this whole thing is FM, there's no PSG either. This is the only partially completed soundtrack to the unreleased Genesis version of Time Trax - composed by Tim and/or Geoff Follin (in both NTSC 60Hz tempo, and PAL 50Hz - which was authorial intent). This one's AMAZING through and through!



Most of time when you're dealing with FM drums, it's really obvious - like this soundtrack (this one is also all FM, no DAC or PSG) - Burning Force


Or the Dick Tracy Soundtrack (which is FM and a splash of PSG, without DAC)


Or this track from Arnold Palmer Golf (which is also FM and PSG, without DAC)


Okay, now let's have a few that DO feature DAC, but DO NOT feature PSG. Let's start with Mortal Kombat (by Matt Furniss, a contemporary to the Follins, and they're all British).


Or how's about another Matt Furniss rendition: Wolfchild!


Lastly for DAC, but no PSG, and almost lastly for this blog post, here's the Puggsy soundtrack - also by Matt Furniss.


And lastly for Matt Furniss, and the Genesis - here's a track that uses no DAC or PSG (or even percussion of any kind), but is just this amazingly rich, harmonics saturated, haunting FM organ sound - Options screen from Bram Stoker's Dracula. This may be my favorite FM sound made on the Genesis. It's so big, and rich, and ambient...and smooth! Paradoxically, it's both frightening, and soothing all at once. I also like how you can still hear "hints of sine" in it. I wish someone would make a YouTube video of this extended for like three hours. I'd just sit and listen to it all. This particular video is playing this back on an emulator. On real hardware there aren't all the pops...but there is a fuzzy buzz. While I prefer real hardware sound to emulation overall, I'll take the pops in the emulation over the fuzzy buzzy of the real chip in this instance.


Okay. So no more Genesis, but a focus on the YM2612 would be incomplete without looking at at least one thing from the FM Towns/FM Towns Marty - the only other system the chip appeared in. Let's wrap up here tonight with Genocide!

Many FM Towns games used CD-Audio, and bypassed the sound chips completely. Others took advantage of off-board MIDI sound systems, also bypassing the built-in chips. This soundtrack is the only full soundtrack I've been able to find to use the system stock chips.

There are two chips at work here, a Ricoh RF56C68 ADPCM chip (VERY similar to the Ricoh RF5C124 in the Sega CD) - and then, of course, our YM2612. Actually, though it's not the same hardware at all, the pairing actually results in a very similar sound to the Neo Geo AES/MVS. VERY SIMILAR!

The Ricoh ADPCM is an absolute beast of a chip though, so it's no surprise it's in the driver's seat, with the OPN2 just kinda playing support. Still, you can clearly hear it almost the whole time, and it's the EXACT SAME hardware pushing FM as we've been hearing in the Genesis.

Here you go:


Ah heck, one more FM Towns - also a Genocide game: Genocide 2! Then we're done, I promise!


Monday, April 6, 2015

GEEKSPEAK U: The Yamaha FM chips of Gaming - Part 1 of 12: Introduction + OPM (YM2151)

While Yamaha had several lines of chips that either "were", or at least "had" FM, for pre-fifth generation gaming, only three lines were used, OPM, OPL, and OPN. Each chip had a chip name, and then a name identifying what series it was from, and its relation to the rest of the series.

The OPM "series" was not really a series, as it only had one chip, the YM2151....and it's series identifier....wait for it, waaaaaiiit for it: "OPM".

While there were several FM chips used in arcade games, this one was the most prolific, and probably the most powerful. This chip had limited use outside the arcade, as it was the principle chip used in the Sharp X68000, but for the most part, this was an Arcade chip.

It was an eight channel chip, each capable of up to four operators, and eight algorithm settings. It also had some special features, such as a secondary detune parameter, and an advanced LFO. It could only use sine wave operators (except for the LFO, which could use any basic waveform as well as noise), and did not have ANY sampling, or PSG capability. This wasn't a big problem though, since A) it was almost always paired with a sampler chip in the arcade, usually something from either Okidata's MSM line, or Sega's proprietary "SegaPCM" - the Sharp using an MSM, and B) it didn't really need PSG either since 1) FM can "fake a square wave" with two sine waves very convincingly, and 2) it had enough total channels that it could spare some to fake PSG, and still have enough for more serious FM applications.

Here's an example of the OPM - Shinobi (Arcade) Soundtrack:



Shinobi PCB had OPM and a sampler chip, but the sampler was used for voice clips and sound effects. As for the music: 100% pure unadulterated OPM FM!

And here are a few other examples for you (a mix of complete soundtracks and stand alone tracks) - all using the YM2151 OPM from either the Arcade, or from the Sharp X68000 (some also use PCM sampling for percussion, and some are pure FM). If you have any others you'd like to share, feel free to post away in the comments!

Akumajou Dracula (aka Castlevania) - X68000 OST - Load BGM



Area 88 (aka UN Squadron) - Arcade - Complete OST


Metal Orange EX - X68000 - Stage 1 Theme


Marble Madness - Arcade - Full OST


and lastly - Shadowland - Arcade - Full OST