Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Thomas Buck 3476d2c27e add copyright for phschoen пре 10 месеци
.gitignore misguided attempt at image rendering пре 10 месеци
Makefile do rotation animation in script instead of makefile пре 10 месеци
README.md move setup instructions to readme пре 10 месеци
osci-pi.py add copyright for phschoen пре 10 месеци
osci.service move setup instructions to readme пре 10 месеци
render.py do rotation animation in script instead of makefile пре 10 месеци
toolbox.svg split toolbox logo svg into two paths. render them both, to try to remove connection line. does not work perfectly yet. пре 10 месеци
zeppelin.svg wolf: add zeppelin пре 10 месеци

README.md

Osci Music Player

Please see my blog post for more details.

Oscilloscope Music Player for Raspberry Pi. Tested with a Pi Zero 2 W, connected to a HiFiBerry DAC+ Zero, running Raspberry Pi OS (Legacy, 32bit) Lite. Powered by PiSugar 2 and their Python API.

Also includes a simple script to convert single SVG paths to audio. Run the included makefile to convert the SVG files in this directory.

Quick Start

Prepare a SD card with the Raspbian as linked above. Then run the following commands.

sudo sh -c 'echo "dtoverlay=hifiberry-dac" >> /boot/config.txt'
sudo apt-get update
sudo apt-get install python3 python3-pip python3-pil libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libopenjp2-7 libtiff5 ffmpeg git vim
curl http://cdn.pisugar.com/release/pisugar-power-manager.sh | sudo bash
pip install pisugar
pip install luma.oled
pip install psutil
sudo usermod -a -G spi,gpio,i2c $USER
cd ~
git clone https://git.xythobuz.de/thomas/osci-music-player
sudo cp osci-music-player/osci.service /etc/systemd/system/osci.service
# edit username in /etc/systemd/system/osci.service as needed
sudo systemctl daemon-reload
sudo systemctl enable osci.service
sudo reboot

To quickly test new changes to the script:

ssh osci-music "sudo systemctl disable --now osci.service" && scp osci-pi.py osci-music:~/osci-music-player && ssh osci-music "sudo systemctl enable --now osci.service"

License

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

See <http://www.gnu.org/licenses/>.