Disable looping on minigsf files? by OoPpEe at 8:49 PM EDT on August 11, 2011
I know you didn't do the plugin, however last question I had; I got good answers that solved my issue - whereas others just gave me a runaround or no replies at all.

I ripped some music from a GBA game, I already got it in minigsf format. My issue now is it loops infinitely, I want it to just play once and then stop.

Is there a automatic way to find where it loops and stop it there? I am doing the manual way right now, but a automatic would be so much easier and better.
by Dais! at 9:19 PM EDT on August 11, 2011
I may be wrong, but I don't believe any xSF format actually stores timing information as "loops". Rather, the applications that are used to time the (mini)xSF files detect the loops, then time them based on how their options are set at that point.

So, I think you should be able to do it by:

1. Grabbing GSFopt: http://www.zophar.net/utilities/rippers/gsfopt.html

2. Stick it in the folder with the minigsf files

3. Go to a command prompt and do "gsfopt -t -L 1 -T -F 0 {gsf files you want to do go here}"

That tells it to -t(ime) it, set it -L(oop) once, -T(ag) it with the time and set it to -F(ade) for zero seconds.

(note the above does *not* optimize the gsflib file)

Given the fact that most songs are meant to loop infinitely when necessary, you'll probably still get a half-second or two of the next loop (which can obviously being manually tweaked) and you can't insert any silence into the playing of the minigsf. Unfortunately, I'm pretty sure that's as close as you can get as long as it's still a xSF file (as opposed to writing it to a wav or mp3 or something).

edited 9:19 PM EDT August 11, 2011
by OoPpEe at 11:52 PM EDT on August 12, 2011
Thanks! It gave me the exact length the track was before it looped again :)
Did notice some tracks have a part that doesn't ever play again.
Serious Sam's Title track is a example. It has a intro, then it plays the track when it loops it loops from a certain point of the song (skipping the intro part which is part of the original track). So that part I have to do manually - however knowing the EXACT part the loop happens makes this very easy to find :D
by TheUltimateKoopa at 8:57 PM EDT on April 17, 2012
Sorry for bumping this, but ... how accurate is this?

I was wondering, because I tried it with Mario Kart: Super Circuit, and it has some very odd loops.

I typed "gsfopt -t -L 1 -T -F 0 -V 200 *.minigsf" so that it, obviously times it for 1 loop with no fade, and... checks 200 loops or something, and it says for example:
Title = 6:57.763
Yoshi Desert = 2:50.080

And sometimes, QR Results says the loop is 3:35 or something.

Is the Title really that long? The only guess is it has some secret tune, like how Totaka's Song is hidden in games that he worked on.


Go to Page 0

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source