AutoStepper icon indicating copy to clipboard operation
AutoStepper copied to clipboard

option to use detected song length

Open sketchbook22 opened this issue 2 years ago • 3 comments

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"

sketchbook22 avatar Jan 11 '23 15:01 sketchbook22

Did anyone try this?

mrlazygreen avatar Jan 07 '24 13:01 mrlazygreen