phr00t / AutoStepper

Java tool to automate StepMania SM generation. Complete generation with banner & background art, all difficulty levels, multiple beat detection methods etc.
http://www.phr00t.com/
114 stars 23 forks source link

option to use detected song length #23

Open sketchbook22 opened 1 year ago

sketchbook22 commented 1 year ago

By default you use 90 seconds as the duration, which in many cases might be good. However if I have a whole folder of songs that I would like to use the entire song, it would be nice if I could tell it to use the detected song length.

I have an idea of what the code change would be.

example command java -jar AutoStepper.jar input="./songs/" duration=-1

src/autostepper/AutoStepper.java line 285

float songTime = stream.getMillisecondLength() / 1000f;
if( duration == -1f ) duration = songTime;

side note: your readme file says "common line with arguments" I'm nearly certain it should say "command line with arguments"

mrlazygreen commented 9 months ago

Did anyone try this?