Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

randomize usb-stick audio for players that won't shuffle

Jul
278
7
Tired of bluetooth speakers that won't play the contents of a usb stick in shuffle order? Why not prefix each song with a random 4 digit number?

fix the problem in TCC by randomizing the filesort via prepending a 4-digit random number:

Code:
set filemask_audio=*.mp3;*.wav;*.rm;*.voc;*.au;*.mid;*.stm;*.mod;*.vqf;*.ogg;*.mpc;*.wma;*.mp4;*.flac;*.snd;*.aac;*.opus;*.ac3

    for /a:-d /h %audiofile in (%filemask_audio%) echo mv /Ns "%audiofile" "%@FORMAT[04,%@RANDOM[0,9999]]_%@REREPLACE[[0-9]*[\-_]+ *,,%audiofile]"


looks kinda like this [without the color/formatting]:
1717605847260.png
 
My fancier looking version is on my github (look for batfile starting with "renumber")
1717614959432.png
 
Hi, I also advise you to use playlists.

Naive of you to think playlists work everywhere. They don't. Why do you think I had to do this?

But thanks for the unsolicited advice that doesn't solve the problem you haven't personally encountered. You took time out of your day for that.
 
[snipped]

Code:
set filemask_audio=*.mp3;*.wav;*.rm;*.voc;*.au;*.mid;*.stm;*.mod;*.vqf;*.ogg;*.mpc;*.wma;*.mp4;*.flac;*.snd;*.aac;*.opus;*.ac3

    for /a:-d /h %audiofile in (%filemask_audio%) echo mv /Ns "%audiofile" "%@FORMAT[04,%@RANDOM[0,9999]]_%@REREPLACE[[0-9]*[\-_]+ *,,%audiofile]"

While not related to JPSoft products - what is MV please?
 
While not related to JPSoft products - what is MV please?
My bad! THat's just an alias for "move". I like unix stuff to work under non-unix. Let's my brain rest easier.

[To be really technical., mine is an alias that runs to a postprocessor that makes each filename a different color so that i can see the beginnings/ends of long filenames that are wrapped over multiple lines more easily]
 
My bad! THat's just an alias for "move". I like unix stuff to work under non-unix. Let's my brain rest easier.

[To be really technical., mine is an alias that runs to a postprocessor that makes each filename a different color so that i can see the beginnings/ends of long filenames that are wrapped over multiple lines more easily]

Alias mv=move

Maybe post what MV is actually equal to please
 
@AnrDaemon @lizayong

About the post from Claire (@ClioCJS):

As she said: playlists are NOT always a solution! I have a special device here in LAN, which I use also for music files (streaming) and unfortunately it can't handle SUCH playlists. But else it's a very good solution for me personally.

So, the post IS useful!
 
Back
Top
[FOX] Ultimate Translator
Translate