teticio / Deej-AI

Create automatic playlists by using Deep Learning to *listen* to the music.
GNU General Public License v3.0
334 stars 52 forks source link

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

Open AlfredJKwack opened 1 month ago

AlfredJKwack commented 1 month ago

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.

teticio commented 13 hours ago

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