Longplayer in Python
Longplayer is a thousand year long musical composition by Jem Finer.
This is an open-source implementation of Longplayer in Python, which can be run on any compatible computer with audio output.
For more information about Longplayer, read an overview of the piece.
Requirements
- A Linux (including Raspberry Pi), macOS or Windows system with audio output
- Python 3.9 or above (python.org)
Installation
If you're using Linux (including Raspberry Pi), you will need to install the portaudio library for audio output: sudo apt install libportaudio2
To install Longplayer from the command line, for any platform, open up a terminal session and enter:
pip3 install longplayer
Usage
To run Longplayer from the command line, run:
python3 -m longplayer
Press Ctrl-C to stop playback.
Troubleshooting
If you are hearing stuttery playback, try:
- increasing the audio buffer size:
python3 -m longplayer --buffer-size 4096 - mono (single-channel) playback:
python3 -m longplayer --channels 1
To see all of the command-line options: python -m longplayer --help
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file longplayer-0.2.0.tar.gz.
File metadata
- Download URL: longplayer-0.2.0.tar.gz
- Upload date:
- Size: 62.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ca20810696363ea9928a30d791426bd15a0b12e271514fc2dd4a09b24bde590
|
|
| MD5 |
b53da8d6bb3d8268d763f631b08a1710
|
|
| BLAKE2b-256 |
ab3b789f8131f4bb487e5970235eb0688d85c1a620f97751bdc0e3fee6fd6880
|