Skip to content

option to use detected song length #23

@sketchbook22

Description

@sketchbook22

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions