Sadly it's not just Alex Builds His Farm...
The format is also used by Hype: The Time Quest (PC). I like that soundtrack a lot so I tried messing with this tool today...
Turns out it crashes on the first file of every BNM file. Okay, so I modified an existing QuickBMS script to automate extracting MPX/MPU/MPD files.
After that, tonictac's errors are gone, but still only about half of the MPX files are converted correctly - the rest output silence for the duration of the track. So sadly, it's currently impossible to rip the soundtrack of that game. I imagine it's similar for Alex Builds His Farm.
Of course, there's a PS2 version too, but that uses 22kHz tracks, and the PC version's MPX files are 44kHz. And Alex Builds His Farm and Laura's Happy Adventures don't have other versions anyway.
It seems this whole UbiSoft MPEG mess just won't end...
EDIT 1 > Ok, it seems like the other half of the MPX files are converted correctly only if they're extracted from the BNM with the "b" bank option. But the banks need to be edited manually first because it isn't possible to extract any of them. I'll just see if I can edit & recompile tonictac to fix this, that'd be the easiest solution.
EDIT 2 > After I sank into a pit of depression because I kept struggling to recompile this program, Spitfire_x86 helped out and rewrote part of it, fixing the compilation issue. This was a huge help and I cannot thank him enough!!!

After that I was able to debug the code and fix some big issues that prevented it from working on Hype. It now works flawlessly - and I would be very surprised if it didn't have some issues with Tonic Trouble before... For Hype, the offset from which it tried to read files was almost always incorrect, and the "theme merging" tool (the author's attempt at merging segments while exporting) sometimes caused entire tracks to be ignored while exporting as well as just guessing the segment order??? As a result I've disabled that, which means more segments - but at least you can control how they are merged now.
I will share the updated tool here later after I test it with more games.
EDIT 3 > So I was told we have the source code for Ubisoft's MPEG algorithm. I will probably look into that and try reimplementing it in the future (in a few months maybe). In the meantime, I'll release the updated version of tonictac and its source:
https://app.box.com/s/z7iiex4bzo23rppg81ynd64dzq9ln7rs
To use it, just put the exe, DLLs and bat file in the sound directory of the game and run bnm2wav.bat. It'll create a ton of wav files. Some of them are converted from ADPCM, some are converted from MPEG. This works on most(/all?) games that use BNM files.
For the files converted from ADPCM, you should know that the game DLLs always output them at 22.05kHz even if a different sample rate is specified, and it is better to convert them using another tool (like vgmstream) instead. MPEG files might have quality loss too, I will look into that further later.
Again, a HUGE thanks to Spitfire_x86: he made the detours version of this tool which allowed me to build on that.
