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
      0
      ·
      6 days 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
          0
          ·
          5 days 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.