Discussion:
Bug? Shuffle not randomized?
Paul Kramer
2011-04-16 00:43:05 UTC
Permalink
Hello,

I noticed that when I toggle Shuffle off and on again, the
playlist/library is shuffled the exact same way. The expected behavior
would be to reshuffle it on each toggle.

Two more ideas:

I would like to see a "random" feature, the difference to shuffle being
that after each song the next one is chosen randomly. (E.g. You play
song X then move forward, play song Y. After moving back to X and
forward again, it should then play song Z.)
I know of players that have both a shuffle and a random feature. I would
really like to see this here.

Also a separate option to shuffle the play queue would be nice. I often
push 10 songs I would like to hear next to the queue, but I don't want
to play them in order.

Regards,
Paul
Johannes Weißl
2011-04-17 03:40:34 UTC
Permalink
Hello Paul,
Post by Paul Kramer
I noticed that when I toggle Shuffle off and on again, the
playlist/library is shuffled the exact same way. The expected behavior
would be to reshuffle it on each toggle.
I almost never use shuffling, so I don't know what the expected behavior
would be. Can others comment on this? There has been discussion about
shuffling being broken in cmus in the past...
Post by Paul Kramer
I would like to see a "random" feature, the difference to shuffle being
that after each song the next one is chosen randomly. (E.g. You play
song X then move forward, play song Y. After moving back to X and
forward again, it should then play song Z.)
I know of players that have both a shuffle and a random feature. I would
really like to see this here.
Hmm, probably it's my fault but I don't understand how this "random"
feature works. Can you explain it more detailed?
Post by Paul Kramer
Also a separate option to shuffle the play queue would be nice. I often
push 10 songs I would like to hear next to the queue, but I don't want
to play them in order.
I think the display order of songs in the play queue should always match
the playback order. How about a script that enqueues songs randomly?
E.g.:

#!/bin/bash
(for x in "$@" ; do echo "add -q $x" ; done | sort -R | cmus-remote) &

You can also bind it to a key, e.g. ctrl-e to enqueue randomly:
:bind -f common ^E run cmus_queue_randomly.sh

Does this solve your problem?


Johannes

Loading...