øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=612.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexb8ac.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=8.360e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexb8ac.html.zxŠ(h^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈà•¤:ûOKtext/htmlISO-8859-1gzip@øÕ:ûÿÿÿÿÿÿÿÿWed, 11 Mar 2020 00:10:10 GMT0ó°° ®0®P®€§²ð®‰(h^ÿÿÿÿÿÿÿÿ•$:û Using RS3ExTool2 to import music

Author Topic: Using RS3ExTool2 to import music  (Read 24947 times)

Vehek

  • Siren
  • *
  • Posts: 75
    • View Profile
Using RS3ExTool2 to import music
« on: June 13, 2008, 10:12:47 PM »
August 18, 2009:
I feel that this tutorial is a failure at helping people with this tool.

---
RS3ExTool2 is a tool for RS3 which can import and export music formatted as Music Macro Language files. It can also export music from several SNES games, though for some reason it's only worked with headered roms for me. You can get the tool by going to http://saga.no.land.to/upload.cgi and looking for a file with a description with "2-658".

The bottom right button is the import button, the bottom left the export button. The checkboxes are for determining where in RS3 the song will play. The left box under the MML selection is the song index, the right box is the offset where the song will go.

You can set up the instrument index for the song with this:
Quote
#WAVE 0x20, 0x12;
#WAVE 0x21, 0x29;
#WAVE 0x22, 0x3C;
#WAVE 0x23, 0x10;
#WAVE 0x24, 0x0E;
#WAVE 0x25, 0x0A;
#WAVE 0x26, 0x00;
#WAVE 0x27, 0x00;
#WAVE 0x28, 0x00;
#WAVE 0x29, 0x00;
#WAVE 0x2A, 0x00;
#WAVE 0x2B, 0x00;
#WAVE 0x2C, 0x00;
#WAVE 0x2D, 0x00;
#WAVE 0x2E, 0x00;
#WAVE 0x2F, 0x00;

Some of the commands added to correspond to "S-SPC" commands:
@<n> - SetInstrument (Command DC) (ex. @0x20)
%k<n> - Tranpose (D9)
%b<n> - SetEchoFB (F7)
%f<n> - SetFirCoeff (F8)
p<n> - ChanPan (C6)
%e1 - EchoOn (D4)
%e0 - EchoOff (D5)
%v<n> - Echo volume

t<n> - Tempo
v<n> - volume
o<n>- Octave
If you're converting a MIDI to a MML, it likely won't have the commands needed, except maybe octave. You'll have to insert them into the channels.  Parameters are generally in decimal.
 :edit:
I've attached a partial list of commands.

 :edit: 2
Incomplete MIDI importing tutorial (Writing in-progress).
Make sure the MIDI you're converting has 8 or fewer channels and all tracks on seperate channels.
« Last Edit: August 18, 2009, 02:53:03 PM by Vehek »

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,429
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Re: Using RS3ExTool2 to import music
« Reply #1 on: June 13, 2008, 10:31:05 PM »
Very interesting.  That's how they imported RS1 and RS2's music to that RS3 hack.  Makes me at least feel good that I did it the old fashioned way--with a hex editor.  :p

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Using RS3ExTool2 to import music
« Reply #2 on: June 13, 2008, 10:48:06 PM »
Okay, I think I did everything right, now how do I save?

Vehek

  • Siren
  • *
  • Posts: 75
    • View Profile
Re: Using RS3ExTool2 to import music
« Reply #3 on: June 13, 2008, 10:49:39 PM »
I think it saves automatically.
I don't know how well it imports to RS2, LAL, or RS1.

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Using RS3ExTool2 to import music
« Reply #4 on: June 13, 2008, 10:57:25 PM »
Hmm, I must be doing something wrong then. Let me try it with another song.

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Using RS3ExTool2 to import music
« Reply #5 on: June 13, 2008, 11:46:02 PM »
Ok, I'm not getting too far with this. When I try to import, I get some kind of error with channel 1. Any insight to what's going on?

119 bugs fixed and counting.

Vehek

  • Siren
  • *
  • Posts: 75
    • View Profile
Re: Using RS3ExTool2 to import music
« Reply #6 on: June 13, 2008, 11:49:02 PM »
What songs have you tried to import?

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Using RS3ExTool2 to import music
« Reply #7 on: June 13, 2008, 11:55:25 PM »
This one, and when tinymm runs it, it spits out this.

--Edit--
DKK just now points out to me that the mml file is 0 bytes in size, which may be part of the problem. Oy...

--Edit the second--
Ok, now trying another song, I get it successfully imported (and not to split hairs, I decided to work with FF6 directly). It imported the MML, and there's a lot of data there. The length bytes are correct, and the track pointers seem correct, however, the song plays garbage. I replaced the Mines of Narshe. That static leads me to believe the chip crapped out. I must be missing a step or two, any ideas?

--Edit the third--
Way off on the track pointers...

--Edit again--
After following the directions laid out by this somewhat to the letter, nothing really changes. Looking at the SPC sequence data, there's a lot of repetition going on, plus the track pointers are still wrong. Leads me to believe I have to do the first step of using RS3 as a base. Can you fill in some blanks here?
« Last Edit: June 14, 2008, 02:25:41 AM by Lenophis »

119 bugs fixed and counting.

Vehek

  • Siren
  • *
  • Posts: 75
    • View Profile
Re: Using RS3ExTool2 to import music
« Reply #8 on: June 14, 2008, 10:11:33 AM »
Hmmm...I don't know if it'll help, but the tool was designed by Japanese people, so it should be designed for the Japanese version of games. When I put its readme through a machine translator, it said something about reading the SNES header to determine what game it is.

-edit: Doesn't seem to matter.
« Last Edit: June 14, 2008, 10:24:54 AM by Vehek »

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Using RS3ExTool2 to import music
« Reply #9 on: June 14, 2008, 12:32:06 PM »
Hmmm...I don't know if it'll help, but the tool was designed by Japanese people, so it should be designed for the Japanese version of games.
That's what I was thinking too, and those are the versions of the roms I've been using.

Quote
When I put its readme through a machine translator, it said something about reading the SNES header to determine what game it is.
Sounds right, as the ASCII title of the game is put into one of the boxes.

Ok, what I'm doing to do this:
1. Use tinymm to convert my midi's to MML (and it doesn't seem to work with all of them :sad:).
2. Use RS3ExTool.exe (found in up0566.zip) to import the song (the rom is then expanded to 5.64 megs). No check boxes were checked, and the song index can be changed manually. To be safe, it was inserted at the end of the rom.
3. If need be, open up a hex editor and manually change an SPC pointer to look at the new song data, then get to a point in the game where the song is heard.
4. Song that plays is garbage...

 :sad:

119 bugs fixed and counting.

Vehek

  • Siren
  • *
  • Posts: 75
    • View Profile
Re: Using RS3ExTool2 to import music
« Reply #10 on: June 14, 2008, 01:19:36 PM »
I don't know what's going on. Have you tried importing files already configured to be imported into RS3?

edit:  This is the MML file I inserted to put "The Other Side of the Mountain" in the game.
« Last Edit: June 14, 2008, 01:31:07 PM by Vehek »

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Using RS3ExTool2 to import music
« Reply #11 on: June 14, 2008, 01:50:21 PM »
With attempts using the MML's the program supplies:

SaGa Frontier - Last Battle - Emelia: Gives an error about line 36.
Minstril Song - Barbara: Gives an error about line 39.
Mystic Arc - Alone: Gives an error about line 16.

Guitar2 seems to import, and the sequence data looks a lot smaller than the "successful" imports I had. When playing the song in the game, it started out as garbage, but recovered after a few seconds. An SPC dump is playing only garbage.

119 bugs fixed and counting.

Vehek

  • Siren
  • *
  • Posts: 75
    • View Profile
Re: Using RS3ExTool2 to import music
« Reply #12 on: June 14, 2008, 03:21:55 PM »
 :sad: Hmmm, I might be wrong about the "importer" part for games besides RS3. I thought I did it before, but I can't get it to produce the two parameter versions of S-SPC commands F7 and F8.

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,429
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Re: Using RS3ExTool2 to import music
« Reply #13 on: June 25, 2008, 10:02:04 PM »
I can't get this damn thing to work.  tinymm works perfectly converting only mid's--but my RS3 1.1 rom gets corrupted after importation.  This is getting annoying. 

Vehek

  • Siren
  • *
  • Posts: 75
    • View Profile
Re: Using RS3ExTool2 to import music
« Reply #14 on: June 25, 2008, 11:47:04 PM »
How corrupted? Where were you trying to place the song?