ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
Investigating Lego Racer's Music Files
ฝัง
- เผยแพร่เมื่อ 10 ส.ค. 2019
- Happy 20th Anniversary Lego Racers! (well in a few months anyway)
Also I couldn't power slide to the left for some reason.
Also my dad was like "Wtf are you doing" when i went to go look out of the window XD
This took almost two full days to complete.
Using king kahuka served a dual purpose of being the de-facto weed guy and being my favorite racer when i was a kid.
Special thanks to www.zophar.net/ Been awesome for years!
Finally someone talks about Lego Racers.... everyone is all about Lego Island but man THIS game is childhooooood
I also noticed that the game is in French in his video for some reason
Akbkuku: going to LTX to show of vintage hardware
Druaga1: yo fam here's some pcm audio
IT BROKE NEW GROUND
French man says no to dropping classic computers
yeah but what kind of username is "Akbkuku" LOL
@@RWL2012 the kind that is aways avaiable in registration lol
pls upload more vinsaus
but for real tho, i see we have the same recommendations from youtube.
Me:
My TH-cam feed: here’s how to extract the Lego racers soundtrack
"I had to burn a CD just to get X to work"
Never change, Ian.
A short druaga1 video?
With research?
Times change...
VDavid003 i think druaga1 could read the Eula for the windows 95 plus pack in 17 languages and I’d give it a thumbs up. 😀
Yet problems aways comeback to hunt druaga
Fellow hungarian I see
@@McGeri Good to see Hungarian people here
To the admins of the old discord. You ruined everything. The least you can do is let us all talk so we can insult you directly.
What did happen?
@Lord Inquisitor Shadowlord Basically the admins went on a power trip, messing with other users and basically trolling everyone. Druaga got sick of them and left, the the admins turned off commenting for everyone on the server but themselves. Here is Druaga's twitter statement: twitter.com/Druaga_1/status/1155221677095059458
And This Is Why I Hate Bigger Servers
me: it's 3am, im bored
youtube: Investigating Lego Racer's Music Files
me: why not
I feel this so hard dude.
Back before I understood how a keyboard worked my dad would play some games on an extra PC we had in the basement and let me watch.
Aside from this being how I was introduced to Tomb Raider, this is also how I became acquainted with a game I think mostly everyone has never heard of.
It -was- is called "Blastdoors", and it came to us through a shovelware CD of sorts...I think we got it for $1.50 at about the same time as we got a floppy copy of Commander Keen.
The site for the game is long defunct (parts of it are archived) and I've never seen a second physical disc that has the game on it (Although I'm still looking) and as far as I know I'm the only person on the planet who has intentionally gathered up everything they can find and secreted it away. This all because I can't ever forget some of the midi tracks in that game, and the sound effect for dropping a fatman on the map.
I've still got the original disc we found it on, but it's increasingly difficult to find any mention of the game online. Probably doesn't help that the devs don't seem to have ever gotten a multiplayer mode working (although I think it was in the works from what I've read in some of the documentation I've found?)
I guess what I'm trying to say is that I understand how it feels to have the music "burned into your brain", and what kind of adventure something as simple as a soundtrack can turn out to be.
MrSharkDoesThings cool
Part 2 making childhood dreams come true... using cheat engine to turn number of competing racers to 0
I never thought i would see a thumbnail of that lego character. In fact i never thought i would see lego racers again. Wow.
The thing about ADPCM is that unlike PCM which is consistent throughout, it's important for an ADPCM stream to begin at the correct spot or the whole rest of it will sound wrong. If there's just a few bytes of data at the beginning of TUN files, it could make everything after distorted
If the format really is changed from ADPCM then depending on how easy the game is to reverse it might actually be easier to break on the API call to DirectSound and dump the audio from its buffer after the engine converts it to PCM, I have done this for other games before with proprietary formats when I was desperate
Also, ADPCM will take up less space because it has a lower bitdepth. Despite this it still sounds close to PCM quality, which is why it was often used when space was limited.
The question remains: how the HELL was the engine able to decode and play the damn thing properly?
Have you tried the N64 version? A lot of N64 games used midi music to save space, it's a stab in the dark.
Yush! And if you're able to extract those midis, then load them inside of a music making program like FL Studio or LMMS and change the instruments to higher quality versions... bingo! Just export the live result to 4800Khz 32-bit Flac files and you'll basically have your own remastered soundtrack in the best quality possible. =D
I know the people looking for the Beta files from Dinosaur Planet (originally an N64 game) had extracted the midi's that Starfox Adventures was using, except it uses its own soundfont so without the soundfont the music just sound like garbage. Still, it's worth a shot.
Can confirm, Lego Racers midis can be extracted using N64 Midi Tool
github.com/jombo23/N64-Tools/
Follow-up video incoming?
@@BillyTheCat128 Not really, the samples from the soundfonts would need to be increased in quality too, and the effects added to the music can't really be emulated properly on FL Studio.
PS1 had a better quality soundtrack afaik.
@@ScarLeRenard That is exactly what I meant when I said: "change the instruments to higher quality versions". So instead of using the default compressed soundfonts the N64 version is using, use a soundfont like: "Don Allen's Timbres of Heaven" --> midkar.com/soundfonts/index.html instead. Using a Good soundfont / Synthesizer / Digital Equalizer in combination with a Midi (which is just a set of instructions btw.) will definitely result in better and higher quality audio.
The PS1 Soundtrack, (albeit sounding great) can never get better than how the orignal creators compressed those tracks to being with. With a Midi, you could hook your computer up to a Midi keyboard / input device of your choosing and get the best possible results from what is essentially a LIVE performance.
What you need to keep in mind is that basically, Midi doesn't have 'sound', it just sends instructions to a receiver and tells it: "This is how long/hard you need to press this key, at this interval, on this bank number, with these values" So whatever "soundbank" your Keyboard/Computer/Digital Interface and etc. etc. uses, that is the "sound" that will be played back. So essentially if you hook up say: A Yamaha Tyros5 to your computer and let a midi play back though it- you will get a totally different (and better) sound than Windows' standard GS-Wavetable.
Sure, Fl Studio was just an example I used but there might be better sound editors, VSTs and music mixers that could handle/emulate these instructions better. I've personally never had any problems loading Midi's up in LMMS (Linux Multimedia Studio) which then allows me to essentially alter everything under the sun, including the original composition, which is why I suggested going after the Midi's as then you'll basically have full control of the end result. (depending on the flexibility of your editing software of course) In fact: Scratch that, if your Keyboard supports it, you could even upload the Midi's into its database and then record the feed. (which of course depends if those subtracted Midi's follow the Midi-standard, else you just get garbage.)
I actually love the N64 versions music better,specially the Menu Theme,sounds much better on N64
Idea:convert in winamp and speed up 7.35 times.
In audacity you can also change the sample rate and that will speed it up and keep the audio quality at 44100hz
exactly what's what I thought of
Quality would suffer really hard tho, i tried something simillar sometime ago.
Slow it down to 0.75x and put it over a Simpsons edit.
@@eduardoavila646 Would it, though? All you'd be doing is adjusting the sample rate in the header from 6,000Hz to 44,100Hz. None of the PCM data would get touched.
I had the N64 version of this game. I remember being a bit amused when I saw that one of the menu options basically told kids to get an adult to help them change the sound volume or something like that. :P
Nobody:
TH-cam: Ayy bruh you interested in the lego racer's music files?
The menu song has been playing in my head since the games release
I’m really liking the new format of videos, and by the looks of it you’re enjoying making them too, which is something I’m more than glad to see!
PS: I’ve been listening to Island 2.0 on repeat for the past few days, it’s fucking awesome!
Yeah its great!
wtf
I never knew this game had a whole community around it. Good stuff.
Man, that's a TUN of music!
This is really neat and entertaining. Love these types of vids.
Legends says, people are still stuck at the last race.
I never had beaten the spaceman dude when I was a child.
Your videos are always awesome. Anyone who’s been into computers long enough has gone down a rabbit hole like this trying to get some random file exported or converted, ah the memories!
Now, the question nobody's asking:
What of the N64 version?
You're right, what if it's like a weird mod-like music format :D
I am asking this question :D
Ah yes, my favorite racer "Marijuana".
Tokin a blunt, Not minding anything but my business,
*clicks on random lego vid*
"Hey smokers"
ADPCM formats are based on funky lookup tables and magic constant values and stuff. it'd require a lot of experimentation to figure out the exact tables the game used. It's probably just similar-enough to VOX, or however the stereo tracks are interleaved might be messing with it.
Ensoniq Paris was a legendary digital audio workstation with analog vibe
"Zophar's Domain"
Now that's a name I haven't heard in a loong time...
I had this playing in the background and whipped my head around when I heard this, haha.
If anyone is interested I could try to transcribe a custom MIDI file from the game music. Nothing technical, just making use of a music degree and a insanely deep love of Lego racers.
do it bro!
I'm sure your past 20 years have been more rewarding than mine, sir.
Hey, just gonna add a little bit of information here. ADPCM is a format that seperates an input sound file into two separate pieces of data. The first one is the frequency information, which writes everything at maximum volume. The second is another type of data that encodes the change in volume of a certain amount of those samples using a really tiny number of bits. When you put the two together, you can get a reasonable sounding approximation of the original file using much less data. It seems like the PCM data is being extracted fine using the encoder, but the volume levels are probably held using a non-standard data format and thus get ignored. That's why everything is playing at maximum volume and clipping.
2:13 Not sure if anyone else mentioned it but luck luck.wav needs to be in quotes ("luck luck.wav").
Since this video was made the TUN format has apparently been cracked and can now be played and converted. Turns out it's only 22050 Hz and very compressed! So the PSX version's music was better all along.
It genuinely makes me smile to see other people as passionate about Lego Racers as I was. It was the first PC game I ever played and words cannot describe how many times I reinstalled it on different PC's until I got my first laptop.
nobody:
Druaga1: investigates lego racers music files
adpcm in one format or another has been very common in videogames since the mid 90s, since it offers 4:1 compression with almost no quality loss and is extremely cheap to stream and decode. common formats include ADX (common in sega games) and nintendo's own BRSTM (some revision of which is the default audio format of every nintendo console since the gamecube)
also you probably could have simply taken the slowed down output from winamp and then used audacity to speed up the samples to the desired rate.
It's a strange thing with perception that you don't really notice the ADPCM noise during gameplay, but when trying to use these files as a game soundtrack to listen to (if no better source is available), it gets very annoying. Also not easy to filter the noise out, even with pro software like iZotope RX.
@@HUNDOLOS I suppose it may depend on the mastering as well, as I've totally ripped ADX files from sonic games and burned them to CD without really noticing any quality issues (the in-game versions of the songs were different from the ones on CD, so yeah)
also, it's quite difficult to restore information that no longer exists in the files.
for those who are reading along and not familiar, adpcm compression is a 2-step process, first step is to remap the originally linear PCM onto an approximately logarithmic scale (specifically mu-law), thus, more bits are allocated to quiet sounds than to louder ones, neatly aligning with how human hearing is more sensitive with minor changes in volume in quiet sounds than in louder ones
next, (simplifying here) these now 8-bit samples are run through a sort of prediction scheme, so the decoder will attempt to "guess" the value of the next sample based on the previous few samples, and then a 4-bit value is used to encode a correction between the guess and the real value.
so yeah, while this does produce a little bit of audible noise and distortion, it's usually fairly minor, and at higher sample rates like 44.1 or 48 khz it becomes nearly impossible to hear, at least for me.
This reminds me of my own perilous journey to extract the music from Gunnm: Martian Memories for the PS1. I never did figure it out all the way, but over the many hours and tens of programs I tried, something kinda sorta worked and now I have some low-ish quality versions of most of the soundtrack. I want to figure it out someday but it's tough.
Your story reminds me of how when I was a kid, I would record pokemon music onto cassettes, (specifically the pokegear radio tracks.) and narrate over them. Nostalgia.. :3
i would love to see the unedited 1 hour+ version of this video druaga1 style. but still very good video!
In college, I started transcribing the music from this game as an exercise. I've been continuing off and on over the years even though I know I could just get the midi files from the N64 version or something. It's really fun to see what little background instruments and flourishes I never noticed as a kid, and the wacky key changes that just work.
Well that backstory sure is relatable, ain't it.
I'd almost forgotten about Lego Racers until now. Thankyou for reminding me of all the hours I spent playing this game!
While I don't have much of technical knowledge, I have a theory on how the devs made a usually mono file output stereo sound.
Since there's nothing fancy going on with the tracks' channels, it could be possible the game is being told to play a normally mono sound separately and simultaneously for each channel, and that being reflected in the encoding.
If it were a 'hacky' stereo, it could be that the file's twice as long, has a divider that the game knows to separate the file into playing for each channel separately, or something to that effect, hence the clipping and loudness of your attempts at converting the files, especially since it seems like the output from those is in a singular channel, but should be in two.
I think that's what happened with a bunch of games around that time in order to 'fake' stereo sound (two Nicktoons games with FMOD solution, that can be ripped into mono versions that'd have tracks be twice as long than normal - especially Battle for Volcano Island, and Fairly OddParents: Breaking Da Rules with a bug that misaligns channels of a few tracks, come to mind).
The way I see it, devs were making do with the technology they had at the time.
It's far more likely that I'm wrong, especially in this particular case, though.
Great video and great story, i had games like this where i couldnt stop listening to the music, and recoreded on tape along time ago but i did lose.
This is a great fun video and depressing at the same time... LOL Where did the years go...????????
Seeing the thumbnail of Windows Sound Recorder just gave me them feelz...
This is like that onion interview video about the ant eaters
You could have someone from your community write a custom decoder; I mean the game knows how to decode it properly, you can reverse engineer that and write your own version of it. Oh, if only I knew more about audio. But maybe someone else with a bit more experience can chime in and we can do it together..?
My greatest gaming achievement as a kid was beating all Veronica Voltage time trials and unlocking her car chassis. A great moment for 12 year old LEGO maniac me.
So, FFmpeg 4.3 was just released and I found this in the changelog:
- LEGO Racers ALP (.tun & .pcm) demuxer
github.com/FFmpeg/FFmpeg/blob/71f19bf5e31ec4039ef0f9e22b157657c57e2cb9/Changelog#L52
This game brings childhood memories.
Have you tried using the "-volume" parameter in SoX to lower the volume of the input?
The music in this game is a proprietary pcm format and ffmpeg can decode it now. The decoder is adpcm_ama_ilp.
I am not a smoker.
The LEGO Racers soundtrack was originally designed for the Nintendo 64, so the PC and PlayStation versions basically use streamed versions of the sequenced soundtrack.
It’s comforting to hear from someone who loved this game as much as I did. You should totally put those tapes on SoundCloud.
The Intro .xa file is 3 MB. How they did that is beyond me. For reference: The converted wav file unrespampled is 10 MB
I tried the conversion myself. Compressing the wav with flac on lvl 8 only yields 6 MB. That is impressive. The conversion process is extremely slow tho.
Maybe an off-topic question but related to the game, would it be possible to look at unused car pieces that the AI is allowed to use, but not the player?
Are you okay, man? You sound coherent.
Great video, Druaga1 !
i'm loving these disecting videos about lego game soundtracks of all things.
I'm so glad I'm still awake
THIS IS WHAT I LIVE FOR!!!!!!!!
I love this game so much.
The music I thought was absolutely perfect for a racing game like this.
It's not just you, man... It's not just you... We are all nerds
#MidiMusicFetish #GiveDaikatanaAChance #LowPolyGang #BringBackTheBush
The mystery still remains though, we have to find this guy and ask how the engine is able to decode the damn thing
Eric should've stuck to earraping us with Beethoven's 2nd
I forgot all about this game! I really enjoyed this game as a kid.
*You will never unhear this song*
I remember this mech warrior 2 windows 95 game where you dont see any music files on the disk but yet if you pop it into a cd player then it will play all games music tracks!
Hmm I should do something valuable with my life
4 am: *LEGO RACERS MUSIC FILES*
Roses are red,
Music come in many styles.
Druaga1 investigate lego racer music files.
I really would love if companies made game music like rockstar made with gta libertcity stories for psp.
The radios are just .wav files in good-ish quality!
Why is your game in french ?
I loved lego racers! The Soundtrack still Brings me back :)
The N64 version uses sequenced music due to it being a cartridge. If you care enough, you could extract it from there. It even has the samples intact, although it seems they have been resampled down to 22050hz presumably for cartridge space. I have done this and for whatever reason the samples are stored at a much *lower* base note than C5, so that means the game changes the pitch for every sample when it plays music. My only guess for why this was done is because it would potentially sound better in quality when played at a faster rate? I don’t know. There are so many weird quirks behind this game.
As other people have pointed out, vgmstream can decode the PC version "TUN" files with no problem, giving a perfect wav output. It's open source so you can check how it's implemented:
github.com/losnoco/vgmstream
I also gave it a try and the output is indeed 22050 Hz. It also seems to be stereo since at 4 bits per sample the data encodes two channels, given the size of the files (so it's 44.1 KHz, counting both channels). I don't know, however, whether the PSX version at 37.8 KHz is accounting for both channels, only one, or if it's mono to begin with, so I'm not sure which the superior version is.
Also, could that explain the cracking in Audacity? Decoding as if it was one single channel at 44.1 KHz would effectively mix the data from L and R into a single stream without proper interleaving, so it would sound as cracking/skipping.
In any case the vgmstream TUN implementation takes care of all these details, with a clean output.
~Sky
The perfect recommended video to watch at 3AM when you have to get up early tomorrow
The N64 version is straight up midi
So yay samples
Dude i just found your page and i love it !
I did a high quality rip with the LEGO Racers N64 midi data, but unfortunately that port's soundtrack is incomplete, so you can only get the MIDIs and samples for the track specific songs and not any of the extra songs that the PC or PS1 ports shuffle through.
Just like the last upload, this is some great content. Keep em coming :D
Next you should try to investigate LEGO Island 2's DirectMusic files. They're like MIDIs but some of them have... randomly assigned segments so the music never plays the same all the time.
...Oh yeah and the N64 version of LEGO Racers is definitely sequenced, so you can get MIDIs out of it.
Literally nobody.
Druaga1: Investigating Lego Racer's Music Files
Rocket racer was the one I was never able to beat.
I’m watching this high af
Of all the strange things to show up in my recommended, I'm glad this was the one I clicked on.
I didnt even play lego racers and this was recomended to me. Im not dissapointed.
I love how this video exists.
Presenting: the soothing ASMR sound of Druaga's voice talking about ear rape. :P
BTW, I didn't know Eric Nofsinger was a spawn of Yog-Sothoth! Maybe that explains some things? ;) (5:47)
EDIT: My bad. It's actually SCP-066 (after Incident 066-2). Gotta love Google reverse image search. ;)
Oh man I spent so long messing around in that test arena by the start, memories
"I bet he was born on the highway, because that's where most accidents happen!"
Zophars domain, havnt heard that in 100 years.. Damn the good ole days!
Hey there! Your video was extremely interesting, especially for someone who has absolutely no idea about informatics nor ripping (like myself). I am really interested in the soundtrack and the sound files of this game, as I've been working on transcribing the music of this game for quite some time now. I was hoping to come across the soundfont that the original tracks use in order to transcribe them properly and accurately as they are in-game, but as you well explained, the PC game uses sound files and not MIDI files. However, I've read in multiple forums that the N64 version of this game does indeed use MIDI files, and some people in the Rock Raiders United community were able to extract them along with the soundfont. There's a problem though, the soundfont is a .dls file that I am unable to use or open; to import it in MuseScore (which is the program I use to transcribe) I would need an .sf2 file. I've read that there are some apps or soundfont editors that could convert the file (like Viena or Awave), but none that I could download/use on my Mac and worked. Could you somehow investigate deeper into this or offer any help?
For the Sox issue, I was having this problem no more than a few weeks ago, and I think the issue is that the input file needs a specific extension, It might be .raw or something. I cant really remember since sox didn't help me in the slightest, i ended up needing to use Yamaha AICA for my project.
Somehow you always find the games that are nostalgic to me
With the distortion of the usual conversion methods, it kinda makes the songs sound like Gameboy Advance music.
WinAmp? 2019? Llama? call me an ambleance
Can someone explain to me why people are so fascinated with the music from this game?
i'd like more videos about digging around in games.
Sounds like it's time to crack out Ghidra and figure out how they're decoding it