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
    4
    arrow-down
    2
    ·
    14 hours ago

    That is like a 10 5 line bash script? Well a little more but not much.

    • solrize@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      13 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
          ·
          9 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.