Toy Story's Hardware Defying Music - How We Did It

Поділитися
Вставка
  • Опубліковано 1 гру 2024
  • In this episode of Coding Secrets I explain how we achieved possibly the only ever example of four channel PCM music on a Sega Genesis.
    Is That You or Are You You by Chris Zabriskie is licensed under a Creative Commons Attribution license (creativecommon...)
    Source: chriszabriskie....
    Artist: chriszabriskie....

КОМЕНТАРІ • 330

  • @andymanaus1077
    @andymanaus1077 4 роки тому +80

    I'm always impressed by how innovative programmers got around the hardware and memory limitations of the early systems. Their ability to coax consoles to do so much more than they were ever designed to do, seems miraculous. Modern programmers really are spoiled by comparison.

    • @tylisirn
      @tylisirn 3 роки тому +7

      Having programmed through all these years the changes have been incredible. Almost everything I learned is now wrong.
      I remember when memory was precious and fast, running synchronously, or almost, with the CPU. Lookup tables could speed up complicated operations (like here the pitch and volume LUTs saved a number of divisions and multiplications), but each LUT took up a lot of your precious memory (only handful of megabytes!). Now you have all the memory you could want to make look up tables, but memory is glacially slow and lookup tables blow your CPU caches, so it's faster to do complex math than look up a number in a big array!
      I remember when software implemented fixed point math was faster than even the built-in FPU math on a 486 (let alone simulated FPU math on a 386). Now floating point math is much faster thanks to better FPUs, pipelining and SIMD instructions (SSE).
      I remember when colour change effects were practically free (because you could do them by changing the on-screen palette), then they became really expensive when lost the palette in exchange for true-colour images, and then we gained GPU shaders and now we can do more calculations on every single pixel on screen than a game used to spend to draw the entire frame...
      A prototype I made back in the DOS days (that unfortunately never turned into a full game): ua-cam.com/video/d6gLhPaLnAs/v-deo.html
      I pulled so many rabbits out of my hat to make that happen. Probably half of my available memory was used up for various look up tables and caching the lighting to make it all happen...

    • @ryanskelton9548
      @ryanskelton9548 3 роки тому +4

      @@tylisirnthe lighting effects really are impressive for a DOS game.

    • @keithsimpson2685
      @keithsimpson2685 3 роки тому +3

      @@tylisirn These guys are just doing reactionary comments because they think modern workers are lazy you are bringing actual experience lol

    • @BradleyQuerruel
      @BradleyQuerruel Рік тому

      @@tylisirn that looks awfully a lot like a simplified version of Alien Breed?

    • @tylisirn
      @tylisirn Рік тому

      @@BradleyQuerruel The graphics were very much inspired by Alien Breed, you are correct. That's one reason why I never moved further than prototype stage (the graphics weren't stolen, they were custom drawn, but heavily inspired by.) The lighting system is much more complicated than AB ever had, but the gameplay and of course levels are mostly not implemented.

  • @technicalmachine1671
    @technicalmachine1671 4 роки тому +555

    Surprised this much care went into a licensed game.

    • @KGR7Gamer
      @KGR7Gamer 4 роки тому +92

      This is back when alot of licensed games were actually GOOD games.

    • @technicalmachine1671
      @technicalmachine1671 4 роки тому +57

      @@KGR7Gamer Yeah, that's gonna be a no from me. They were decent at best.

    • @retro_boy_advance
      @retro_boy_advance 4 роки тому +62

      KGR.7 haha noooo there were tons of bad licensed games even back then. You never heard of LJN?

    • @KGR7Gamer
      @KGR7Gamer 4 роки тому +36

      @@retro_boy_advance oh yeah LJN no thank you. Yeah looking back at my comment a lot of licensed games were horrible but there are some pretty great licensed games from that time.

    • @nate567987
      @nate567987 4 роки тому +12

      it's why the lego games took off

  • @slapshotjack9806
    @slapshotjack9806 4 роки тому +425

    Man these videos make the engineers at sega seem like absolute rocket scientists

    • @TiBiAstro
      @TiBiAstro 4 роки тому +96

      I'm pretty sure it would have been Jon and/or his cohorts who figured this out.
      If tricks like this were in the documentation from Sega, the Genesis would likely have had a lot fewer garbage-sounding titles.

    • @autobotstarscream765
      @autobotstarscream765 4 роки тому +49

      *the engineers at Traveller's Tales

    • @Electrify85
      @Electrify85 4 роки тому +7

      I'm watching this, and I'm thinking why isn't this guy (and the hardware engineers) curing cancer?

    • @autobotstarscream765
      @autobotstarscream765 4 роки тому +33

      @@Electrify85 Completely different field of expertise?

    • @rafaellima83
      @rafaellima83 4 роки тому +13

      @B3ro1080 Sonic 3D Blast was coded by the same very guy who's speaking on this video....... it was also made by Traveller Tales, as Toy Story was.

  • @superpowers04
    @superpowers04 4 роки тому +254

    I love watching these, Not understanding them and then coming back and understanding them completely. Dunno why

    • @TigerDriver91
      @TigerDriver91 4 роки тому +7

      its been nice going through them as he reuploads them!

    • @olosnahcraftsandmore8759
      @olosnahcraftsandmore8759 4 роки тому +15

      a lot of it gets caught in your memory buffer and by the time you've come back
      your brain has fully uploaded the data into a data bank that is easily addressed.
      I think if we upgraded to USB3.0 we would allow a higher bit rate transmission.
      Sadly I think our brains would then need upgraded to handle USB3.0.

    • @SumeaBizarro
      @SumeaBizarro 4 роки тому +5

      dude TL;DR: BLAST PROCESSIN

    • @profblack
      @profblack 4 роки тому

      Olosnah Crafts and More Personally I would love to one day upgrade to an NVMe brain interface but for the foreseeable future I will have to be content operating on a 56k modem instead.

    • @PROPLAYEN
      @PROPLAYEN 4 роки тому +1

      Nvidia brain

  • @CoLD.SToRAGE
    @CoLD.SToRAGE 3 роки тому +24

    At Psygnosis Liverpool back in the 90s, I composed Tracker music on my Amiga A1200 for several MegaDrive games... far more preferable to using the internal soundchip FM channels, as I was never a fan of all those harsh and bell like sounds. 😉

  • @hisham_hm
    @hisham_hm 4 роки тому +65

    1:39 Blast Processing!

    • @lev7509
      @lev7509 4 роки тому +1

      Is that a reference to a Sega Genesis-esque remixing channel?

    • @VoxelMusic
      @VoxelMusic 4 роки тому +1

      You didnt have to make that reference.

    • @John231984
      @John231984 4 роки тому +7

      @@lev7509 No it's a gimmic Sega used to sell to kids. "Blast Processing" Which isn't a real thing, was just saying that the sega games moved faster then nintendo. (Sonic)

    • @yasminesteinbauer8565
      @yasminesteinbauer8565 4 роки тому +2

      @@John231984 DF Retro Extra: Sega's Blast Processing Was Real - But What Did It Actually Do? ua-cam.com/video/rvvL6S5Buiw/v-deo.html

  • @Dark_Jaguar
    @Dark_Jaguar 4 роки тому +15

    This reminds me of how Tales of Phantasia and Star Ocean on the SNES got around audio memory limits to stream vocal music, yet more complicated than even that. Very impressive!

  • @Steambull1
    @Steambull1 3 роки тому +6

    I love this game so much (Genesis version specifically), and the music is a huge part of it! The soundtrack has the appropriate the Randy Newman vibes, but also offers more "video-gamey," higher tempo stuff. About 13 years ago there was a couple weeks' period when I completed this game at least once per day (always starting with 1 life, which is the "hard mode" despite nothing else being affected).

  • @GothAlice
    @GothAlice 3 роки тому +3

    VGM has always held a soft spot in my heart. I've even managed to contact a few of my favourite producers over the years, including the Fat Man of Team Fat, which rocked my socks. A few games have really stood out in my brain, Jazz Jackrabbit being one of the biggest stand-outs from that era. Most games had General MIDI, which on an OPL FM MIDI synth… uh… *could* be… acceptable? Some had Roland MT-32 support, which actually entered the realm of sounding great.
    It's Jazz Jackrabbit that introduced me to the idea of a tracker not just being used for music creation or playback in isolation, but that a full 4- or 8-track MOD or S3M tracker could be used as *background music* just blew me away. There was nothing else quite like it that I could manage to get my hands on, other than dedicated demoscene demos. How on Earth was there time for this on my 386, I would think, while the fluid animation and scrolling of the game seemed entirely unaffected?
    (After nearly 30 years programming, of course, I'm now well familiar with terms like "thread quanta", "interrupts", "time slice", and "DMA". 😉)

    • @rommix0
      @rommix0 2 роки тому

      Yay. Nice to see another Jazz Jackrabbit fan in the wild. It was the first game I ever played as a kid. The music is definitely the best thing about it.

    • @stefevr
      @stefevr 3 місяці тому

      Funny enough i had lunch last year with george, funny reading about him here!

  • @alexandremondo
    @alexandremondo 4 роки тому +21

    The "Doom style" stage in this game is pretty amazing! Better than Zero Tolerance.

  • @prufrockrenegade
    @prufrockrenegade 4 роки тому +75

    As someone with an audio engineering degree who enjoys making sample based music and retro gaming, this was right up my alley! Keep em coming!

    • @DMack6464
      @DMack6464 3 роки тому +2

      You should ul some of ur music if you've not already

  • @Zordiak
    @Zordiak 3 роки тому +13

    Being a software engineer is so different now than what it used to be

    • @treemaniscool
      @treemaniscool 3 роки тому +4

      Yeah now you just throw some shitty css into electron and tell people to install more ram :/

    • @michaelhuss0
      @michaelhuss0 4 місяці тому

      That's not always a bad thing. Do you think modern games like Minecraft would exist if we didn't invent the simpler platforms that ran them? Developers don't just innovate to work around restrictive hardware. I like learning about these tech details as much as the next guy, but letting developers focus their attention on advances that players (and not just us nerds) can actually enjoy is a boon to the industry.

  • @BabusGameRoom
    @BabusGameRoom 4 роки тому +1

    There was always something special about Toy Story, and the Genesis game is no exception. I love these videos, because I learn about what made the game special. It was easy to overlook as a licensed game, but it stands out as a technical marvel not just among licensed games, but in the entire Genesis/Mega Drive library.

  • @profblack
    @profblack 4 роки тому +158

    I really appreciate how clever devs were able to get more out of less back in the day. These days you see popular games that are horribly optimised and only take advantage of the barebones aspects of a premade engine.

    • @darthvader2994
      @darthvader2994 4 роки тому +29

      now it's just GrApHiCs which always end up looking outdated a few years down the line whereas a more stylised game will always look good

    • @iliyantrifonov
      @iliyantrifonov 4 роки тому +17

      The current consoles are PC architecture because devs blamed the exotic hardware for not producing a quality game. But today we still have bad performing games(crashes, 20FPS, missing textures, etc.) - overall unenjoyable experience. Still even today there're some really good devs out there who are able to create amazing games on this limited hardware. As a gamer I wish more of them to show up and raise the bar.

    • @DanIel-fl1vc
      @DanIel-fl1vc 4 роки тому +8

      If games today often are poorly optimized it's because the effort it takes to optimize them will only reduce loading times by a few seconds. More effort can instead be spent on the game which is why a lot of the best games made today are far superior to these old shitty games that were made in the 90s.

    • @gordonf5553
      @gordonf5553 4 роки тому +23

      The one issue I see are games that take up half of your computer's disk space. Like wtf is all that shit, uncompressed textures??

    • @jaysefgames1155
      @jaysefgames1155 4 роки тому +13

      @@DanIel-fl1vc is this even bait anymore

  • @Chriva
    @Chriva 4 роки тому +57

    I wonder what could be done with a slightly more capable 68k-based processor like the 68332 etc. They have a bunch of extra addressing modes that significantly boosts data transfer speed :)

    • @wishusknight3009
      @wishusknight3009 4 роки тому +10

      In this scenario having a much larger sound buffer that was dual ported would make all the difference. But that would have cost a lot of money in 1989

    • @Chriva
      @Chriva 4 роки тому

      @7MGTESupraTurboA I can certainly agree that they did the right choice. It was more a "what if" these days since it's a fairly simple processor to transplant and hack into systems. One can even remap the address base for internal devices in them. Quite fun little processors

    • @mxggo9046
      @mxggo9046 3 роки тому

      @MageLocc
      Question: How much would that have increased the price?
      Not sure if that can be verified or not.

  • @FirstnameLastname-sb3hj
    @FirstnameLastname-sb3hj 2 роки тому

    Holy shit, dude. This is an insane amount of effort just to get some subpar samples running through one channel of a Yamaha synth that can already play synthesized music over 6 channels.
    I love it. 10 stars, much respect.

  • @ddrjay
    @ddrjay 4 роки тому +1

    So part of the development process is figuring out how to manipulate the samples to do what you need for the sound, then using that knowledge as your "instrument" to make the sound happen the way you wanted to. Incredible.

  • @strat5520
    @strat5520 4 роки тому +1

    Just found your content. I LOVE this. I've wondered why there weren't more UA-camrs doing this kind of thing.

  • @djrphotography
    @djrphotography 4 роки тому +1

    I love how straight to the point and interesting these videos are! Subscribed.

  • @utopua4all
    @utopua4all 4 роки тому +11

    OMG, the soundtrack on the Genesis is surprisingly good.

  • @primus711
    @primus711 4 роки тому +2

    Paula is a amazing sound chip and is actually 16bit and can do really high sample rates way ahead of its time and used in every amiga

  • @aixmcduck9321
    @aixmcduck9321 4 роки тому +1

    I really appreciate th soothing quality of your videos, it makes for a very nice learning experience!

  • @keithsimpson2685
    @keithsimpson2685 3 роки тому +1

    As a kid I didn't notice but going back holy crap Sega had a distinctive/horrifying often sound

  • @ollpu
    @ollpu 4 роки тому +8

    4:04 The result is peaking, I don't think there was anything other than summing going on there :D

  • @coastaku1954
    @coastaku1954 3 роки тому +1

    Coming from Genesis Music Deconstructions, the DAC is legendary for producing amazing drum lines, then coupled with either channel 0 or 1, you get the fantastic Drum and Bass line for the level music. Also Panic Puppet Zone Act 1 is one of my favourite tunes and it's drum line is awesome

  • @sjg_au
    @sjg_au 4 роки тому

    It really is fascinating how you pulled some of these ideas off. I only discovered your channel yesterday and even though it's really not for everyone, I reckon it's bloody incredible stuff.

  • @mauz4930
    @mauz4930 4 роки тому +1

    Great minds like you do not exist anymore in the videogame industries... Every body just recipe the existent engines and tools... Nobody going over the limit of the existent with tricks . All following the big engines and just tuning them a little... So we have "flat" quality games.. Wich just try to become movies or tv shows.. instead impress visually the player with something never seen before and that essentially was impossible, but made it real by a great mind, those times are unfortunately gone
    Thanks for sharing your technical explanations and coding tricks.

  • @vonmatrices
    @vonmatrices 4 роки тому +61

    Was this sound code possible during gameplay or only on menus and other "idle" moments of the game?

    • @Prizm44
      @Prizm44 4 роки тому +8

      Good question

    • @Jimmy42222
      @Jimmy42222 4 роки тому +47

      It’s only on menus - the actual music during gameplay is awful in comparison.

    • @compmanio36
      @compmanio36 3 роки тому +7

      @@Jimmy42222 Or nonexistent. This game really pushed the Genesis to the max and it shows.

    • @daylightanimation
      @daylightanimation 3 роки тому +5

      I think it was using most (if not all) of CPU power back then, so answer is most likely no = )

  • @HollowedEmpire
    @HollowedEmpire 4 роки тому

    That's awesome, and really in depth. The double buffer was a great aspect I didn't take the time to consider yet too. It's great to see this sort of thing in practice and appreciate all the nuances involved.
    Coincidentally, you also helped confirm my idea for a sound system I had geared towards the Virtual Boy. It was following similar principles of handling audio mixing by the main processor, so I could just send combined wave forms over for direct play by the sound hardware. The VB also had similar issues with needing to halt audio playback to update PCM. I didn't think to write it in small chunks though! Instead I was getting around it by leaving a "max note" constantly looping in PCM, and adjusting the volume according to what the current sample should be to fake frequency. This would include sound effects in the audio mixing so they aren't affected by the volume changes.
    Granted that is all on paper though and I haven't gotten to the actual code yet, but I believe it should be in the clear and your video helped give me confidence in it. To put my approach into the Genesis though I'd have to take a closer look at some specifics, such as if there is a global volume that could still adjust the PCM volume indirectly. And of course, if you have more insights on potential issues with this approach (for Genesis or otherwise), I'd really appreciate hearing it!
    But definitely digressing here, sorry haha. Very cool video and overall channel.

  • @atgn-0088
    @atgn-0088 4 роки тому +2

    The Z80 blasts data to the Yamaha sound chip? Maybe all those "blast processing" commercials I saw for the Genesis as a kid had some validity 😆

    • @nate567987
      @nate567987 4 роки тому +2

      they sorta did the "debunking" was a nintendo ad

  • @hansihinterseher9156
    @hansihinterseher9156 3 роки тому +1

    Finally an episode I could follow 😎 - quite in contrast to all the graphics stuff 😑😂
    But only because I've studied a lot of that audio stuff before.
    I absolutely love your channel 🥰

  • @Noone-of-your-Business
    @Noone-of-your-Business 3 роки тому +1

    The horror. All these operations should be hardware functions with the code run on the CPU only having to call with a few bytes each. Then again, it is always great to see a clever mind at work. So I suppose that due to the sheer CPU load involved here, this music was only played in the intro when the CPU has got nothing else to do?

  • @オールマイト-y1f
    @オールマイト-y1f 3 роки тому

    I'm proud of myself, I guessed this is how you did it when I heard the track lol. Love your videos btw.

  • @MrGamer1992
    @MrGamer1992 4 роки тому +33

    Going back to this video, I think a Sonic hack called "Sonic the Next Level" have used this method for its soundtrack and it is really good. You should look it up

    • @mxggo9046
      @mxggo9046 3 роки тому

      sounds Great!...Wish they'd spent a little more time on color choice. However, level design, gameplay, and animation look superb!

  • @romeolz
    @romeolz 4 роки тому +1

    Having this in first person adds so much
    (That you know what you are talking about)

  • @ecernosoft3096
    @ecernosoft3096 Рік тому +1

    Now imagine if this was on the 32X which has 4 PCM sound channels driven by 2 SH2 processors

  • @smellymala3103
    @smellymala3103 4 роки тому

    I only ever programmed a MUD but I understand just enough that every video you make is really interesting and riveting!

  • @Dorff_Meister
    @Dorff_Meister 3 роки тому +2

    I am 1:18. When I first heard the music I thought "sounds like a mod player." A quick skimming of the comments suggests I might be right.. Continuing the video.

  • @Dee-Eddy
    @Dee-Eddy 3 роки тому +2

    Then: great idea, now make it fit
    Now: decent idea, make it 55GB on launch and 100+ GB with everything that you need to fix it

  • @benmorrison6615
    @benmorrison6615 3 роки тому

    Wonderful explanation! Thank you for sharing

  • @VandalIO
    @VandalIO 4 роки тому

    Ingenious digital amplitude and frequency modulation

  • @superrayman3
    @superrayman3 4 роки тому +12

    Maybe you should do a more technical video dedicated to horizontal interrupts, what they are, how they work, and what exactly they do. Just a thought.

  • @ElasticLove12
    @ElasticLove12 4 роки тому

    This is some next level problem solving almost lost me towards the end but overall very impressed

  • @nthgth
    @nthgth 4 роки тому +1

    It sounds a lot like SNES music! Amazing

  • @leajiaure
    @leajiaure 4 роки тому

    I love how close to the (limited) hardware old game dev was. I develop is Javascript, which has got to be at least 6-7 layers of abstraction removed from the hardware. So cool!

  • @dcomo76
    @dcomo76 4 роки тому

    Brilliant! Continue the awesome work on the videos!

  • @markpage2779
    @markpage2779 4 роки тому +1

    This is an amazing idea. We used GEMS for our Megadrive games.

  • @rayredondo8160
    @rayredondo8160 4 роки тому +40

    Nicely done as always! I wonder if it's possible to do this (with less channels) during gameplay... hmm...

    • @jc_dogen
      @jc_dogen 4 роки тому +8

      Actually, there are a few games that do 4 channels of pcm during gameplay. Skitchin is one example from back in the day, and nowadays you have games like Xeno Crisis (and probably some others that use SGDK). They aren't playing amiga mods though.

    • @CodingSecrets
      @CodingSecrets  4 роки тому +24

      @@jc_dogen Pretty sure Skitchin uses 1 or at most 2 channels of PCM. The rest of the instruments are standard Genesis FM synthesis I think

    • @jc_dogen
      @jc_dogen 4 роки тому +6

      @@CodingSecrets You could be right, I'm only passing on what I've read. But I do know SGDK does have a 4 channel PCM driver, with some limitations.

    • @CodingSecrets
      @CodingSecrets  4 роки тому +10

      @@jc_dogen Just had a quick look at SGDK and it can do 4 channels of PCM but you are right about limitations as no pitch changes, so useless as a tracker. I'd imagine all the samples have to fit in the 8K Z80 memory too, but I might be wrong

    • @stephandolby
      @stephandolby 4 роки тому +5

      Savaged Regime himself made a video on the subject of Mega Drive PCM quality: ua-cam.com/video/2W4yTL-9gZE/v-deo.html You could also go the route of Titan Overdrive 2 by playing separate high-quality samples in sequence without any sort of channel trickery, but not everybody has eight megabytes of storage space to burn (with the majority just for sound). The YM2612 was very much a stripped-down version of the YM2608, and lost its ADPCM and most of its PCM capabilities in the transition. As to the Amiga, it was a great sounding system, but having two left and two right channels is a bit of a bind - it reminds me of 60s stereo recordings where singing would come from the left, and drums from the right.

  • @marcelofrau8818
    @marcelofrau8818 4 роки тому +2

    I love these videos and this channel.. It would be very nice if you cover some 3d games also, like explaining how StarFox uses FX chip or how the Virtua Racing works using the co-processors to help handle the 3d rendered (or to render all the 3d at all and pass to the console)..

  • @qaaris4280
    @qaaris4280 3 роки тому +1

    Kinda sucks that computers have evolved to just use MP3s, OGGs, and WAVs.
    I like seeing how people stretched old consoles to their limit.

    • @XaneMyers
      @XaneMyers 9 місяців тому

      This is how I feel about "streamed" (or "pre-rendered" as I call it) music. I kind of hate how those boring, basic sound files have taken over in most modern games. Even if it sounds "cheap" at times, I find it way more impressive when I listen to sequenced music in older games (or in a lot of cases, DS games) and think about how it's playing every single note in real time instead of lazily going through a single sound file...
      I don't like how CDs and stuff made it easier for developers to rely on their DAWs and recordings, playing them during gameplay instead of programming the game to do it manually. Some CD-based games still used sequenced music, but it was usually due to technical limitations, such as having to stream other data like voice samples or level data in the background; To think streamed audio would've taken over sooner if CDs weren't so slow to access back then...
      Surprisingly, there are games on the PS2 and Gamecube that used sequenced music for seemingly no technical reason, and at times, it sounds amazing, almost pre-rendered sound quality... It annoys me to think that sequenced audio was starting to sound really good, then that *stupid streamed audio* had to ruin it.
      On PS2, _Graffiti Kingdom_ (level music, not bosses for some reason) and _Harvest Moon: Save the Homeland_ have sequenced music, and they sound really nice! On Gamecube, they're _Harvest Moon: A Wonderful Life_ (most songs sound cheap and "MIDI", but Breeze is good), _Pokemon Colosseum_, and _Tales of Symphonia_ use sequenced MusyX music.
      Personally, I want to bring sequenced music to a platform that seemingly doesn't use it, Roblox, but I haven't worked on my library enough...

  • @KmF0X
    @KmF0X 4 роки тому +3

    That's truly impressive, and now I wonder if a similar method can be used with the DPCM channel available in the 2A03/2A07 on the NES

    • @wishusknight3009
      @wishusknight3009 4 роки тому +3

      The nes hasn't got an independent cpu to drive the sound chip. Nor any independent sound buffer as far as I know. It would be driven directly by the main cpu and essentially streamed right from the cart or main memory block.

    • @Icelink256
      @Icelink256 4 роки тому

      There is indeed a homebrew soundtrack cartridge from a couple of years back, that does exactly that!
      I can't remember what it was called, though.

    • @big0bad0brad
      @big0bad0brad 3 роки тому

      It's kinda a mess to do this on NES because you only have one CPU and the playback mode which automatically streams data doesn't use a format that's conducive to adding samples together. You'd end up having to manually write all the bytes, and it could probably be done for the case of just playing music with carefully written code, but running any other game code would probably mess up the timing.

  • @yoursleepparalysisdemon1828
    @yoursleepparalysisdemon1828 4 роки тому +15

    Next video: *How I made “LEGO Star Wars: Potato Version” run on a microwave*

  • @reydreem5705
    @reydreem5705 2 роки тому

    These videos are great.

  • @Tjousk
    @Tjousk 4 роки тому +3

    Definitely easier than bit banging the pc speaker on x86, but far more useful.

  • @-Graham
    @-Graham 3 роки тому

    I love these hardware tricks. Please don't ever spare the details

  • @beanofchaos
    @beanofchaos 4 роки тому +1

    i don't understand this but its fun to watch

    • @beanofchaos
      @beanofchaos 4 роки тому

      i mean, i understand some of it but not much

    • @beanofchaos
      @beanofchaos 4 роки тому

      i sorta understand most of it

  • @Toy_story_and_beyond
    @Toy_story_and_beyond 3 роки тому +3

    Is it weird that I can play the lion king on the SNES without any difficulty except the logs and the maze?

  • @mikosoft
    @mikosoft 3 роки тому

    As soon as you said the Yamaha chip only has one PCM channel I was like: they made their own modplayer that mixes the music on the main processor and sends it to the Z80.

  • @AndreLuiz-ec3tl
    @AndreLuiz-ec3tl 4 роки тому +7

    The information here is amazing but please lower the volume of the bg music because it is too loud. Please.

    • @roberthazelby4424
      @roberthazelby4424 4 роки тому +2

      I agree. The videos are brilliant, but the background music is far too loud.

  • @bon7029
    @bon7029 3 роки тому +1

    It's amazing how programmers could get such limited hardware to do so much.

  • @johneymute
    @johneymute 3 місяці тому

    So basically, the audio ram is used as a temperal storage medium to store the audio samples on it and then quickly alternate between each sample, rather then streaming 1 audio channel, but it’s all done through clever software programming.
    On the snes, that audio ram was originaly only ment for temperally story audio samples but with clever software tricks, that audio ram can be used for streaming audio as well, So with software it is possible to change things around and the results can be incredible🤣

  • @niceguy235uk1
    @niceguy235uk1 4 роки тому +1

    This man knows his shiz.

  • @olosnahcraftsandmore8759
    @olosnahcraftsandmore8759 4 роки тому

    Awesome, totally awesome!

  • @kingvoxel6516
    @kingvoxel6516 4 роки тому

    Genesega does it all! Use blast processing on the music to take it to the next level!

  • @JM-co6rf
    @JM-co6rf 3 роки тому

    This dude is a genius

  • @2001herne
    @2001herne 4 роки тому +2

    So, he emulated a basic sound chip in software?

  • @miket8830
    @miket8830 3 роки тому

    pretty clever, nice work

  • @SumeaBizarro
    @SumeaBizarro 4 роки тому +20

    TL;DR:
    "We used BLAST PROCESSING to get dat sweet PCM music in! Click on the ads to find out how!"

    • @lev7509
      @lev7509 4 роки тому +1

      Is that a reference to a Sega Genesis-esque remixing channel?

  • @Datachrome
    @Datachrome 3 роки тому

    Well, this is pretty much genius.

  • @AshnSilvercorp
    @AshnSilvercorp 3 роки тому +2

    I feel bad knowing that our modern technology doesn't always beg for programming this smart. It's made devs really lazy when it comes to larger projects.

    • @Jchot
      @Jchot 2 роки тому

      Are the devs lazy, or are the bosses cheap? Genius hard work also takes time...

    • @AshnSilvercorp
      @AshnSilvercorp 2 роки тому

      @@Jchot both really.

  • @danielpitts6913
    @danielpitts6913 3 роки тому

    This reminds me of the sound technology used in Starcontrol II.

  • @Yolo_Swaggins
    @Yolo_Swaggins 4 роки тому

    I was actually listening to this in 1920 through a time trumpet so I'm actually the coolest out of all of you by a hundred years. Ok?

  • @Matmus
    @Matmus 3 роки тому

    Magicians of code.

  • @d1ddle
    @d1ddle 4 роки тому

    Where is my next coding secrets!
    This one is my favourite

  • @RFC-3514
    @RFC-3514 3 роки тому +1

    Now do it through an FM chip on a system that doesn't have any native support for PCM. ;)

  • @panvrek8952
    @panvrek8952 4 роки тому +6

    Want something decent from a programmer? Take away from them the luxuries (for example memory)

  • @CezarWagenheimer
    @CezarWagenheimer 4 роки тому +1

    Impressive!

  • @johneygd
    @johneygd 4 роки тому

    Such clever technology should,ve been used in all genesis games because then games wouldn’t have scratchy voices, if those scratchy voices has all to do with those start and stop cycles and not with the audio recording, then no wonder most genesis game’s voices sounding soo scratchy, if such simply ingenious trick could make those scratchy voices sounding much cleaner, why not,
    Street fighter 2 ce is a prime example of such fix.

    • @tl1882
      @tl1882 3 роки тому

      new channel for cs only

  • @Austrochad89
    @Austrochad89 4 роки тому

    Love your channel mr. Burton

  • @Jamie-yp7qz
    @Jamie-yp7qz 4 роки тому +1

    Have you ever toyed with developing any programs for the Sega 32X add-on?

  • @jamesbrooks9321
    @jamesbrooks9321 3 роки тому

    console game development back in the day was a whole different level

  • @ArtFluids
    @ArtFluids 4 роки тому +3

    Do you think you'd ever post any Toy Story 2 Action Game videos? I'm interested in that game and I'm wondering how involved with it you were.

    • @nate567987
      @nate567987 4 роки тому

      like wise I loved that back in the day

  • @davidbundgaard
    @davidbundgaard 2 роки тому

    👋, how did you make your intro music? That would be quite nice to learn. Thanks for telling us all this child hood memories of how the game and music was done.

  • @KheranSmith
    @KheranSmith 4 роки тому

    that was fascinating

  • @megatechbody3207
    @megatechbody3207 4 роки тому

    For me the biggest "hack" is to use the FM chip like a FM keyboard. Hitoshi Sakimoto and Tecnoforce did it briliantly.
    EDIT for 4Mb Devisilsh and Devil's Crash, TF 3 and 8 Mb Thunder Force IV and gauntlet IV.

  • @lancelnce
    @lancelnce 4 роки тому +1

    I am the only one still waiting to see the Amiga playing that track though some soldering hardware hacking? lol

  • @andrewholmes3116
    @andrewholmes3116 4 роки тому

    This is the greatest channel on UA-cam. I love every single one of these videos.

  • @mrx2586
    @mrx2586 4 роки тому

    you talk about adding the data points in the samples together.
    is this effectively any different from what a speaker would do if multiple audio sources are sent to it at the same time? (only speaker would do this as a result of physics and a CPU would do it by being a calculator)

  • @djmips
    @djmips 3 роки тому

    In case someone is reading this comment, the reason the Z80 is there is because the whole unit is backwards compatible with the Sega Master System. Yep, you can play Master System Games on your Megadrive / Genesis.

  • @doggfite
    @doggfite 3 роки тому

    I'm kinda sad that you didn't include any musical samples of the things you talked about along the way, but in all of your graphics videos you show us examples of everything along the way.

  • @minordelayz
    @minordelayz 4 роки тому

    What are the wires soldered on the motherboard? I see the region ones? But what are the ones running between the chips?

    • @DONK8008
      @DONK8008 4 роки тому +1

      Those are stock wires from the factory. Most revision boards have them. No real idea what they do.

  • @MostlyPennyCat
    @MostlyPennyCat 3 роки тому

    All a sound sample is, is a sequence of samples.
    That's why they're called samplers and why, stupidly, the resulting list is called a sample. Because it's made by a sampler.
    Even though the sample is actually a sample of samples sampled by the _oh dear I've gone cross eyed_

  • @48hourrecordsteam45
    @48hourrecordsteam45 3 роки тому

    1.question
    What would have been the outcome if sega had a 24k of memory for the z80 .?

  • @greenaum
    @greenaum 2 роки тому

    Can''t the 68000 access the sound chip directly if it wants to? Seems like the Z80 is just getting in the way.

    • @TurboXray
      @TurboXray 3 місяці тому

      The z80 is acting as a 10 byte playback buffer. If the 68k were to write directly to the port, it would have to do it for each sample. That's much more difficult even at 10khz output rate. Having even a tiny buffer like 10 bytes helps alot.

  • @tzuyd
    @tzuyd 4 роки тому +2

    On the Amiga, OctaMED used this same technique to play an 8 channel MOD on the 4 channel hardware (with the same 68000 CPU).

  • @gaijininja
    @gaijininja 3 роки тому

    So, the 1988, 16 bit Sega Genesis had a crappy 1 channel audio system that required insane amounts of juggling to get good audio, yet in 1982, the 8 bit Commodore had 3 voice channels, and a white noise channel, and blew Sega out of the water before Sega was even thought of. Someone didn't think that one through.

    • @CodingSecrets
      @CodingSecrets  3 роки тому +1

      The Genesis had a bunch of FM channels so easily capable of outgunning a C64, but, like the C64, only had one mono sample channel. So if you want multi channel sampled sound you need to get creative...

    • @gaijininja
      @gaijininja 3 роки тому

      @@CodingSecrets So why did the Genesis coders have to juggle the impossible to get passable music on a newer more powerful unit, but some Russian dude creates a four channel, 12 minute long track to his game (Tetris, in case no one remembers.)with no effort? Damn, I knew nothing about coding (Still don't.) when I owned a C64, yet with basic, slow old basic, I could generate 7 distinct voices with a few tips I picked up from magazines. Apparently the C64 didn't have one sample channel like the Genesis. I have to say, what you were capable of pulling off with that one channel and it's limitations was impressive.

  • @msgameandcake628
    @msgameandcake628 4 роки тому

    Looking at 4:28-4:40, I thought the horizontal axis was a measurement of time? If that's right then that would mean removing points across this axis would alter it's tempo. But removing those points changes pitch, instead? That gives me the sense that my understanding of this data is completely off somehow.

    • @CodingSecrets
      @CodingSecrets  4 роки тому

      Sound is a waveform. That waveform moves a speaker back and forth quickly to produce a note. If it moves twice as quickly the note is higher. That’s why you can see bass sounds rumbling your speaker - because the movement is slow because the note is low.and so you can perceive the movement. High notes move the speaker much quicker so you can’t perceive the movement. But you’re right about the tempo changing - in as much as you’d use up the data describing the sound more quickly. If it was a sample of speech the pitch would be higher AND the speech would be sped up.

    • @msgameandcake628
      @msgameandcake628 4 роки тому

      @@CodingSecrets Aaah, I see now! I was definitely aware that shorter waves = higher pitch, but I hadn't recognized the data as being directly representative of the waveform the speaker would be producing. I thought each point was it's own note, and the song generated just so happened to have a wavy look to it! Thanks for the explanation!

    • @marcellosilva9286
      @marcellosilva9286 4 роки тому

      @@CodingSecrets Hey Jon, could we get some Coding Secrets on the second Toy Story game? The draw distance is quite good for a fifth gen title and on the N64, it runs very well, something quite unusual for that system.

  • @AlexvrbX
    @AlexvrbX 4 роки тому

    Not directly related, but have you seen Stef's Z80 audio driver? Pretty impressive, I think they used it in Xeno Crisis.
    When are you going to make a homebrew game for one of the classic systems? I'd buy anything from the Genesis to the Dreamcast.

  • @emiel333
    @emiel333 4 роки тому

    Can you do a video about the Nintendo GameCube? Especially on its polygons per second count. Back in gen 6, Sony said PS2 could do 66 m polygons second, Xbox 100 m a second and Nintendo 12 m second. GameCube 12 m polygons is in real world simulation including all effects like HW Lighting, complex models, full texture etcetera. The numbers from Sony and Microsoft are without any effect, so a blue or green screen. It was said that with every effect the Poly count was on half again and again. So Xbox with 5 effects: 50m-25-m-12.5m-6.25m-3.125 m polygons second all five effects applied. GameCube release game Star Wars Rogue Squadron 2 pushes over 20 million polygons second on screen with multiple effects and 60 fps. Still looks awesome.

  • @thebookkeeper3508
    @thebookkeeper3508 4 роки тому

    I still don't understand how the single channel of audio limitation was overcome.

    • @tetsujin_144
      @tetsujin_144 4 роки тому

      Mixing multiple channels of digital audio is a simple thing in principle: You just take the two (or more) waveforms you want to play simultaneously, and add them together. You then play the waveform that you get from that addition.

    • @thebookkeeper3508
      @thebookkeeper3508 3 роки тому

      watched for the second time 6 months later. Think I get it now