Top 3 Awesome Posts by # of thumbs up over past 24 hours

Moderators:

  • JeffMan
  • And our supermoderators and administrators.

Mr. Saturn sprite Music editor (new version out)

sprite Goplat

  • fun
  • dragon
  • pkhack
  • walkthrough
I made a music editor for EB. This should make adding customized music to hacks a lot easier than using a hex editor, since you can test your music without having to go through the whole process of saving it, loading the modified rom into the emulator and playing it there.

Edit: looks like the board truncated it, reuploading.
Edit again: still broken. Added some crap on the end so hopefully the board will just remove it and leave the actual file data alone.

Attachments:

http://plo.fobby.net/notalentjewvatar.png

American Cavy Breeders Assoc. Member

  • donor2
  • fanvatar2
  • starman
  • fangamerHCP
  • ch1
  • mafia
incredible.... how long did this take you?

sprite Blazingwolf

    This allows you to add ANY music?

    sprite Goplat

    • fun
    • dragon
    • pkhack
    • walkthrough
    notalentjew wrote on Tue, 20 December 2005 11:30
    incredible.... how long did this take you?


    Well, the first part I made was the player, which I started on Nov 16 (5 weeks ago); I started working on the actual editor on Nov 29 (3 weeks ago).

    Blazingwolf wrote on Tue, 20 December 2005 11:31
    This allows you to add ANY music?


    Any music you have enough patience to make, sure. Smile

    :D

    aka colondee aka :D

    • tofu
    • resub
    • devteam
    • blacksesame
    Invalid archive? :x

    • hardtrivia1
    • fun
    • dragon
    • aoe
    • boxes
    • donor5
    • pkhack
    • devteam
    • DINO RAMPAGE!
    Holy. Fricking. Crap.

    Goplat, you are amazing. Just amazing. This is the coolest thing since sliced bread. No, this is cooler than sliced bread. Sliced bread hangs its head in shame at the mere mention of this awesomeness.

    Seriously, while we were all talking about how cool it would be to make a music editor with our newfound knowledge, you went out and did it. Good job, dude.

    sprite Blazingwolf

      Unexpected end of archive...

      CRC failed file is corrupt.


      Messages from WinRAR.... Sad

      sprite Goplat

      • fun
      • dragon
      • pkhack
      • walkthrough
      Blazingwolf wrote on Tue, 20 December 2005 13:39
      Unexpected end of archive...

      CRC failed file is corrupt.


      Messages from WinRAR.... Sad


      This forum truncated off the last 4 bytes of it originally, try redownloading it.

      I had to fight 128 JeffMans to get the Video Relaxant

      • dragon
      • donor5
      • pkhack
      • nerd
      • 1128
      • artistorm
      • poe
      • walkthrough
      • hax
      • boxes
      HOLY CRAP AWESOME

      Radioactive!

      Steals honey like your bike

      • fun
      • dragon
      • donor2
      • pkhack
      • poe
      • fanvatar2
      • ff
      • walkthrough
      • ch1
      • starman
      • artspot
      • kcahkp
      • fangamerHCP
      • patrick
      • ghostofstarman
      • DINO RAMPAGE!
      • Invisiguy
      GOPLAT THIS IS THE BEEST CHEEZE WHIZ EVER

      OF COURSE THIS MEANS THAT MANUALLY MAKING THOSE HEX MUSIC HACKS FOR MY HACK WILL SOON MEAN LITTLE TO NOTHING

      THIS IS RAD YOU ARE AWESOME

      sprite Blazingwolf

        Goplat wrote on Tue, 20 December 2005 13:55
        Blazingwolf wrote on Tue, 20 December 2005 13:39
        Unexpected end of archive...

        CRC failed file is corrupt.


        Messages from WinRAR.... Sad


        This forum truncated off the last 4 bytes of it originally, try redownloading it.


        I get the same error.

        • hardtrivia1
        • fun
        • dragon
        • aoe
        • boxes
        • donor5
        • pkhack
        • devteam
        • DINO RAMPAGE!
        Well, after seeing this sheer awesomeage, I just had to try it out. A couple hours of labor later, I give you... well, this, which may very well be the coolest music hack to date. Wink

        Apply this patch to a 4MB ROM, start it up, and start a new game (i.e., go to the character naming screen). You should suddenly feel compelled to stack some blocks... or maybe, in Soviet Russia, blocks stack you!

        Korobushka.bgm is a file produced with the editor's "Export Song" option, so you can import it into your ROM if you want. Be warned, though, it's fairly large, and I'm pretty sure I overwrote some other music data when I saved this one; the game crashes if you try to go past the naming menu. Still, this is frickin' sweet.

        sprite Goplat

        • fun
        • dragon
        • pkhack
        • walkthrough
        MrAccident: You're supposed to type the file offset to save the pack at in the editbox left of "Save Pack", not the SPC address.

        sprite Blazingwolf

          Well it still doesn't seem to work for me. Could it be WinRAR?

          sprite Goplat

          • fun
          • dragon
          • pkhack
          • walkthrough
          I'll try uploading it as a rar file, maybe that will work better.

          Attachments:

          sprite Blazingwolf

            It still gives me a file corrupt, end of archive message.

            Thanks though for trying to help. I appreciate it.

            I guess I'll have to miss out on the music hacking.

            sprite banana_man_sweet

              Man your are awesome. I always wanted to put some gnr in my hack.

              you truly are the king of kings

              sprite Greyn

                what would be the appropriate files to use? like the ones of of overclocked.com?

                • hardtrivia1
                • fun
                • dragon
                • aoe
                • boxes
                • donor5
                • pkhack
                • devteam
                • DINO RAMPAGE!
                Goplat wrote on Tue, 20 December 2005 15:21
                MrAccident: You're supposed to type the file offset to save the pack at in the editbox left of "Save Pack", not the SPC address.

                Ohhh. That explains it. That knowledge will be useful in the future. Razz

                Greyn wrote on Tue, 20 December 2005 17:48
                what would be the appropriate files to use? like the ones of of overclocked.com?

                I'm not quite sure what you mean; it's not possible to just import music files. You have to write the music yourself, in EB's music format. It's basically like writing control codes now; kind of tedious, but not really too hard once you get the hang of how the various parts work together.


                For all of you who've been having problems downloading the attachment, I've uploaded the music editor to the PK Hack site. Try downloading it here:

                http://starmen.net/pkhack/pk_junk/util/ebmused.zip


                EDIT: By the way, Goplat, what's up with the "*x,y" syntax I see in a lot of the tracks? I'm guessing it has something to do with the subroutines, but it doesn't seem to be explained in the help document.

                sprite michael_cayer

                pkhack

                • eb0hack
                • ch4
                • hax
                More music! As with MrA's patch, apply this to a 4 MB rom and go to the naming screen. The music is "Daisy Bell".

                Useless trivia: "Daisy Bell" was among the first pieces of music to be played by a computer - as early as 1961, on an IBM 7094 at Bell Labs.

                sprite Goplat

                • fun
                • dragon
                • pkhack
                • walkthrough
                MrAccident: *x,y is a subroutine call. It means to call subroutine x, y times. The reason for the weird syntax is you can't use [EF] directly since you don't know what the address of the subroutine will be before the song is compiled.

                sprite Jeff the player

                • artistorm
                • walkthrough
                So could we put any music? Or does it have to be custom made in music editor? Umm I can't get it to work it says no files to extract.

                sprite EBPlayer1028

                  Like Mr. A said, you have to make it. I imported it, but I found out later (from people in #pkhax) that you can't import anything; you have to make it from scratch.
                  Oh, wait, scratch that.

                  sprite NLA

                  • pkhack
                  Wowzers. Just, wowzers. Now, none of us have full excuses not to make full hacks anymore, time to get to work. Smile

                  Excellence, Goplat.

                  sprite Cat Lover

                    Did Goplat have a PK Hack badge before? If so, give him another one!

                    sprite Blazingwolf

                      Ah it works now, it all seems strange to me. When I try to play it some something about SRC file missing or something like that. Do I just put hex values in their and press play to hear it?

                      sprite EBPlayer1028

                        The source file is missing? (SRC stands for source) I think you have to redownload it.

                        BTW, it says 400200 is a bad offset when saving. And it doesn't play the codes I insert Sad
                        Oh, wait, scratch that.

                        sprite Goplat

                        • fun
                        • dragon
                        • pkhack
                        • walkthrough
                        Blazingwolf wrote on Thu, 22 December 2005 08:58
                        Ah it works now, it all seems strange to me. When I try to play it some something about SRC file missing or something like that. Do I just put hex values in their and press play to hear it?


                        I don't know what a "SRC file" is, are you sure that's the message?

                        EBPlayer1028 wrote on Thu, 22 December 2005 22:57
                        BTW, it says 400200 is a bad offset when saving. And it doesn't play the codes I insert Sad


                        400200 is a bad offset, that's right past the end of the (expanded) ROM.

                        If it won't play a song you wrote but doesn't give any error, it's probably because the song is missing something. At the beginning of the song, you must set the global volume (E5) and the tempo (E7). For each channel you use, you have to set the instrument (E0), panning (E1), channel volume (ED), and note length/style. Also, make sure the pattern order isn't empty.

                        • hardtrivia1
                        • fun
                        • dragon
                        • aoe
                        • boxes
                        • donor5
                        • pkhack
                        • devteam
                        • DINO RAMPAGE!
                        Goplat wrote on Thu, 22 December 2005 22:58
                        400200 is a bad offset, that's right past the end of the (expanded) ROM.

                        Unless the ROM is expanded to 48 megabits... :B

                        sprite Blazingwolf

                          SPC File...

                          sprite EBPlayer1028

                            What about it? I think you only save it as .bgm or something. I tried saving it in SPC, and it was 8 kb and wouldn't play in Winamp.

                            Oh, and yes, it was 48 megabits. (6mb)
                            Oh, wait, scratch that.

                            sprite EB-Freak512mbps

                              You need an spc player..just google it.
                              And songs aren't working..what kind of songs should I import?

                              Radioactive!

                              Steals honey like your bike

                              • fun
                              • dragon
                              • donor2
                              • pkhack
                              • poe
                              • fanvatar2
                              • ff
                              • walkthrough
                              • ch1
                              • starman
                              • artspot
                              • kcahkp
                              • fangamerHCP
                              • patrick
                              • ghostofstarman
                              • DINO RAMPAGE!
                              • Invisiguy
                              EBFreak, SPCs are all a certain size, 64KB or so I think. An 8KB SPC is inconceivable, and point aside to listen to a BGM file, you have to import it into Music Editor and hit Play or Save, depending on whether you want to hear it in the game or in fun.

                              sprite BlueStone

                                Well, I guess that makes my music editor obsolete, eh? Razz Anywho, I haven't had time to work on it because college has been insanly difficult for the past couple semesters. Not to mention my music editor was more of a music viewer.

                                Spooky Mook!!

                                Why do you wear that stupid human suit?

                                • donor5
                                • artistorm
                                • fotw
                                • fanvatar3
                                • ch1
                                • starman
                                • Obama
                                So, wait a minute... you can import songs from other games? Because composing music from scratch is definitely not my thing.
                                Welcome aboard the crazy trip
                                Circle of fools say “hi”

                                sprite EBPlayer1028

                                  It seems like you can only import BGMs. Sad
                                  Oh, wait, scratch that.

                                  • hardtrivia1
                                  • fun
                                  • dragon
                                  • aoe
                                  • boxes
                                  • donor5
                                  • pkhack
                                  • devteam
                                  • DINO RAMPAGE!
                                  Well, naturally. I think if Goplat had written a converter for any other format, he would've mentioned it, as it would have been a formidable challenge, even for a format like MIDI. Importing SPC dumps from other games is absolutely out of the question. Neutral

                                  So, unfortunately, until someone writes a MIDI converter, pretty much the only option is to enter the music manually. It's not really that hard, if you're patient. It only took me a few hours to get the Tetris music in there, and that was the first time I'd even tried to use the music editor at all.

                                  However, there is hope on the horizon for those of you who would rather not deal with a bunch of music control codes. I'm currently working on a graphical frontend for the music editor. It's obviously not very sophisticated or usable at the moment, but it's coming along.

                                  Spooky Mook!!

                                  Why do you wear that stupid human suit?

                                  • donor5
                                  • artistorm
                                  • fotw
                                  • fanvatar3
                                  • ch1
                                  • starman
                                  • Obama
                                  That would most certainly help.


                                  Color me humbled. SHEESH! How the hell do you people do this stuff?!
                                  Welcome aboard the crazy trip
                                  Circle of fools say “hi”

                                  I had to fight 128 JeffMans to get the Video Relaxant

                                  • dragon
                                  • donor5
                                  • pkhack
                                  • nerd
                                  • 1128
                                  • artistorm
                                  • poe
                                  • walkthrough
                                  • hax
                                  • boxes
                                  MrA, add bar lines Sad

                                  • hardtrivia1
                                  • fun
                                  • dragon
                                  • aoe
                                  • boxes
                                  • donor5
                                  • pkhack
                                  • devteam
                                  • DINO RAMPAGE!
                                  All in due time, all in due time. It's not even aligning notes correctly yet, and the spacing algorithm still sucks (though I think I have a solution to that now). In any case, adding bar lines would be problematic. I don't really want to write an algorithm to detect what meter is likely being used, and a lot of tracks would look like crap if I tried to force an arbitrary meter on them, so no bar lines for now. Razz

                                  • hardtrivia1
                                  • fun
                                  • dragon
                                  • aoe
                                  • boxes
                                  • donor5
                                  • pkhack
                                  • devteam
                                  • DINO RAMPAGE!
                                  Whee, double post!

                                  Well, it's 3:20 AM, and I just wanted to share with you guys a little glimpse at what has been the fruit of my labors for the past several hours:

                                  http://starmen.net/pkhack/pk_pixx/music_editor_sexy.png

                                  It's starting to look like something actually usable now. Note how all notes starting at the same time line up correctly, even though additional space is allocated for short notes so the music won't look crowded. It actually took me quite some time to come up with an algorithm that would work properly. It's just so cool to see it at work. Smile

                                  There's still a lot of stuff that will need to be added before this thing is a fully-functional sheet music editor, so I'd like to ask you guys (especially those of you who actually know something about music ;D) what features would be most useful. That is, what stuff should I start working on first? Meter / bar lines are already on the list, by the way, JeffMan. Razz

                                  I had to fight 128 JeffMans to get the Video Relaxant

                                  • dragon
                                  • donor5
                                  • pkhack
                                  • nerd
                                  • 1128
                                  • artistorm
                                  • poe
                                  • walkthrough
                                  • hax
                                  • boxes
                                  Very Happy

                                  Yes, definitely bar lines and bar numbers. If you get extra time, a key signature implementation would be cool too. If you need help with that, just ask me or Gau or something. And did you program rests into there yet?

                                  Blue Antoid

                                  • dragon
                                  • pkhack
                                  Every time I go away you guys do something awesome. XD *sobs quietly*

                                  sprite GlitchCog

                                    Incredible. Seriously, you guys pwn earthbound.smc.

                                    sprite EBisumaru

                                      Heh, key signature. I don't think that's gonna happen, since they're not stored in the music. At least, you wouldn't be able to get one just from the notes very easily. Out of curiosity, though, why are the B and D natural? Isn't that kind of redundant? Also, that song sounds terrible. The last interval is completely awful.
                                      Whoops, forgot to add that this is awesome.

                                      • hardtrivia1
                                      • fun
                                      • dragon
                                      • aoe
                                      • boxes
                                      • donor5
                                      • pkhack
                                      • devteam
                                      • DINO RAMPAGE!
                                      Well, I suppose I could put key signatures in there, though EBisumaru's right; there's no way to read such a thing from the music itself. You would have to put it in manually every time you opened the file. (Unless I decide to use a special intermediate file format, which I just might, actually...)

                                      The B and D are natural only because they're the first notes. Currently the program assigns an accidental symbol to any note that has a pitch offset different than the last one, and that includes the first notes, at the moment. Just lazy programming, and easy to fix. Razz

                                      And yeah, rests are in there, I just haven't added the code to draw them yet. (Just a copy and paste job, really, since I'm using a font to draw musical notation. I had tried reproducing the shapes with Bézier splines, but that was getting annoying.)

                                      sprite Tomato

                                      Translator & PK h4x0r

                                      • MatoSnake
                                      200 points to PKHackindor!

                                      sprite reidman

                                      Wamu!

                                        Wow. MrA, if I had the money, I would hire you. It wouldn't matter for what - paying you money to just think would be the world's best investment.

                                        Totally awesome, I love you PK Hack dudes.

                                        I had to fight 128 JeffMans to get the Video Relaxant

                                        • dragon
                                        • donor5
                                        • pkhack
                                        • nerd
                                        • 1128
                                        • artistorm
                                        • poe
                                        • walkthrough
                                        • hax
                                        • boxes
                                        Hey what about Goplat Sad

                                        sprite Tomato

                                        Translator & PK h4x0r

                                        • MatoSnake
                                        I don't think reid noticed that Mr. A only is only doing the front-end sort of thing. But I'm sure he'll offer goplat 80000 gold bars when next he visits Smile