Sunday, November 10, 2024
A DIY MIDI file player with fluidsynth, pirate audio and Raspberry PI Zero 2
video upload by Floyd Steinberg
"In this video, I'm building a General MIDI file player with a "Pirimoni Pirate Audio" board, a Raspberry PI 2 Zero and Python and FluidSynth. Table of contents:
00:00 demo 01
00:16 hello
00:31 parts needed
01:12 assemble
01:32 install raspbian 32 bit lite
01:53 boot and log in
02:16 install updates
02:31 install the audio board
03:02 install fluidsynth
03:38 install python and libraries
03:56 st7789 libraries and example codes and libopenblas
04:35 enable high priority mode
05:07 upload some midifiles and play back files from the command line
05:39 adding more soundfonts
05:50 a python script for playback control
07:40 you can add your ideas easily ;-)
07:50 conclusion
08:21 demo 02
Links:
Raspberry PI 2 Zero [Amazon DE | Amazon US]
Pirate Audio board: https://shop.pimoroni.com/products/pi...
All command line commands:
Install 32 bit os lite, bookworm or bullseye
ssh to raspberrypi
sudo apt update
sudo apt upgrade
sudo apt install fluidsynth
sudo raspi-config - turn on spi and i2c
sudo nano /boot/firmware/config.txt, add
dtoverlay=hifiberry-dac
gpio=25=op,dh
sudo apt-get install python3-rpi.gpio python3-spidev python3-pip python3-pil python3-numpy
sudo pip3 install pidi-display-st7789
sudo pip3 install pyfluidsynth
sudo apt install git
git clone https://github.com/pimoroni/st7789-py...
cd st7789-python/examples/
sudo apt install libopenblas-dev
python3 scrolling-text.py
sudo nano /etc/security/limits.conf
@audio - rtprio 90
@audio - memlock unlimited
sudo reboot
cd /usr/share/sounds/sf2
sudo wget http://ntonyx.com/soft/32MbGMStereo.sf2
sudo wget https://musical-artifacts.com/artifac...
(Download any MIDI file)
fluidsynth -a alsa -n -i /usr/share/sounds/sf2/FluidR3_GM.sf2 midifile.mid
HÄLP ZIS CHANNEL
https://www.patreon.com/floyd_steinberg
https://floydsteinberg.gumroad.com/
https://floydsteinberg.bandcamp.com/"
PREVIOUS PAGE
NEXT PAGE
HOME
© Matrixsynth - All posts are presented here for informative, historical and educative purposes as applicable within fair use.
MATRIXSYNTH is supported by affiliate links that use cookies to track clickthroughs and sales. See the privacy policy for details.
MATRIXSYNTH - EVERYTHING SYNTH













© Matrixsynth - All posts are presented here for informative, historical and educative purposes as applicable within fair use.
MATRIXSYNTH is supported by affiliate links that use cookies to track clickthroughs and sales. See the privacy policy for details.
MATRIXSYNTH - EVERYTHING SYNTH
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: comments that insult people will be removed. Critique on gear is allowed. Do not ask if listings are still available. Click through auction links to check yourself. Posts and pics remain for historical purposes. To reduce spam, comments for posts older than one week are not displayed until approved (usually same day).