ScoreHero
Home | Forum | Wiki
Inbox [ Login ]Inbox [ Login ]
SearchSearch MemberlistMemberlist
ProfileProfile Log inLog in
world tour (and metallica) parser .41
Goto page 1, 2  Next
 
Post new topic   Reply to topic    ScoreHero Forum Index -> Software
View previous topic :: View next topic  
Author Message
mrwulff34  





Joined: 24 Oct 2008
Posts: 32

PostPosted: Mon Nov 24, 2008 10:13 am    Post subject: world tour (and metallica) parser .41 Reply with quote

edit for 4/5:
you can also use this with gh:metallica
http://img6.imageshack.us/my.php?image=mercyfulfatepakngc.jpg


--back to your regular post-----


[bug/help]
So i found a setting in the charts called resolution. is this anyway related to anything in the mid? do you have to mess around with it or is there a formula like average bpm*60 or something weird like that




New! version .41 (12/1)
http://pastebin.com/f3c352181
minor bug fixes (thanks borgir33)

=========================
Old versions
version .4: (11/26)
http://pastebin.com/f7a87d26b
(1) introducing ps2 support. although you need to toggle it each time you run the program, so don't put a mix of different formats in the same directory
(2) proper chart implantation. works with more than just feedback
(3) match accuracy of slowhero.com's charts. resolution anybody?
todo-error handling. as of now it just dies!



version .3:
http://pastebin.com/f33978d84 (11/25)
(1) .pak support for wii. just export them using scrubber/trucha, no need for a seperate pak extractor

(2)convert whole directory, just drop the .py into the pak folder and run

(3)erased the beginner skill. -whats the point amiright?




changelog:
.2
http://pastebin.com/f7ef06919 (11/23)
fixed bpm

.1
http://pastebin.com/f5548b5df (11/15)
first version.


Last edited by mrwulff34 on Sun Apr 05, 2009 10:21 pm; edited 5 times in total
Back to top
View user's profile Send private message
GameZelda  





Joined: 30 Mar 2007
Posts: 1705

PostPosted: Mon Nov 24, 2008 5:12 pm    Post subject: Reply with quote

I don't understand Phython very well, but what problem are you having finding the [songname]_markers section?

Maybe you're not following the right QB structure, there isn't any good QB spec at this moment, but you can try reading tma's QB doc (pretty old).
_________________
(Ok, I failed to do it in 24 hours... ).

GH:WT-PS2 Customization Progress
[100%] Make it work (w/songs loading) in a DVD5 (thanks psychospacefish!)
[100%] Modify audio (Finally done 25/11/2008)
[100%] Modify charts (Done 26/11/2008! Customs finally )
Back to top
View user's profile Send private message
mrwulff34  





Joined: 24 Oct 2008
Posts: 32

PostPosted: Mon Nov 24, 2008 6:19 pm    Post subject: Reply with quote

Well really my program is a crude hack of qb, and i really dont understand anything about it.

Right now the program looks for long (arbitrarily at 100 for now) lines of notes (ie 32 bytes of time, 16bytes of notes, and 16 bytes of length) and groups them, then assigns the first set to easy guitar, second one medium guitar, so on and till expert drums. then re-writes them in chart format. that is it.
I have no way of knowing what [songname]_markers is. is it a separate file, or is it in the mid somewhere. what hex code do i look for and what will it look like. Is [songname]_markers in plain text or what?

edit: for some preliminary work i used these:
http://www.slowhero.com/tech/gh3_midi_spec.txt
and http://www.slowhero.com/tech/qb.spec.txt
is that what you were talking about?
Back to top
View user's profile Send private message
mrwulff34  





Joined: 24 Oct 2008
Posts: 32

PostPosted: Mon Nov 24, 2008 11:35 pm    Post subject: still working on bpm Reply with quote

so i found the bpm! thanks to gh_wt_midqb. i guess i should have looked their earlier.

anyway i still dont quite get it yet. for example the first 10 or so 'bpm' have a value of 273. however on slowhero, its listed at 220. I know that the bpm in the mid is in ms and that the slowhero is in minutes so the value in the mid file is .273*60 = 16.38 bpm. not right at all. Im assuming it has something to do with the time signature, but not quite sure how to convert it.

edit:
nevermind its 60/.273
spent like an hour trying to do this
Back to top
View user's profile Send private message
GameZelda  





Joined: 30 Mar 2007
Posts: 1705

PostPosted: Tue Nov 25, 2008 4:52 pm    Post subject: Reply with quote

mrwulff34 wrote:
Well really my program is a crude hack of qb, and i really dont understand anything about it.

Right now the program looks for long (arbitrarily at 100 for now) lines of notes (ie 32 bytes of time, 16bytes of notes, and 16 bytes of length) and groups them, then assigns the first set to easy guitar, second one medium guitar, so on and till expert drums. then re-writes them in chart format. that is it.
I have no way of knowing what [songname]_markers is. is it a separate file, or is it in the mid somewhere. what hex code do i look for and what will it look like. Is [songname]_markers in plain text or what?

edit: for some preliminary work i used these:
http://www.slowhero.com/tech/gh3_midi_spec.txt
and http://www.slowhero.com/tech/qb.spec.txt
is that what you were talking about?


Sorry, I was wrong in my last post, the BPM is not in [songname]_markers, it's in [songname]_fretbars.

You must find a root node/section with the field of the section name that equals to the QBKey of "[songname]_fretbars. QBKey is CRC ^ 0xFFFFFFFF.

EDIT: The content of the [songname]_fretbars section is in ms of every fretbar, to convert it to BPM, do:

Code:
     for (k = 0; k < number_beats - 1; k++)
     {
         bpm_decimal[k] = 60000.0 / (beat_track[k + 1] - beat_track[k]);
     }

_________________
(Ok, I failed to do it in 24 hours... ).

GH:WT-PS2 Customization Progress
[100%] Make it work (w/songs loading) in a DVD5 (thanks psychospacefish!)
[100%] Modify audio (Finally done 25/11/2008)
[100%] Modify charts (Done 26/11/2008! Customs finally )


Last edited by GameZelda on Tue Nov 25, 2008 8:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
basa  





Joined: 10 Nov 2006
Posts: 26

PostPosted: Tue Nov 25, 2008 7:32 pm    Post subject: Reply with quote

Great work, this chart file will be works with Chart2Mid.exe ?
Back to top
View user's profile Send private message
mrwulff34  





Joined: 24 Oct 2008
Posts: 32

PostPosted: Tue Nov 25, 2008 8:35 pm    Post subject: Reply with quote

I'm thinking that it will be in the future, but right now i would like to get started on wouldtour customs, and chart2mid is not compatible, so i will likely have to make my own, unless it is updated soon.
Back to top
View user's profile Send private message
borgir33  





Joined: 09 Apr 2008
Posts: 3

PostPosted: Wed Nov 26, 2008 12:07 am    Post subject: Reply with quote

great progress!!! keep up the good work!
Back to top
View user's profile Send private message
mrwulff34  





Joined: 24 Oct 2008
Posts: 32

PostPosted: Mon Dec 01, 2008 6:35 pm    Post subject: Reply with quote

I fixed the random errors I was having with it. If anybody else finds anything please let me know. Grab it from the first post in the topic

Does anybody know anything about the resolution of a song or should it just be put at 192?
Back to top
View user's profile Send private message
MrFaust  





Joined: 09 Dec 2007
Posts: 26

PostPosted: Tue Dec 02, 2008 5:06 pm    Post subject: Reply with quote

First off, thank you for the work on this. I converted some mid.qb's to chart yesterday and threw them into feedback 0.97b. They run really slow. So after a friend and I got to playing around with this, we figure that if we changed the resolution from 200 to 400 the speed seems to be more accurate. 400 is just a guess right now but it seems to be closer to the real thing. I did Living on a Prayer @ 492 and it starts off great but goes out of sync. Stillborn had to be around 550 but it goes out of sync.

Keep up the great work.
Back to top
View user's profile Send private message
mrwulff34  





Joined: 24 Oct 2008
Posts: 32

PostPosted: Tue Dec 02, 2008 5:32 pm    Post subject: Reply with quote

Well if somebody figures out the magic formula for the resolution i would love to hear it, but i don't see that happening. What's the point of it anyway, because you have time codes on all of the notes, you would think it would just go by that anyway. You also wouldn't think that you would really need bpm either (although it makes the 'speed' of the chart nicer)
Back to top
View user's profile Send private message
scotu  





Joined: 03 Nov 2008
Posts: 6

PostPosted: Tue Dec 02, 2008 6:00 pm    Post subject: Reply with quote

The resolution just allows you to specify 1/nth notes where n can be smaller if your resolution is higher. That's the only thing i see the resolution being good for.

are the timestamps in this file format not based off a beat number, which relies on the bpm?
Back to top
View user's profile Send private message
mrwulff34  





Joined: 24 Oct 2008
Posts: 32

PostPosted: Tue Dec 02, 2008 6:49 pm    Post subject: Reply with quote

notes are are based on the time from the beginning of the song in ms, so for instance in the midi chart it says for example 4 bytes of time, say 120000 (2 minutes), then the fret pattern, in binary it would look like 00011111 for all of the frets and then how long to hold that note for in ms. And in the chart its similar but for chords it just has multiple time lines so it would be like

120000 1 1000
120000 2 1000
120000 3 1000

which as far as i can tell has nothing to do with the bpm or resolution, but when you increase the resolution it clearly has an effect on the speed of the chart
Back to top
View user's profile Send private message
scotu  





Joined: 03 Nov 2008
Posts: 6

PostPosted: Tue Dec 02, 2008 9:22 pm    Post subject: Reply with quote

huh. I guess what I was referring to only applies to the .chart format, i figured they'd be grounded in the same mechanics.
Back to top
View user's profile Send private message
SixStringedBass  





Joined: 14 Jul 2007
Posts: 181

PostPosted: Thu Dec 04, 2008 8:11 pm    Post subject: Reply with quote

MIDI files divide time in ticks or pulses. The resolution defines how many ticks/pulses are given to each 1/4 note. The higher the resolution, the more divisions there are, allowing note placement to be more precise. Standard resolutions are typically 192, 480, or 960. I'll look back at the code (if I can find it) that GZ put together last year and see what he did.
Back to top
View user's profile Send private message XBL Gamertag: SixStringedBass
Display posts from previous:   
Post new topic   Reply to topic    ScoreHero Forum Index -> Software All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Copyright © 2006-2025 ScoreHero, LLC
Terms of Use | Privacy Policy


Powered by phpBB