test with plugdata

This commit is contained in:
deflax 2025-08-25 12:46:36 +00:00
parent 5525dfff4d
commit 8981111193
5 changed files with 20 additions and 36 deletions

View file

@ -1,8 +1,8 @@
1. Execute the `prepare-image.sh [image]` script as `root` where `[image]` is the url to raspiOS.
2. Flash the `vcpi.img.xz` with for example Balena Etcher to a SD Card
2. Flash the `vcpi.img` to SD card. You can use Rpi Imager to set additional settings like wifi.
3. Boot Rpi on DHCP enabled network. The boot script should run `setup.sh` on first boot.
3. Boot Rpi on DHCP enabled network. The boot script should run `setup.sh` on first boot and reboot the system when its done.
4. Login using user: `pi` pass: `vcpi`

View file

@ -1,20 +0,0 @@
# Coded by Sam Aaron
load_samples(sample_names :ambi)
sleep 2
with_fx :reverb, mix: 0.8 do
live_loop :foo do
# try changing the sp_ vars..
sp_name = choose sample_names :ambi
# sp_name = choose sample_names :drum
sp_time = [1, 2].choose
#sp_time = 0.5
sp_rate = 1
#sp_rate = 4
s = sample sp_name, cutoff: rrand(70, 130), rate: sp_rate * choose([0.5, 1]), pan: rrand(-1, 1), pan_slide: sp_time
control s, pan: rrand(-1, 1)
sleep sp_time
end
end

View file

@ -46,7 +46,7 @@ ln -v -s /lib/systemd/system/payload.service /tmp/rpi-img/etc/systemd/system/gra
#provision project files
cp -v ./src/setup.sh /tmp/rpi-img/root/setup.sh
cp -v ./patch/init.rb /tmp/rpi-img/root/init.rb
cp -v ./patch/init.pd /tmp/rpi-img/root/init.pd
echo "] press enter to write the image"
read

View file

@ -6,8 +6,8 @@ Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/pi/.Xauthority
User=pi
Group=pi
ExecStartPre=/bin/sleep 60
ExecStart=/opt/sonic-pi/bin/sonic-pi
ExecStartPre=/bin/sleep 30
ExecStart/usr/bin/plugdata /home/pi/init.pd
Restart=always
RestartSec=10s
KillMode=process

View file

@ -1,16 +1,18 @@
#!/bin/bash
# set opensuse raspbian repo for plugdata
echo 'deb http://download.opensuse.org/repositories/home:/plugdata/Raspbian_12/ /' | tee /etc/apt/sources.list.d/home:plugdata.list
curl -fsSL https://download.opensuse.org/repositories/home:plugdata/Raspbian_12/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/home_plugdata.gpg > /dev/null
# upgrade system
apt-get update
apt-get upgrade -y --autoremove
apt-get upgrade -y
# setup apps
apt-get install htop wget -y
apt-get install htop wget curl -y
# setup sonic-pi
wget https://sonic-pi.net/files/releases/v4.6.0/sonic-pi_4.6.0_1_bookworm.arm64.deb
dpkg -i sonic-pi_4.6.0_1_bookworm.arm64.deb
apt-get --fix-broken install -y
# setup plugdata
apt-get install plugdata
# setup udev
echo "SUBSYSTEM==\"usb\", ENV{DEVTYPE}==\"usb_device\", MODE=\"0666\"" > /etc/udev/rules.d/50-udev-default.rules
@ -21,14 +23,16 @@ ufw allow ssh
ufw enable
# deploy patch
mkdir -vp /home/pi/.sonic-pi/config/
mv -v /root/init.rb /home/pi/.sonic-pi/config/init.rb
chown -R pi:pi /home/pi/.sonic-pi
chown -R pi:pi /home/pi/.sonic-pi/config
mkdir -vp /home/pi/
mv -v /root/init.pd /home/pi/init.pd
chown pi:pi /home/pi/init.pd
# cleanup
mv /root/setup.sh /root/setup.sh.done
chmod -x /root/setup.sh.done
echo "done :)"
# reboot and exit
reboot
exit 0