PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Discussion Board > Archive

Notices

Archive Old threads that serve no purpose are here.

 
 
Thread Tools Display Modes
Old 5th December 2012, 04:11 AM   #1
Team Fail
Balance and Ruin
Ex-StaffStyle AdminstratorPHO VIP
 
Team Fail's Avatar
 
Join Date: Jul 2010
Posts: 564
Team Fail Team Fail Team Fail Team Fail Team Fail
Default GBA/NDS: Looping! Never touch a text editor ever again!

So, after downloading a special program called "NITRO-SoundMaker", which is an in-house tool to develop music for the NDS, I discovered how to loop, and it was stupidly simple. Following on a hunch, I decided to ask someone to send me a MIDI, I added the needed data to it, send it back, and have him insert it. But, there was one condition: do not touch the .s file. And my hunch was correct: the file did loop. So, this tutorial is killing two birds with one stone, as the same official tools for converting MIDI files for use on the GBA use the exact same command to loop as the official NDS tools. And it's been overlooked for many years, so it's beyond me how this was totally missed. Anyways, let's get started.

You will need:
1. Your MIDI file
2. Anvil Studio
3. Official NDS/GBA conversion tools (Based on what system you want to use)
-MID2AGB and Sappy for GBA
-smfconv, and seqconv for NDS

Oh, and don't ask me where to find the Nintendo programs. I will not link to them.

Now, as I said, it's stupidly simple to loop, and I'm not kidding. These commands are built into both MID2AGB and smfconv, but they've been overlooked until today. Here's how to tap into the hidden potential:

1. Open your MIDI file in Anvil Studio, and view your MIDI in the Piano Roll Editor (View -> Piano Roll Editor)

Now, to start, go right to the end of the song, and head to the top of the window. Look for a button called "New cue" and click on it:



Now, since we're at the end of the file, we're going to add one special character to the box that shows up, simply, "]":



Now, here comes the hardest part, and it's not even that hard. In the piano roll editor, place the marker arrow at the point in the song you want the game to loop it to, then go back up to the top and add a new cue, "[":



And that's all! Now, export your MIDI file (MIDI-Format 0 File), and compile it using your choice of tools (mid2agb for GBA, or smfconv + seqconv for NDS), and insert. Don't even touch your .s file, as there is no need to, well, unless you need to adjust something. Have fun looping music!
__________________
twitter | dropbox | youtube | bro

Thank you for your time, PHO. I won't soon forget it.

Last edited by Team Fail; 3rd January 2013 at 12:41 AM.
Team Fail is offline  
Likes Mystelex liked this post
Sponsored Links
Old 5th December 2012, 10:36 AM   #2
Jambo51
Glory To Arstotzka
Ex-Staff
 
Jambo51's Avatar
 
Join Date: May 2012
Location: Scotland
Posts: 85
Jambo51
Default

The fact that it is so simple is probably part of why its been missed for this long!

As ROM hackers, we default to expecting things to be complicated, and quite often overlook the more simple possibilities.

I have 1 question, does this loop the file inside Anvil Studio or not?

Fantastic find, either way! I shall be trying this out later today!
__________________
I have nothing interesting to add
Jambo51 is offline  
Old 5th December 2012, 01:38 PM   #3
Full Metal ★
Unstable?
Ex-StaffPHO VIP
 
Full Metal ★'s Avatar
 
Join Date: Oct 2012
Posts: 312
Full Metal ★ Full Metal ★
Default

Heh. ;_;
Nice find, sir, Nice find!
__________________

★ full metal.

#busy
Full Metal ★ is offline  
Old 5th December 2012, 07:51 PM   #4
Icey
Ahoy!
Ex-StaffPHO VIP
 
Icey's Avatar
 
Join Date: Aug 2010
Location: Germany
Age: 20
Posts: 65
Icey
Default

Beautifully simple and useful. M?riter ^_^
Icey is offline  
Old 5th December 2012, 08:50 PM   #5
Sky0fBlades
Emerald Hacker
Moderator
 
Sky0fBlades's Avatar
 
Join Date: Sep 2012
Location: Ice Path
Age: 25
Posts: 128
Sky0fBlades
Default

This... is awesome. I had been wondering if there was an easier way to loop those songs I plan to use in my hack, and I am glad I waited until I saw this xD
Thanks, this thread just made my day.

Last edited by Sky0fBlades; 5th December 2012 at 08:54 PM.
Sky0fBlades is offline  
Old 6th December 2012, 01:58 PM   #6
Team Fail
Balance and Ruin
Ex-StaffStyle AdminstratorPHO VIP
 
Team Fail's Avatar
 
Join Date: Jul 2010
Posts: 564
Team Fail Team Fail Team Fail Team Fail Team Fail
Default

Quote:
Originally Posted by Icey View Post
Beautifully simple and useful. M?riter ^_^
Merci :D
Quote:
Originally Posted by SkyLine View Post
This... is awesome. I had been wondering if there was an easier way to loop those songs I plan to use in my hack, and I am glad I waited until I saw this xD
Thanks, this thread just made my day.
Glad to hear! n___n
__________________
twitter | dropbox | youtube | bro

Thank you for your time, PHO. I won't soon forget it.
Team Fail is offline  
Old 7th December 2012, 05:21 AM   #7
Sky0fBlades
Emerald Hacker
Moderator
 
Sky0fBlades's Avatar
 
Join Date: Sep 2012
Location: Ice Path
Age: 25
Posts: 128
Sky0fBlades
Default

Uhm... I tried it out just a while ago and followed the steps exactly for the GBA, and when I assemble and play a MIDI using Sappy it's not looping. There must be something I'm forgetting to do, this is what I did:
Code:
1) Opened MIDI in Anvil Studio (latest version).
2) Opened Piano Roll Editor function, went to end of song.
3) Made sure marker was at the end, and clicked 'new cue' and entered ]
4) Went to the point to loop to with marker, repeated steps but put [
5) Saved MIDI, drag/dropped it on mid2abg.exe to get .s file.
6) Opened Sappy, loaded ROM, assembled over a song with .s file.
Could it be you use a different version of Anvil Studio? (the 'new cue' button looks different, I think it has lost compatibility with mid2agb). I really don't want to be back to editing the file in text :( What could be going wrong? It's a little ironic that I'm having trouble despite the simple steps xD

Last edited by Sky0fBlades; 7th December 2012 at 05:36 AM.
Sky0fBlades is offline  
Old 7th December 2012, 08:27 PM   #8
Team Fail
Balance and Ruin
Ex-StaffStyle AdminstratorPHO VIP
 
Team Fail's Avatar
 
Join Date: Jul 2010
Posts: 564
Team Fail Team Fail Team Fail Team Fail Team Fail
Default

I'm using Anvil Studio 2012, but it may be worded differently in older versions. As for compatibility, that's impossible because the command for a cue in MIDI files cannot suddenly change, or else it would break compatibility with other programs. All I can guess to do is make sure that your're using the right MIDI file. If I can find time, I'll record a YouTube video for this.
__________________
twitter | dropbox | youtube | bro

Thank you for your time, PHO. I won't soon forget it.
Team Fail is offline  
Old 8th December 2012, 02:37 AM   #9
Sky0fBlades
Emerald Hacker
Moderator
 
Sky0fBlades's Avatar
 
Join Date: Sep 2012
Location: Ice Path
Age: 25
Posts: 128
Sky0fBlades
Default

Alright, thanks :)
Meanwhile I'll keep trying with other MIDIs and I'll see if I can figure this out, hopefully it will work.
Sky0fBlades is offline  
Old 9th December 2012, 04:15 AM   #10
TPP_FritzisAwesome
Newbie
 
TPP_FritzisAwesome's Avatar
 
Join Date: Dec 2012
Posts: 1
TPP_FritzisAwesome is on a distinguished road
Default

Good Job Team Fail
Hopefully with this, we'll see more hacks with new music ;D
TPP_FritzisAwesome is offline  
 

Tags
editor, gba or nds, looping, Multi Gen:, text, touch, [Guide]

Thread Tools
Display Modes

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. The time now is 05:42 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts