The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Inserting music help?

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old September 20th, 2014 (6:27 PM).
rortik rortik is offline
 
Join Date: Aug 2014
Gender: Female
Posts: 59
I can convert files to .s fine and import them using Sappy. The problem is they're all fuzzy and don't sound right, they're very mechanical and glitchy.

How do I go about fixing this?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old September 20th, 2014 (10:13 PM). Edited September 20th, 2014 by Wobbu.
Wobbu's Avatar
Wobbu Wobbu is offline
bunger bunger bunger bunger
 
Join Date: Mar 2012
Location: Snaktooth Island
Gender: Male
Nature: Relaxed
Posts: 2,793
I'm not 100% sure of what's causing your problem, but I think the issue is that your song's volume is too high, therefore causing the strange noises. It's an easy fix, however. There's a line of code near the very beginning of the .s file that reads:

.equ [name of .s file]_mvl, 127

Change the 127 to a lower number. Usually 90 is a safe place to start, but if you still hear the weird noises, keep lowering that number. Save the .s file after changing the number and assemble it into Sappy again. You don't have to repoint if you assemble at the same location where you originally assembled it.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old September 20th, 2014 (11:10 PM).
rortik rortik is offline
 
Join Date: Aug 2014
Gender: Female
Posts: 59
That's not exactly the problem.

The problem is that I will play a song as a .mid and it sounds... like a normal song. When I then convert it to a .s and assemble it using Sappy, it sounds mechanical. It's kind of hard to describe, but it doesn't sound ANYTHING like what the original sounded like.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old September 20th, 2014 (11:30 PM).
Wobbu's Avatar
Wobbu Wobbu is offline
bunger bunger bunger bunger
 
Join Date: Mar 2012
Location: Snaktooth Island
Gender: Male
Nature: Relaxed
Posts: 2,793
Ok, I think I know what the problem is. Your .s file is using instruments with numbers that are different than the voicegroup's numbers. Are you using a custom voicegroup or one that is already created in the vanilla ROM?
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old September 21st, 2014 (12:43 AM).
rortik rortik is offline
 
Join Date: Aug 2014
Gender: Female
Posts: 59
Quote:
Originally Posted by Wobbu View Post
Ok, I think I know what the problem is. Your .s file is using instruments with numbers that are different than the voicegroup's numbers. Are you using a custom voicegroup or one that is already created in the vanilla ROM?

I'm not specifying either way, I'm simply hitting assemble song on Sappy, choosing my file, and letting it do whatever.

I'd assume that means I'm using a voicegroup that's on the ROM.

How do I use a custom voicegroup (no idea what that is) that works with the track I'm attempting to load?
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old September 21st, 2014 (1:02 AM).
Wobbu's Avatar
Wobbu Wobbu is offline
bunger bunger bunger bunger
 
Join Date: Mar 2012
Location: Snaktooth Island
Gender: Male
Nature: Relaxed
Posts: 2,793
I'll explain what voicegroups are, first. When you listen to the song when it's still a .mid file, your computer will play that song using a set of 128 preinstalled instruments (if you have a sound card). However, after converting the .mid into a .s file and assembling it into Sappy, it will be assigned to a voicegroup, which is like that set of 128 preinstalled instruments. But due to the way the devs of the Pokémon games set up the voicegroups, each voicegroup only uses around 10 instruments (rather than 128), which means that all tracks of your midi, which use an instrument that is excluded in the voicegroup you assigned your .s file to while assembling it, will sound like a mess of electric noises.

What game are you using? To the left of the volume slider in Sappy, you'll see something that reads "Voices 0x[pointer]" What is the offset for that pointer?
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old September 21st, 2014 (11:14 AM).
rortik rortik is offline
 
Join Date: Aug 2014
Gender: Female
Posts: 59
I'm using Pokemon Ruby.


That number changes with each song.
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old September 21st, 2014 (12:00 PM).
Wobbu's Avatar
Wobbu Wobbu is offline
bunger bunger bunger bunger
 
Join Date: Mar 2012
Location: Snaktooth Island
Gender: Male
Nature: Relaxed
Posts: 2,793
What instruments are you using in your midi?
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old September 21st, 2014 (2:57 PM).
rortik rortik is offline
 
Join Date: Aug 2014
Gender: Female
Posts: 59
How do I check this?

I guess the answer is whatever the midi defaults to, but I really don't know.


I feel really stupid -.-
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old September 21st, 2014 (8:52 PM).
Wobbu's Avatar
Wobbu Wobbu is offline
bunger bunger bunger bunger
 
Join Date: Mar 2012
Location: Snaktooth Island
Gender: Male
Nature: Relaxed
Posts: 2,793
lol how about you compress the midi into a zip file and upload it as an attachment in a post so I can look at it.
Reply With Quote
  #11   Link to this post, but load the entire thread.  
Old September 21st, 2014 (11:56 PM).
rortik rortik is offline
 
Join Date: Aug 2014
Gender: Female
Posts: 59
Ok, I've attached one of the files I'm trying to use, a midi of the Lost Woods/Saria's Song from LoZ OoT.


I'm trying to do multiple songs though, so even if you can fix my issue I'd like to know how I can do it myself.

I'm also having issues getting the songs to loop, though my issue there is I simply haven't looked into how to do it XD

Thanks for helping so much.
Attached Files
File Type: rar lostwood.rar‎ (703 Bytes, 1 views) (Save to Dropbox)
Reply With Quote
  #12   Link to this post, but load the entire thread.  
Old September 22nd, 2014 (8:05 PM).
Wobbu's Avatar
Wobbu Wobbu is offline
bunger bunger bunger bunger
 
Join Date: Mar 2012
Location: Snaktooth Island
Gender: Male
Nature: Relaxed
Posts: 2,793
The problem is bigger than I thought... I thought you were using custom music that you made yourself. You have both tracks set to instrument 0, which is a piano in the midi editor that I use (Anvil Studio). When you assemble the song, the tracks are going to use instrument 0 in Ruby, which I believe is a drum set. However, not all voicegroups in Ruby have data for the 0 slot, so that song will sound mechanical when played in Sappy and in the game if that voicegoup doesn't have data for the 0 slot.

I suggest reading some music hacking tutorials. It can be tough to learn but you're trying to do the easier half of it, so it should be at least somewhat easy to understand.

http://www.pokecommunity.com/showthread.php?t=301027
http://www.pokecommunity.com/showthread.php?t=121856
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:09 AM.