Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an arbitrary number of playlists with a random seed #118

Open
AlfredJKwack opened this issue Sep 14, 2024 · 1 comment
Open

Create an arbitrary number of playlists with a random seed #118

AlfredJKwack opened this issue Sep 14, 2024 · 1 comment

Comments

@AlfredJKwack
Copy link
Contributor

For anyone playing around with Deej-AI.

I've found it may be useful to generate a number of playlists from random music tracks in your library. If you find it tedious to type out long strings of paths and pick playlist names etc. Feel free to use the random DJ Playlist script I posted on Github's gist

Here's the description

 _____           _              ____     __    _____ _         _ _     _
| __  |___ ___ _| |___ _____   |    \ __|  |  |  _  | |___ _ _| |_|___| |_
|    -| .'|   | . | . |     |  |  |  |  |  |  |   __| | .'| | | | |_ -|  _|
|__|__|__,|_|_|___|___|_|_|_|  |____/|_____|  |__|  |_|__,|_  |_|_|___|_|
                                                          |___|

Create one or more Deej-AI playlists by randomly selecting a track from a root
directory and its subdirectories.

Usage:
  ./rand-playlist.sh [--options] [<arguments>]
  ./rand-playlist.sh -h | --help

Options:
  -h --help             Display this help information.
  -r --root-directory   Directory to search for tracks. [ Required ]
  -p --playlist-count   Number of playlists to create.  [ Default = 1 ]
  -e --file-extension   File extenstion to match for.   [ Default = ".mp3" ]
  -s --playlist-length  Number of tracks in playlist.   [ Default = 40 ]
  -n --noise            Deej-A.I noise option.          [ Default = 2 ]
  -p --pickles          Deej-A.I pickles option.        [ Default = "Pickles" ]
  -m --mp3tovec         Deej-A.I mp3tovec option.       [ Default = "mp3tovec" ]

Example:
  ./rand-playlist.sh -r "./some path/to music" -p 10 --file-extension ".flac"

Output: 
  The script will create one or more .m3u files at the <root_directory> 
  The names of the playlists will follow this format: 
    for a root directory "./some path/to music"
    a random track found at "./some path/to music/my band/my album/track1.mp3"
    will generate a playlist named "my_band-rand-playlist.3mu"

Enjoy.

@AlfredJKwack AlfredJKwack changed the title Create an arbitrary number of playlist with a random seed Create an arbitrary number of playlists with a random seed Sep 14, 2024
@teticio
Copy link
Owner

teticio commented Oct 14, 2024

Hey, thanks for this! I will leave it open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants