Hey, Stef. My buddy Leander has reached me about a bug he has found in your PCM player, in the function
Otherwise there's problems - depending on where the function finally falls in the compiled binary, you get a continuous background noise as the pointer is not pointing where it should.
Thanks for pointing it ! I fixed it in the test.bex wrapper
hey stef, can we use the 6 pad buttons + start and the 4 directions with your xgm driver? because sound work very bad when i use it
I don't know what BEX is doing when dealing with 6 buttons joypad, maybe it's retaining the Z80 for too much time, something that can affect the PCM playback quality. Otherwise, about the 4 samples limit, well XGM driver allow you to play up to 4 samples *at same time* but of course you can have many different samples in ROM
Hey, sorry to bother you guys. I'm a beginner working with BEX and wanted to try to write a program to play VGM music and I'm getting hung up on a few things. I've looked over this thread a few times and the SGDK documentation but either I'm not being as diligent about it as I should or the answers are going over my head. When I try to convert a VGM to an XGM file in the command prompt, my computer keeps asking me how to open CBP files instead of doing the conversion. I have the VGM file I want to convert in the xgmtool folder, but other than that everything in SGDK is completely untouched. Do you guys have any idea what I'm doing wrong?
Also, is there a way to reintroduce samples into the music? I know that XGM files don't support FM channel 6 for either FM or samples so you need that to be empty in order to convert, but is there a recommended way to reincorporate, say, prewritten sample percussion parts? I guess when compiling for SEGA CD you could have one long audio file that is the percussion track and have that run at the same time, but is there a more space-economical way for cartridge ROMs using individual sample files?
I hope I'm not breaking any rules bumping this thread. I know on some forums bumping is a big issue but on others they want you to create as few new threads for minor issues as possible so I figured start here, but if I should delete this and start a topic I will definitely do that.
EDIT: I managed to work around that first problem. While I still don't know how to work the xgmtool within SGDK, there's a standalone .exe file you can find here if anyone else needs it.
DOUBLE EDIT: So first of all I owe you guys an apology because my first problem was clearly spelled out here looking back, that the exe was not in the SGDK but was available on github/dropbox/et cetera. That was stupid of me. BUT I also have something positive to say, because I just converted a track without clearing samples out of channel six and it actually worked... sort of. The percussion, as written in VGM Music Maker, comes in in the third pattern of the song. I'm playing with it and trying to figure out why, it's really interesting.
LAST EDIT: I did just finally get perfect in-emulator playback of the song. It looks like in the conversion process there is a feature that auto ignores certain samples, and that can be disabled by appending your command in the command line with -di so that it leaves everything in.
Last Edit: Jun 21, 2016 20:45:47 GMT -5 by netnomad
yes, the dropbox link in the first message doesn't work anymore. I should have downloaded it before... Does anyone know where I can get the driver ?
Stef, si tu me lis, merci par avance
It's built into SecondBASIC with permission from Stef, but if you have a large BEX project, that may not help you since SecondBASIC still has some hidden bugs (meaning I know there's a few things not right, but I'm not sure what those are at the moment), so your BEX project may not compile properly. However, you can grab the driver code and required files from the installation of SecondBASIC if you need them
Sorry i fixed the link for the BEX wrapper. To be honest i don't know why the URL changed, something weird with Dropbox (maybe because i had to reinstall it on my computer). I will indeed update the wrapper for BEX so it will support the last version of the XGM driver, i can't give any date yet as there is some work needed for that but i will let you know here of course =)