Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2013-02-26 02:52:07

Luca91
New member
Registered: 2013-02-26
Post 1/8

Ripping music in Pokemon Red

Hello mates,
I'm trying to rip some music from pokemon red.
I've choose to rip the main menu song, that is located at 7C249-7C254. The song header should be this:

C0 C0 64 01 78 65 02 43 66 03 EB 66

Okay, if I'm on the right way, the 1st channel should be located at $64C0 that should be 0x7E4C0.
So, I think that the song is this:

ED 00 90 F0  77 EA 09 34  EC 03 DC C1  E6 40 70 B0  
E5 20 E6 73  75 70 70 73  73 73 D8 C1  91 91 91 91  
91 61 FD 41  65 FD 4A 65  FD 41 65 E5  07 D8 C6 43  
43 03 DC C6  E6 B7 D8 E7  E5 53 43 03  DC E7 29 DC  
C6 E6 B1 E5  01 21 FD 41  65 FD 4A 65  FD 41 65 05  
05 43 25 51  71 23 71 75  93 51 91 E4  01 E5 2B 43  
57 73 53 4B  53 77 DC B6  E4 03 13 FD  5C 65 D8 B4  
E4 03 03 13  FD 5C 65 D8  B2 E5 43 43  13 FE 00 E2  
64 DC C6 E5  25 E6 B1 E5  27 FF

Can anybody confirm that I'm on the right way please ? also, what I've to do now to convert those values in the actual song ?

Thanks for the support mates, you rocks !

Offline

#2 2013-02-26 03:01:15

RED
Member
From: Japan
Registered: 2012-09-03
Post 136/517

Re: Ripping music in Pokemon Red

Wha do you mean to "actual song" did you mean that, how can you make it as mp3, midi, or something like that?


わたし の なまえ わ レン レン  でづ

Offline

#3 2013-02-26 12:50:36

Luca91
New member
Registered: 2013-02-26
Post 2/8

Re: Ripping music in Pokemon Red

RED wrote:

Wha do you mean to "actual song" did you mean that, how can you make it as mp3, midi, or something like that?

yes something like that. I'm aware that there is a conversion table for those values but I found just an incomplete one. I know that is not so simple  ...

any help would be appreciated ;)

Offline

#4 2013-02-26 13:06:09

RED
Member
From: Japan
Registered: 2012-09-03
Post 138/517

Re: Ripping music in Pokemon Red

What is your reason why you want to compile it?


わたし の なまえ わ レン レン  でづ

Offline

#5 2013-02-26 13:09:12

Luca91
New member
Registered: 2013-02-26
Post 3/8

Re: Ripping music in Pokemon Red

RED wrote:

What is your reason why you want to compile it?

just to learn something new, and because I would like to listen those music ( I know that there are already on youtube, but what's the fun in simply download them from internet ?? :P )

Offline

#6 2013-02-26 13:17:43

RED
Member
From: Japan
Registered: 2012-09-03
Post 140/517

Re: Ripping music in Pokemon Red

There's a tutorial made by melash about music, then about compiling it to midi, use Anvil studio (just google it) then if you have any knowledge about just compose it there.


わたし の なまえ わ レン レン  でづ

Offline

#7 2013-02-26 13:23:17

Luca91
New member
Registered: 2013-02-26
Post 4/8

Re: Ripping music in Pokemon Red

RED wrote:

There's a tutorial made by melash about music, then about compiling it to midi, use Anvil studio (just google it) then if you have any knowledge about just compose it there.

yeah but the conversion table made by melash seems to be incomplete.. this is the problem.

here is the data format to make a conversion:

Notes (x = note delay)
0x - B
1x - C
2x - C#
3x - D
4x - D#
5x - E
6x - F
7x - F#
8x - G
9x - G#
Ax - A
Bx - A#
Cx - No Note

Note Delay:
x0: 1/16
x1: 1/8
x2: 1/8.
x3: 1/4
x4:
x5: 1/4.
x6:
x7: 1/2
xB: 1/2.
xF: 1

E0 - Octave 7E1 - Octave 6
E2 - Octave 5
E3 - Octave 4
E4 - Octave 3
E5 - Octave 2
E6 - Octave 1
E7 - Octave 0

As you can see, I don't know how I have to treat some values of the song ( ie. "EC"  and so on .. ) ...

Offline

#8 2013-02-26 13:31:51

RED
Member
From: Japan
Registered: 2012-09-03
Post 142/517

Re: Ripping music in Pokemon Red

I don't know what to say, honestly i don't have any knowledge about hacking gen I, but what i know is that, there's no much difference on gen I & II.


わたし の なまえ わ レン レン  でづ

Offline

#9 2013-02-26 13:36:00

Luca91
New member
Registered: 2013-02-26
Post 5/8

Re: Ripping music in Pokemon Red

ok thanks anyway

Offline

#10 2013-02-28 05:37:32

PixelHaunter
New member
Registered: 2013-02-28
Post 1/1

Re: Ripping music in Pokemon Red

There's more to the format. I have a text doc sitting on my desktop that I think I got from here. Here's what it says about the RBY music format:

EA XX YZ - Vibrato
XX=will set the delay to that number, decrementing by one each frame. When it tries subtracting from 0, it starts decrementing from the speed timer (Y)
Y=will decrement by one each frame, when it tries decramenting from 0, it mods the frequencey by half of Z, and resets to Y
Z=Depth. The mod will first add, then subtract from the original frequencey each time. When Z is an odd number, it will mod higher an extra number
EX. normal pitch of 405, if Z=3, it will alternate between 407 and 404. Timers do NOT reset when a new note is played. only when the song stops or changes. (also, because a timer counts 0, a timer of 5 will take 6 frames to change)

EC XX - Duty/Pulse Shape
XX=(for pulse, 00 is 1/8 wave, 01 is 1/4 wave, 02 is 1/2 wave, 03 is 3/4 wave (same as 01 basically))

ED XXXX - Tempo
XXXX=Tempo change, 16 bit A tempo of 156 should read "ED 00 9C"

F0 XX - Output
XX=in bits, 0-8 telling which of the 4 channels play through what speakers

FD yyYY - Jump
yyYY=Address to jump to. Lower byte first. EX. jumping to A901 would read "01 29"

FE XX yyYY - Timed Jump
XX=number of times to jump (0 is infinite)
yyYY=Address to jump to. Lower byte first. EX. jumping to 25DC would read "DC 65"
When FD is already called for looping, it will act as an end point. It is usually used to repeat a part, and will jump to a part right before itself. when it reads itself again, it will keep jumping as long as the number of times hasnt ran out.
This is used at the end of a song to loop it.

FF - End/Return from FD Jump
This will jump to the byte after yyYY of the last FD called.

I used this to port the Kimono Dance Theater song from GSC into Red, and it ended up sounding exactly like the original. At least, I couldn't tell the difference.

Last edited by PixelHaunter (2013-02-28 05:40:11)


I love glitches.

Offline

#11 2013-02-28 12:54:09

Luca91
New member
Registered: 2013-02-26
Post 6/8

Re: Ripping music in Pokemon Red

Okay PixelHaunter your post help me a lot!

Since I'd like to port it to PC , do you know any program that I can use to write the songs (the easiest one!) ..  Sound_edit doesn't seems to work for me, and it is written in german :/

Last edited by Luca91 (2013-02-28 13:02:44)

Offline

#12 2013-02-28 13:06:33

RED
Member
From: Japan
Registered: 2012-09-03
Post 161/517

Re: Ripping music in Pokemon Red

Try anvil studio men.


わたし の なまえ わ レン レン  でづ

Offline

#13 2013-02-28 13:17:21

Luca91
New member
Registered: 2013-02-26
Post 7/8

Re: Ripping music in Pokemon Red

I'll try it, I hope that it isn't too complex for me

Offline

Board footer

Powered by FluxBB