Post by darthslaw on Jan 17, 2008 23:59:38 GMT -5
Overview
In my little endeavors tonight, I finished my SNG to DAT stylesheet that I started back when I used Freetar Editor. It should work as an alternative to converting to midi, exporting format 0 from Anvil, then running a command line option... that's a lot of work after all (I learned some more about math operations in XSL this winter, so I was able to complete it with that knowledge). And just for kicks, I used this to make a SNG to CHART stylesheet also. Hopefully, these will assist the Freetar users out there, or other people with freetar songs lying about.
The Stylesheets
Download here. The zip includes the two stylesheets and two example songs that I did in Freetar Editor (there are two copies of each song, one copy for sng2dat and the other for sng2chart)
Converting the SNG file
With these stylesheets, you can open the SNG file in your internet browser and copy/paste what you see to your song.dat or .chart file. Here is the general procedure for both methods (the only differing parameter is which stylesheet you specify in the SNG file)
For SNG2DAT:
Your song.dat file should now be set up. You will probably need to modify the song and guitar ogg paths. Otherwise, follow any star power / etc tutorials needed to finish the dat.
For SNG2CHART:
Your chart file should now be set up, and you can open it in feedback.
Tweaking the Results
There are several parameters in the XSL stylesheets that are set up for easy modification. These include clicks (per beat), bpm, and (in the SNG2CHART stylesheet) the type of note to snap to (snapnotetype: 48 for 48th notes, 4 for quarter notes, 16 for 16th notes, etc... recommended that you use values supported by feedback)
Finally, let me know if there are any issues with these stylesheets (or if anything is unclear). They seem to work correctly, but there are probably things that I have overlooked.
[Edit]
I think I found a problem that can result in the sng2chart stylesheet... at least if you're using guitar hero explorer to make your midis.
I tried importing a song to ghex (it happens to be the second example song I included) and, though everything worked in Feedback, ghex seems to disregard what the "Resolution" param in the chart header is. So, to avoid this, make sure the clicks variable in the sng2chart xsl is set to 192, the Feedback default value.
It's strange, though, because I'm pretty sure that I've converted other songs with resolution of 480 and they worked fine. Maybe using the "Yes We Can" folder messes it up?
In my little endeavors tonight, I finished my SNG to DAT stylesheet that I started back when I used Freetar Editor. It should work as an alternative to converting to midi, exporting format 0 from Anvil, then running a command line option... that's a lot of work after all (I learned some more about math operations in XSL this winter, so I was able to complete it with that knowledge). And just for kicks, I used this to make a SNG to CHART stylesheet also. Hopefully, these will assist the Freetar users out there, or other people with freetar songs lying about.
The Stylesheets
Download here. The zip includes the two stylesheets and two example songs that I did in Freetar Editor (there are two copies of each song, one copy for sng2dat and the other for sng2chart)
Converting the SNG file
With these stylesheets, you can open the SNG file in your internet browser and copy/paste what you see to your song.dat or .chart file. Here is the general procedure for both methods (the only differing parameter is which stylesheet you specify in the SNG file)
- Open your SNG file in a plain text editor (notepad is fine)
- After the '<?xml version="1.0"?>' line (should be the first line), copy/paste '<?xml-stylesheet type="text/xsl" href="sng2dat.xsl"?>' to the next line. It should then look something like this:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="sng2dat.xsl"?>
<Song>
If you changed the name of the stylesheet file, or are converting to a chart file instead, make sure to change the href attribute appropriately (e.g. href="sng2chart.xsl") - Save your SNG file
- Open your SNG file in an internet browser (Firefox, Internet Explorer, etc)
- Copy/Paste the content of the page to your song.dat file (or your .chart file) and save
For SNG2DAT:
Your song.dat file should now be set up. You will probably need to modify the song and guitar ogg paths. Otherwise, follow any star power / etc tutorials needed to finish the dat.
For SNG2CHART:
Your chart file should now be set up, and you can open it in feedback.
Tweaking the Results
There are several parameters in the XSL stylesheets that are set up for easy modification. These include clicks (per beat), bpm, and (in the SNG2CHART stylesheet) the type of note to snap to (snapnotetype: 48 for 48th notes, 4 for quarter notes, 16 for 16th notes, etc... recommended that you use values supported by feedback)
Finally, let me know if there are any issues with these stylesheets (or if anything is unclear). They seem to work correctly, but there are probably things that I have overlooked.
[Edit]
I think I found a problem that can result in the sng2chart stylesheet... at least if you're using guitar hero explorer to make your midis.
I tried importing a song to ghex (it happens to be the second example song I included) and, though everything worked in Feedback, ghex seems to disregard what the "Resolution" param in the chart header is. So, to avoid this, make sure the clicks variable in the sng2chart xsl is set to 192, the Feedback default value.
It's strange, though, because I'm pretty sure that I've converted other songs with resolution of 480 and they worked fine. Maybe using the "Yes We Can" folder messes it up?