Sonic and Sega Retro Message Board: YM2612 Emulation with 12 Channels - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Page 1 of 1
    Locked
    Locked Forum

YM2612 Emulation with 12 Channels

#1 User is offline saxman 

Posted 09 February 2009 - 06:46 AM

  • Oldbie
  • Posts: 2625
  • Joined: 08-April 04
  • Gender:Male
  • Location:United States of America
  • Wiki edits:136
A multi-stream YM2612 player I put together in about 20 minutes as sort of a test program:

http://www.4shared.com/file/85212398/d7d97...612_Player.html

I've been to hell and back, but I wanted this to work, and by golly it works. Two YM2612 streams occur simultaneously. Play two VGM files at the same time, and you could have 10-12 FM channels instead of 5-6.

Here's what I'd like to see -- someone willing to take a song and make two VGM files out of it. Replace "YM2612_A.vgm" and "YM2612_B.vgm" with your own VGM files. These could be more complex FM songs. And it's always nice having 2 DAC's instead of 1.

There are things I'd like to see happen with this. Even if you're not going to create a greater-than-6 channel song, at least just give my little program a try for the heck of it.



BTW: Exit by pressing ESC!

#2 User is offline nineko 

Posted 09 February 2009 - 07:14 AM

  • I am the Holy Cat
  • Posts: 5341
  • Joined: 17-August 06
  • Gender:Male
  • Location:italy
  • Project:I... don't even know anymore :U
  • Wiki edits:5,251
Seems interesting. You should mention that the vgm files need to be uncompressed, though. Many people just refer to both VGMs and VGZs as "vgm" so this can lead to confusion.

Also, sometimes I get invalid VGM data errors, I'll check with more files and I'll provide you a more detailed bug report.

#3 User is offline TmEE 

Posted 09 February 2009 - 09:13 AM

  • Hot music ~~~~
  • Posts: 1716
  • Joined: 06-January 08
  • Gender:Male
  • Location:Estonia, Rapla City
  • Project:Big Neighbor Disturber, Laser Raster Scan Projector
  • Wiki edits:11
12 channels is nice.

At one point, I will make some songs that use 2 MDs, and later on a Saturn with them. 10 FM channels, 4 PCM channels, 8 PSG channels... and Saturn with 32 FM/PCM channels... wohoooooo :D

#4 User is offline Tweaker 

Posted 09 February 2009 - 09:39 AM

  • Posts: 12389
  • Joined: 27-June 04
  • Gender:Male
I remember Marc made some example mp3s demonstrating a concept like this before. I'm definitely interested in messing around with this if I have the time—I just hope I can find a complex enough song to import! I think me and either nineko or Puto will team up to make something sexy. Or maybe I'll compose something specifically for that channel limit! The sky's the limit. :colbert:

By the way, sorry for not replying to the PM you sent me earlier about this—I've been rather distracted. Just wanted to let you know I'm all for the idea. :argh:

View PostTmEE, on Feb 9 2009, 09:13 AM, said:

At one point, I will make some songs that use 2 MDs, and later on a Saturn with them. 10 FM channels, 4 PCM channels, 8 PSG channels... and Saturn with 32 FM/PCM channels... wohoooooo :D

Pff... that's nothing! Add on the 32x PWM channels and the Sega CD PCM channels—with CDDA also playing in the background—for optimum sound. I dare you to try and think of something more complex! =P

#5 User is offline Cinossu 

Posted 09 February 2009 - 11:15 AM

  • inverted with love~
  • Posts: 2718
  • Joined: 21-June 04
  • Gender:Male
  • Location:London, UK
  • Project:Sonic the Hedgehog Extended Edition
  • Wiki edits:474
180

View PostTweaker, on Feb 9 2009, 02:39 PM, said:

I remember Marc made some example mp3s demonstrating a concept like this before.

Just the one, actually. :P I've always wanted to make an emulator (and ROM hack) that could utilise a double set of sound channels. It wasn't much, but this does use more than the standard share of FM channels for the chords and bass. :P

http://rubbish.hapisan.com/dual_md.mp3

I think I'll have a nice mess-around with this when I get home. I think I'll put Splash Woman through it, so I can prove to people it's vgm. :P

#6 User is offline Spanner 

Posted 09 February 2009 - 11:43 AM

  • Not much I can do on here nowadays...
  • Posts: 2873
  • Joined: 02-June 07
  • Gender:Male
  • Location:United Kingdom
  • Project:Sonic the Hedgehog Hacking Contest, Other Stuff
  • Wiki edits:2,193
Nice work, saxman. A bit off-topic, could the SMPS sound driver be modified to use 6 FM channels and 1 DAC channel? The Cube/Iwadare driver does that and that's used in some Mega Drive games.

#7 User is offline Sik 

Posted 09 February 2009 - 11:43 AM

  • Sik is pronounced as "seek", not as "sick".
  • Posts: 6719
  • Joined: 17-March 06
  • Gender:Male
  • Project:being an asshole =P
  • Wiki edits:11

View PostTweaker, on Feb 9 2009, 12:39 PM, said:

View PostTmEE, on Feb 9 2009, 09:13 AM, said:

At one point, I will make some songs that use 2 MDs, and later on a Saturn with them. 10 FM channels, 4 PCM channels, 8 PSG channels... and Saturn with 32 FM/PCM channels... wohoooooo :D

Pff... that's nothing! Add on the 32x PWM channels and the Sega CD PCM channels—with CDDA also playing in the background—for optimum sound. I dare you to try and think of something more complex! =P

Let the consoles comunicate with a PC or something like that for even more channels. See how high can you reach that way.

#8 User is offline nineko 

Posted 09 February 2009 - 11:45 AM

  • I am the Holy Cat
  • Posts: 5341
  • Joined: 17-August 06
  • Gender:Male
  • Location:italy
  • Project:I... don't even know anymore :U
  • Wiki edits:5,251

View PostSOTI, on Feb 9 2009, 05:43 PM, said:

The Cube/Iwadare driver does that
No it doesn't. The number of channels is an hardware limitation, not software.

#9 User is offline Spanner 

Posted 09 February 2009 - 11:47 AM

  • Not much I can do on here nowadays...
  • Posts: 2873
  • Joined: 02-June 07
  • Gender:Male
  • Location:United Kingdom
  • Project:Sonic the Hedgehog Hacking Contest, Other Stuff
  • Wiki edits:2,193

View Postnineko, on Feb 9 2009, 04:45 PM, said:

View PostSOTI, on Feb 9 2009, 05:43 PM, said:

The Cube/Iwadare driver does that
No it doesn't. The number of channels is an hardware limitation, not software.

Whoops, sorry. I was only saying from my memory, which I probably didn't take attention to much. You might as well trash the posts that I made in this topic then. :colbert:

#10 User is offline TmEE 

Posted 09 February 2009 - 11:53 AM

  • Hot music ~~~~
  • Posts: 1716
  • Joined: 06-January 08
  • Gender:Male
  • Location:Estonia, Rapla City
  • Project:Big Neighbor Disturber, Laser Raster Scan Projector
  • Wiki edits:11

View PostTweaker, on Feb 9 2009, 04:39 PM, said:

Pff... that's nothing! Add on the 32x PWM channels and the Sega CD PCM channels—with CDDA also playing in the background—for optimum sound. I dare you to try and think of something more complex! =P


The point is generating sounds in real time, so CDDA automatically fails at that. 32X PWM is the last thing I touch as it is AWFUL, emulators don't emulate the nice high freq carrier noise of those channels, also, what you hear on emulators is not what you can hear from real HW. MCD PCM HW can hold only 2 or 3 of my PCM samples (in the 64KB space that they get), usually my samples are over 1 second long and are 22KHz...

Key word is Synthesis here, generating sounds in real time.
This post has been edited by TmEE: 09 February 2009 - 11:54 AM

#11 User is offline roxahris 

Posted 10 February 2009 - 05:53 AM

  • Everyone's a hypocrite. Take my word for it.
  • Posts: 1221
  • Joined: 24-January 07
  • Gender:Male
  • Project:Doing anything at all
  • Wiki edits:30
I am definitely going to try this myself. Only problem is timing; what if I log one VGM a second or so after the first?

#12 User is offline nineko 

Posted 10 February 2009 - 05:55 AM

  • I am the Holy Cat
  • Posts: 5341
  • Joined: 17-August 06
  • Gender:Male
  • Location:italy
  • Project:I... don't even know anymore :U
  • Wiki edits:5,251

View Postroxahris, on Feb 10 2009, 11:53 AM, said:

I am definitely going to try this myself. Only problem is timing; what if I log one VGM a second or so after the first?
You get VGMtools and you trim them.

#13 User is offline saxman 

Posted 10 February 2009 - 12:10 PM

  • Oldbie
  • Posts: 2625
  • Joined: 08-April 04
  • Gender:Male
  • Location:United States of America
  • Wiki edits:136
http://www.4shared.com/file/87008071/ba4a2...2_WAV_Dump.html

There's a version of the EXE that dumps the output into a WAV file, just in case you want to share your results in an MP3 or something.

Page 1 of 1
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users