I wish there was a good looping software that good take any song and cut the perfect infinite loop of it automatically.

  • solrize@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    11 hours ago

    Ok 6 lines (untested):

    while true; do
      album=$(ls albums | shuf -n 1)
      for song in $(ls albums/$album/*.mp3 | shuf); do
         mplayer $song
      done
    done
    
      • solrize@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        7 hours ago

        The first pipe to shuf chooses a random album and the second randomizes the order of the songs on that album. I thought that is what OP had asked for.