Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#51 2016-08-14 04:35:22

Rangi
Member
Registered: 2016-05-09
Post 89/870

Re: GSC Music Covers (with code)

Here's a Python script that will do most of the conversion. It doesn't rewrite the song header, so you'll need to replace the SONG_START offset with something like:

Music_Route47HGSS:
    musicheader 3, 1, Music_Route47HGSS_Ch1
    musicheader 1, 2, Music_Route47HGSS_Ch2
    musicheader 1, 3, Music_Route47HGSS_Ch3

depending on how many channels there are. It also leaves a bunch of Bar labels which are probably not needed, but just in case a loop/jump goes to one I left them in. The output basically matches my manual conversions of couple songs, but there may still be bugs.

Last edited by Rangi (2016-08-14 04:45:25)


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

#52 2016-08-14 05:41:26

Mmmmmm
Member
From: West Virginia
Registered: 2015-05-17
Post 66/261

Re: GSC Music Covers (with code)

I attempted it with a single sound channel of a song, and it didn't come out remotely right. The pitches are definitely taken from the sound channel, but they have no rhythm to them whatsoever and the note lengths seem arbitrary. It also switches between octaves 3 and 4 with no pitches between them constantly in the song, i.e.

dutycycle 0
    note __, 8
    octave 3
    octave 4
    octave 3
    octave 4
    octave 3
    octave 4
    octave 3
    note B_, 2
    octave 4
    note C_, 2
    octave 3
    octave 4
    note D_, 2
    octave 3
    octave 4
    note C_, 2

I appreciate the effort very much, but trying to sort out this code seems like it would take longer than just writing out the sound channel by reading the MIDI. Again, I'm grateful that you tried.

Offline

#53 2016-08-14 05:52:20

Rangi
Member
Registered: 2016-05-09
Post 90/870

Re: GSC Music Covers (with code)

Odd. So when you applied MIDI2GSC to a MIDI file, its output had something like this?

db oct2
db oct3
db oct2
db oct3

Last edited by Rangi (2016-08-14 05:54:00)


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

#54 2016-08-14 05:55:43

Mmmmmm
Member
From: West Virginia
Registered: 2015-05-17
Post 67/261

Re: GSC Music Covers (with code)

Yeah. Maybe it's a bug in the original MIDI2GSC, or an oddity with this specific MIDI file, though I just ripped it from HeartGold's ROM so I don't know what it would be.

Last edited by Mmmmmm (2016-08-14 05:56:27)

Offline

#55 2016-08-14 06:21:13

Rangi
Member
Registered: 2016-05-09
Post 91/870

Re: GSC Music Covers (with code)

Okay. It sounds like if you have a custom MIDI that MIDI2GSC processes correctly, you can use that plus gs2c.py to quickly port a whole section to pokecrystal. Although if MIDI2GSC gives weird output all the time, then never mind.

(Interesting that you can get MIDIs right from HG/SS; I thought the DS Pokémon games used WAV files or a compressed equivalent. Maybe that's why MIDI2GSC wasn't working—it might assume that your MIDI file fits the restrictions of a GSC ROM, four channels and so on.)

Last edited by Rangi (2016-08-14 06:23:26)


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

#56 2016-08-14 06:39:49

Mmmmmm
Member
From: West Virginia
Registered: 2015-05-17
Post 68/261

Re: GSC Music Covers (with code)

I figured out what the issue is, and I'm not sure why it happened, but Anvil Studio merged the sound channel I wanted to rip with another one when I loaded it. When I isolated the channel with another program and then loaded it everything worked perfectly. I had to alter a few things like note length (the minimum length was 8 for some reason, but I could find+replace that easily), but after I did that and added a few touches from other sound channels to complete the melody I managed to get this:

[Link redacted, it was an 8-second long test loop]

Thank you Rangi, it'll take a bit of getting used to but I think this will make transposing songs a lot quicker. The DS does use MIDI by the way; I think it's also capable of using WAV but all the music I've seen ripping the DS Pokémon games are MIDI.

Last edited by Mmmmmm (2016-08-15 03:06:10)

Offline

#57 2016-08-15 03:07:45

Mmmmmm
Member
From: West Virginia
Registered: 2015-05-17
Post 69/261

Re: GSC Music Covers (with code)

Alright, so I chose an inconsequential song (as in one nobody would get upset about if I butchered it), and made a full cover with the assistence of MIDI2GSC. Does this sound as good as the average cover of mine?

Spiky-Eared Pichu:
http://pastebin.com/stpKurZA
https://soundcloud.com/mmmmmmmmmmmmmmmm … -gbc-8-bit

Offline

#58 2016-08-17 18:53:56

Rangi
Member
Registered: 2016-05-09
Post 95/870

Re: GSC Music Covers (with code)

I like it! It definitely sounds like the original.

Also, a low-priority song request: a more "techno" version of the GSC Gym theme. Maybe just the HGSS one, sounding denser / with more notes than in GSC, or a remix with the same kind of atmosphere as the DPPt Game Corner theme. B2/W2 had Gym theme variations for example.

Edit: Actually, there are a couple other songs I could use. The HG/SS Lyra encounter theme, and the rival theme for Barry in D/P/Pt, Serena in X/Y, or May in R/S/E. (Whichever you'd prefer, in case you don't want to do a Gen IV track and there's no MIDI for X/Y.) (And please take your time, if you want to do those tracks at all.)

Last edited by Rangi (2016-08-18 23:08:51)


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

#59 2016-08-19 14:24:13

Kuroko Aizawa
Member
Registered: 2011-12-01
Post 325/499

Re: GSC Music Covers (with code)

Was hoping it would be alright for me to make a request. I am in need of the Kimono Girls ost and trainer eyes theme from HGSS. There is another similar track that I believe plays when Ho-Oh is being summoned, but I've not played the remakes extensively.

https://www.youtube.com/watch?v=VqbuSO3RyhI Trainer Eyes Meet
https://www.youtube.com/watch?v=EEAeaeSLOis Kimono Girl
https://www.youtube.com/watch?v=-XDoKV7E-Jg Kimono Girl Summoning(?)

Thanks, and I understand if you are busy and have no interest!

Offline

#60 2016-08-19 17:30:10

Mmmmmm
Member
From: West Virginia
Registered: 2015-05-17
Post 78/261

Re: GSC Music Covers (with code)

I'm a bit confused here, aren't both of these tracks already in GSC?

https://www.youtube.com/watch?v=NKvH--i1GJE
https://www.youtube.com/watch?v=OkzAGNb16p4

I can definitely do the third, though.


I should also be able to do all of Rangi's covers, though I've never done an original remix before so I might take some extra time on the Gym theme and do the others first, that way nobody's waiting on their requests for what might end up being a bad cover. Out of those three rival themes, which is your highest priority, as in which would you use if all three were available?

Offline

#61 2016-08-19 17:39:51

Kuroko Aizawa
Member
Registered: 2011-12-01
Post 329/499

Re: GSC Music Covers (with code)

Well, they are, but the tune is a bit more refined in HGSS. But that's fine, the third one was the most important one for me. Thanks a lot!

Offline

#62 2016-08-19 18:02:35

Rangi
Member
Registered: 2016-05-09
Post 104/870

Re: GSC Music Covers (with code)

Thank you, Mmmmmm! For the rival battle themes, my preference is XY > DPPt > RSE. And yeah, the techno Gym theme would be cool to have, but I don't need it before any of your other planned works.

Last edited by Rangi (2016-08-19 18:14:00)


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

#63 2016-08-23 00:38:07

Mmmmmm
Member
From: West Virginia
Registered: 2015-05-17
Post 81/261

Re: GSC Music Covers (with code)

Alright, so I did the easier ones first.

Lyra's Theme:
http://pastebin.com/fL7d2CrB
https://soundcloud.com/mmmmmmmmmmmmmmmm … -gbc-8-bit

Kimono Summoning Dance:
http://pastebin.com/ANhCKGUS
https://soundcloud.com/mmmmmmmmmmmmmmmm … -gbc-8-bit

I took a few liberties with the summoning dance theme just because I thought they fit the GBC style of composition better, removing the percussion (the bellchimes don't have any approximate noise) and making the bass waveform louder than in the original. I think it came out sounding powerful, and when I put the MIDI in the conversion tool the immediate result was almost 100% perfect, I just needed to fix a few note lengths and add the dutycycles and volumes. Maybe I just got lucky since the song is homogeneous instead of changing instruments repeatedly.

Offline

#64 2016-08-23 01:25:00

Kuroko Aizawa
Member
Registered: 2011-12-01
Post 344/499

Re: GSC Music Covers (with code)

Sounds amazing, thank you so much :)

Let me know if you need some trainer sprites done so I can return the favor ;D

Offline

#65 2016-08-23 07:29:35

Rangi
Member
Registered: 2016-05-09
Post 117/870

Re: GSC Music Covers (with code)

Your music is awesome and you are awesome.

Does the Kimono Girls' summoning dance loop? (I know it was a one-time song in HG/SS, but it could work as BGM for the Bell Tower roof too.) Also, what does the dutycycle command do?


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

#66 2016-08-23 17:33:07

Mmmmmm
Member
From: West Virginia
Registered: 2015-05-17
Post 82/261

Re: GSC Music Covers (with code)

Rangi wrote:

Does the Kimono Girls' summoning dance loop?

Yes.

Dutycycle is the timbre of a sound channel. I'm not sure exactly how it works hardware-wise (maybe look at this if you want a more technical explanation) but changing the dutycycle of a channel changes how a note sounds on that channel.

Lyra's theme's melody, to use as an example, starts at dutycycle 2, changes to dutycycle 1 about a third of the way into the song, and changes back to dutycycle 2 two-thirds into it, to give the impression of changing instruments. The summoning dance's pulse channels are both on dutycycle 0 throughout the song.

Offline

#67 2016-08-24 23:27:10

Rangi
Member
Registered: 2016-05-09
Post 127/870

Re: GSC Music Covers (with code)

That's a really interesting video, thanks! It looks like the GameBoy's duty cycles are the same as the NES.

ROM hackers don't control the audio hardware, of course, but one of its features is the "wave channel" that plays from "a 32-entry wave table made up of 4-bit samples". And those samples are defined in the source code! They're pretty short, so probably not much can be fit in there, but maybe someone could do interesting things with that.

By the way, thanks for devamping the Mt. Coronet music before I knew I needed it. (It's basically the same as the Sinjoh Ruins theme.)

Last edited by Rangi (2016-08-24 23:29:47)


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

#68 2016-08-26 01:10:20

Kuroko Aizawa
Member
Registered: 2011-12-01
Post 353/499

Re: GSC Music Covers (with code)

Was listening to some OST today and I remembered a track that's looked over a lot, would be a good challenge for you. The BW1 Credits theme sounds more like a drawn out battle theme when devamped (from my experience of listening to it with soundfonts), might be a fun track to do that I think most wouldn't even think of doing.

https://www.youtube.com/watch?v=X3yYGioc7cY

Offline

#69 2016-08-28 07:47:56

Mmmmmm
Member
From: West Virginia
Registered: 2015-05-17
Post 83/261

Re: GSC Music Covers (with code)

The XY rival theme is done.
http://pastebin.com/KvYS4SPR
https://soundcloud.com/mmmmmmmmmmmmmmmm … -gbc-8-bit

Also, Rangi, I realized, since you're going to have Lyra battle, you need a post-battle version of the fight that cuts the intro like Blue and Silver have to match GSC's style, so I quickly did this:
http://pastebin.com/0PPUz32D

It needs the original Lyra theme to play right, but obviously that won't be a problem for you.

Offline

#70 2016-08-28 15:47:02

ShantyTown
Member
Registered: 2013-12-04
Post 316/344

Re: GSC Music Covers (with code)

Mmmmmm wrote:

The XY rival theme is done.
http://pastebin.com/KvYS4SPR
https://soundcloud.com/mmmmmmmmmmmmmmmm … -gbc-8-bit

Also, Rangi, I realized, since you're going to have Lyra battle, you need a post-battle version of the fight that cuts the intro like Blue and Silver have to match GSC's style, so I quickly did this:
http://pastebin.com/0PPUz32D

It needs the original Lyra theme to play right, but obviously that won't be a problem for you.

The Rival theme sounds great.  In my opinion, you should go an octave higher in the "quiet" part of the song (at 54-second mark in the song).

Offline

#71 2016-08-28 18:30:19

Mmmmmm
Member
From: West Virginia
Registered: 2015-05-17
Post 84/261

Re: GSC Music Covers (with code)

Do you think it sounds better like this?
https://soundcloud.com/mmmmmmmmmmmmmmmm … val-errata

Offline

#72 2016-08-28 20:04:15

Rangi
Member
Registered: 2016-05-09
Post 132/870

Re: GSC Music Covers (with code)

I love it! Thanks so much, Mmmmmm. Here's what all three Lyra tracks sound like in-game:
https://youtu.be/m209TrtoO_s

(Anyone know of some good free software for Windows 8 to record an emulator like VBA or BGB? I recorded the video with CamStudio, the audio with Audacity, and synced them with ffmpeg, since CamStudio can't record audio on my computer. Would be nice to conveniently share game clips.)


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

#73 2016-08-28 20:46:26

ShantyTown
Member
Registered: 2013-12-04
Post 317/344

Re: GSC Music Covers (with code)

Mmmmmm wrote:

Do you think it sounds better like this?
https://soundcloud.com/mmmmmmmmmmmmmmmm … val-errata

I do.

Rangi wrote:

(Anyone know of some good free software for Windows 8 to record an emulator like VBA or BGB? I recorded the video with CamStudio, the audio with Audacity, and synced them with ffmpeg, since CamStudio can't record audio on my computer. Would be nice to conveniently share game clips.)

OBS is what you want: https://obsproject.com/

Offline

#74 2016-08-28 23:20:58

Mmmmmm
Member
From: West Virginia
Registered: 2015-05-17
Post 85/261

Re: GSC Music Covers (with code)

Alright then, the xyrival.asm file was changed accordingly, though I'm too lazy to do a rerecording for now.

Last edited by Mmmmmm (2016-08-28 23:21:18)

Offline

#75 2016-09-03 04:12:07

Rangi
Member
Registered: 2016-05-09
Post 151/870

Re: GSC Music Covers (with code)

Thanks for the reference, ShantyTown.

Mmmmmm, here's another track that I think would sound good in GSC: B2/W2's White Tree Hollow. (Gen 5 had a lot of good music IMO, although part of that is of course the better instruments.)


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

Board footer

Powered by FluxBB