Anyone with a Genesis and ability to record audio?

SGDK only sub forum

Moderator: Stef

Post Reply
cero
Very interested
Posts: 338
Joined: Mon Nov 30, 2015 1:55 pm

Anyone with a Genesis and ability to record audio?

Post by cero » Mon Nov 30, 2015 2:01 pm

We're wondering if the 4PCM driver is buggy, or if the issue is just with emulators. Anyone here have a Genesis + flashcart + ability to record directly from it, e.g. with a stereo cable right to the sound card's line-in?

Test ROM: https://github.com/Stephane-D/SGDK/files/47252/rom.pdf
What it should sound like: https://github.com/Stephane-D/SGDK/files/46007/bug.pdf
What it sounds like in an emulator: https://github.com/Stephane-D/SGDK/file ... output.pdf

The files are renamed to pdf because github restricts what files can be uploaded. Rename the rom to "game.md.gz" and the sounds to "sound.wav.gz", and unpack before use.

We'd need a high quality recording from real HW to properly compare. Any help appreciated.

https://github.com/Stephane-D/SGDK/issues/44

Grind
Very interested
Posts: 69
Joined: Fri Jun 13, 2014 1:26 pm
Location: US
Contact:

Re: Anyone with a Genesis and ability to record audio?

Post by Grind » Wed Dec 02, 2015 1:35 am

It's quiet but I recorded this from hardware. Sounds better than emulator but still a bit off.
Attachments
md1ntsc-mono.wav.gz
(220.82 KiB) Downloaded 212 times

cero
Very interested
Posts: 338
Joined: Mon Nov 30, 2015 1:55 pm

Re: Anyone with a Genesis and ability to record audio?

Post by cero » Wed Dec 02, 2015 9:20 am

Thanks! This confirms there is a driver issue.

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Anyone with a Genesis and ability to record audio?

Post by Stef » Wed Dec 02, 2015 1:54 pm

I analyzed the output produced from the real hardware and except about the pitch which is a bit off (i can correct this) there is no real issue except the well known ladder effect of the DAC. To correct that you have to pre filter / process your input sample to take the "ladder effect" in account but i do not know how much that is possible and i'm almost certain it does not behave exactly the same depending the system.
I have also taken a WAV log from Fusion emulator and can see the sample was "sample perfect" compared to original sample so there is nothing wrong with the driver :-/

cero
Very interested
Posts: 338
Joined: Mon Nov 30, 2015 1:55 pm

Re: Anyone with a Genesis and ability to record audio?

Post by cero » Wed Dec 02, 2015 2:26 pm

Oh, it's a hw fault? That's disappointing, but understandable. Would be nice to be documented in sound.h then.

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Anyone with a Genesis and ability to record audio?

Post by Stef » Wed Dec 02, 2015 5:12 pm

Unfortunately it does seems so... normally with "usual" sample you don't really notice the ladder effect but here your sample uses many square frequencies (which make me think you can almost reproduce it from the PSG) and the ladder impact is very noticeable in that case.

cero
Very interested
Posts: 338
Joined: Mon Nov 30, 2015 1:55 pm

Re: Anyone with a Genesis and ability to record audio?

Post by cero » Wed Dec 02, 2015 5:22 pm

It is a chiptune, but I used a PCM rendering of it, because of how PITA chiptunes are on the genesis.

rant on:
Seriously, having to define your own instruments with a non-existent tool, then having to use a tracker that has no knowledge of those instruments, being unsure of how anything will even sound.

To add to that, I couldn't find any working tracker in the first place, no mention of an easy-to-use one.

Why must the tools suck so. Why is there no "instrument bank" containing pre-defined instruments for everything common, such as in MIDI soundfonts? That would even enable straight MIDI conversion.
rant off.

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Anyone with a Genesis and ability to record audio?

Post by Stef » Thu Dec 03, 2015 10:38 am

Do you know VGMMaker or DefleMask ? Both are tracker which allow you to easily compose music for Sega Megadrive system.
Simply use VGM export from them and use the VGM or XGM driver from SGDK to play the resulting .vgm file, very easy :)

VGMMaker:
http://forum.openmpt.org/index.php?topic=5354.0

Deflemask:
http://www.delek.com.ar/deflemask

cero
Very interested
Posts: 338
Joined: Mon Nov 30, 2015 1:55 pm

Re: Anyone with a Genesis and ability to record audio?

Post by cero » Thu Dec 03, 2015 10:51 am

Hm, I only looked at Echo, which seemed to be the most useful sound system, but it had absolutely terrible tool support. VGMMaker seems to be Windows-only, and Deflemask is closed source, so they are both out.

The Yamaha chip in Genesis is said to be a fully capable synthesizer, able to play six notes at once in different instruments. The ideal workflow would be like MIDI, I tell it channels 1-2 are grand piano, 2-3 are electric guitar and 4-5 are drums, then feed it notes. But nobody seems to have instrument definitions for the chip anywhere, not to mention standard MIDI ones.

I used to have a MIDI keyboard, and I can speak sheet music. I find the tracker UIs completely unintuitive and hard to use. Then I also require the tracker to be able to run on Linux, and be open source. To my knowledge, there is no such tracker, though I only looked at some that would work with Echo.

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Anyone with a Genesis and ability to record audio?

Post by Stef » Thu Dec 03, 2015 1:31 pm

VGMMaker as Deflemask contains instrument definition and i know VGMMaker does support midi input so you can really compose from your MIDI keyboard. I guess you can try to use Wine to get VGMMaker working.

Honestly i don't know much about the tools you can use for Echo but these topics should help you when it comes to have music / SFX in megadrive game :

viewtopic.php?f=7&t=1844
viewtopic.php?f=19&t=2063
viewtopic.php?f=24&t=1909
viewtopic.php?f=19&t=1935
viewtopic.php?f=19&t=1606
viewtopic.php?f=19&t=1903

cero
Very interested
Posts: 338
Joined: Mon Nov 30, 2015 1:55 pm

Re: Anyone with a Genesis and ability to record audio?

Post by cero » Thu Dec 03, 2015 1:45 pm

Thanks. I've read many of those before though.

Echo is not a requirement, I can use any engine/driver, but it seems none have good tools.

It's pretty weird to me that the Yamaha chip is so capable, and then nobody has used it for much. It's even used in some real synths.

Post Reply