Schedule music to play in the background
Project description
background-music
Schedule music to play in the background. Cron for music.
Detects changes to the config file immeidately. Plays music with pygame. AI-generated and unreviewed - but I use it.
Motivation
Plan the music you want to play ahead of time so you actually listen to it. Idem vs ipse vs attention.
I don't like having to mess with my phone to play music because it a distraction machine. An alternative to algorithms.
I have this running on a raspberry pi 2 with a usb a dongle.
Alternatives and prior work
There is a tool called musicron focused on playing projects. I could not find the home page.
cmus is a command line tool which has a playlist and a remote contro.
You could use spotify and just play music with algorithms or use your phone.
Installation
pipx install background-music
Usage
Write config ike so
9-10 file.wav
10-11 random:file2.wav,file3.wav
11-13 paylist.txt # work through the playlist
13-14 random:playlist.txt
Mon 18:30-18:40 monday.wav
Tue 18:30-18:40 monday.wav
Then run: bgmus config
continuing - keep on playing through a playlist or direction between different sessions
continuing+random - keep on playing through a playlist then randomize until the session ends.
Hacking
I encouraage your to fork this and call it bgmusic-something. You can then tell me about this fork on github as a PR and I will loot your features :D and cite you.
About me
I make tools for reading and agency.
I also mess around with music and music technology and home automation in my spare time. If this sounds interesting you might like to check out r/musicaltreadmilldesk about my music desk.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file background_music-2.2.4.tar.gz.
File metadata
- Download URL: background_music-2.2.4.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49f10f4e9ce112c5fc75f83ec6c24069afd3f99789ae7cc3d3c8f1c6b75abf97
|
|
| MD5 |
7cbc78598cf8a81cc3ae02e0e164bd44
|
|
| BLAKE2b-256 |
d8e6f7b2f68ce850036e0a23507cd810581504b25c930406efc89a5453f65060
|
File details
Details for the file background_music-2.2.4-py3-none-any.whl.
File metadata
- Download URL: background_music-2.2.4-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1883ae67851bfa55fcf7388a9389e3f82efb33095aa75c39b095016e7c763bce
|
|
| MD5 |
e6029b5e26934bd169eff51a7b304ee5
|
|
| BLAKE2b-256 |
c570a2585d3dbb5429813cd3e312d5906077cd9af2815802769f3655f79804bc
|