Author Topic: Custom game music idea  (Read 2573 times)

Edward

  • Iokan (+1)
  • *
  • Posts: 13
    • View Profile
Custom game music idea
« on: March 14, 2008, 07:40:51 am »
/snip/

Working on a custom music program for use with snes9x.
would read  a SNES RAM address and play a music file according to that value. You write 23 to that address in the event code, and 23.mp3 would play in the background. Details still being worked out below this post...
« Last Edit: March 14, 2008, 03:36:31 pm by Edward »

Shinrin

  • Chrono Trigger Threads of Time
  • Squaretable Knight (+400)
  • *
  • Posts: 487
  • Chrono Trigger Fan # 100
    • View Profile
    • Shinrin Cole
Re: Custom game music idea
« Reply #1 on: March 14, 2008, 01:11:53 pm »
I don't really see you putting in acutal mp3's in a rom, as mp3's can go over the 4 mb rom limit, and even if you expand the rom to 6mb, though the only thing close that anyone's done with this is d4s of the German Breath of Fire translation... and even then he coded the streaming system himself.

Video is here

and i don't know if he'd let you borrow it and i'm not sure how to contact him either.

Edward

  • Iokan (+1)
  • *
  • Posts: 13
    • View Profile
Re: Custom game music idea
« Reply #2 on: March 14, 2008, 02:43:28 pm »
Oh, I know putting MP3 files into the ROM is impossible.
I'm talking about an emulator noticing when a value in SNES RAM changes, it plays an external MP3 to match that value.

I have written a program that will do that, and so far it works pretty well. I'll need to hardcode the address though.
You open the program, and open snes9x and your ROM will play custom music. That's my plan anyway.

In Temporal Flux, you write a value (the song value you want to play) to a memory address, my program watches that address while you play, and launches an MP3 in the background when that value changes. Write a value of 00 to 7E0000 and 00.mp3 will play in your media player in the background.

It's close to my original idea of having it actually in an emulator, but eh.

EDIT
Try the attatched file.

Place the music files in the same folder as the program.
Name your mp3's in Hex (00.mp3 - FF.mp3)
Set the location music to silence.
In the event code, write the value of the song you want  to mem address 7F00FE.
That song should start playing, and any song you throw at that address.

It needs alot of work, play in fullscreen for now, etc...
But it should give an idea of what I'm attempting.



[attachment deleted by admin]
« Last Edit: March 14, 2008, 03:14:35 pm by Edward »

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: Custom game music idea
« Reply #3 on: March 14, 2008, 03:21:17 pm »
What about looping then, would it play it to a certain point of the song, remove it and then go to like 00-2.mp3?

Edward

  • Iokan (+1)
  • *
  • Posts: 13
    • View Profile
Re: Custom game music idea
« Reply #4 on: March 14, 2008, 03:25:23 pm »
Your music player would be set to repeat for looping. When you change the address with your event code, the song changes. I tried to choose a pretty useless address (nagaette bromide?). If not set to looping, it would only play the song once.


edit

Well now... it seems the addresses change on each emulator boot... that sucks...  :shock:
« Last Edit: March 14, 2008, 04:19:39 pm by Edward »

WeretigerRei

  • Iokan (+1)
  • *
  • Posts: 3
    • View Profile
Re: Custom game music idea
« Reply #5 on: July 12, 2008, 02:03:53 am »
Any update on this project?