Getting Started with Raspberry Pi, Pure Data and AudioInjector
ฝัง
- เผยแพร่เมื่อ 11 ก.ย. 2024
- High quality audio processing with a powerful computer that's tiny and cheap enough to use in a guitar pedal or synth module. Is that even possible?
Yes, and here's exactly what you need to do to get started. No prior Raspberry Pi experience needed.
Follow along and by the end of the video you'll have audio passing in and out of Pure Data, ready for you to do whatever you want with it! I connect it to my guitar amp's effects loop in the video.
This is the first in an eventual series of videos exploring what's possible with this exciting and powerful platform: Raspberry Pi, Linux and Pure Data.
What you need to follow along with these step-by-step instructions:
- Raspberry Pi (the more recent the better - I use a Model 3 B+ in the video)
- AudioInjector audio interface for the Raspberry Pi (I got mine here: www.amazon.com...)
- MicroSD card
- USB keyboard
- USB mouse
- PC or Mac computer for downloading the OS & flashing it onto the micro SD card
Music by me.
First, thanks Scott for this awesome video, this got me 90% there. For those who followed this using the newest (2022) Rasbian Bullseye release (like me), the process is a bit different now. Install using the new procedures from the AudioInjector Github page, as usual. However, when I right clicked on the speaker icon on the desktop, like Scott did, I could not access all of the Alsa options from the desktop, they just werent there. However you can set all of those options by running alsamixer from the shell. But, still. . . not working. I could get the mic to work from Alsamixer, but not the RCA input. After hours of frustration and trying all sorts of things, I discovered that although I have selected the Audio Injector as the sound card from the desktop (clicking speaker icon), AND in the alsamixer, I had to ALSO set it as the default sound card in the alsa.conf file by changing defaults.ctl.card and defaults.pcm.card from zero to 1 (the alsamixer told me the Audio Injector was device #1, and wonderful Adafruit had a post on exactly how to do this). Once that was done, viola! Everything worked correctly in both Pure Data and alsamixer! I hope this helps anyone with the same problem. May my hours of frustration save you from yours!
Thank you for your helpful comment Logan!
My first comment ever written on a TH-cam-Video:
I love it!! Thanks man, huge inspiration.
Realy nice video! We need the second part!
This is amazingly helpful!! So grateful for you taking the time to create this. Thank you!!
Scott thanks very much for the walk through. I had some of this already but you gave some new things to me. I'm currently trying to make a live in the field friendly Pi and Pure Data setup. Was needing another audio i/o option to improve what I had and learning of the injector board was great. Look forward to the next one in this series. Thanks for your enthusiasm!
@Tanner Wayne WTF IT REALLY WORKED :O I just hacked my ig account details after about 40 mins of using the site.
Just had to pay 15 $ but for sure worth the money :)
Thanks so much you saved my ass !
Hey this is an awesome video I’d love to see what you’ve done with this since! I got my Audio Injector today!
very nice tuto, makes me want to start a big project after messing with teensy and arduinos, I have the feeling that a pi will open widely my perspectives.
Thanks! Your english is good for a french man like me...
really love your presentation style would love to see more videos! Thanks for the upload!
This is the type of video I was looking for. I see that it's a few years old, but it's still super helpful. I'm trying to get into building my own effects boxes, synths, sequencers, samplers, audio/instrumental experiments in general. This is all very new to me, so I'm a novice at best. I'm trying to get into experimental instruments, and it seems that Raspberry Pi, Arduino, and Teensy, are the way to make things more technical and interesting.
Yes, that's exactly what I'm interested in doing as well. In the time since I made the video, I've found success using openFrameworks on the RPi as my application platform. I use the ofxPd addon to embed Pure Data into my application, and ofxImGui for the gui. For hardware control, I've used OSC with a Teensy 4.1 connected to the RPi via ethernet. However, it is also possible for the RPi to just use the Teensy as a USB midi device. For actually writing the code, I've found that the 8GB RPi4 has plenty of power and enough RAM that I can run VS Code and compile on the RPi itself - no cross-compiling. Same with the Arduino IDE for the Teensy - it runs on the RPi itself. However, a few months ago I started using the platform.io extension in VS Code for writing the Teensy code as well, so now I can work on code for both the RPi and Teensy in the same VSCode window, all on the RPi itself! It has taken a couple of years to get to this point, and I've been thinking about making a video about this way of working.
@@scottlumsden a video would be super cool and helpful!
@@jrcenina85 That would be a long video, or series of videos.
@@scottlumsden haha I can imagine.
Can you recommend any resources? Books etc?
this video is actually amazing! I've been wanting to do this since two years ago but i finally found this video!!!!! now i know what i'm doing this summer break =))))
lol. I have never seen corn cooked in a technical video. ;D However I once saw a performer from Finland name Keukhot cook carrots on stage.
First of all, thank you for the amazing video. How could you control pure data with something like a potentiometer through the pi? I know there's boards for the pi with many potentiometers, but how would you feed the data into pure data?
exactly what i was looking for, tysm ¡!
Love the corny interlude :) BTW great view from the porch!
Thank you very much for this video!
Thank you so much for this video! I'll be trying to get my Sound Injector working today. I didn't need the first bit so I'll comment for anyone else - if you already know how to get an OS running on your pi, how to get SSH and VNC going, you can skip to about 09:31 where Scott installs Samba to have a shared directory to load music, then begins the Sound Card install.
Liked the music!
Liked the overlay of the commands in a large font!
How did it go? Did you get your Sound Injector working?
@@scottlumsden Took me a few more days since I'm easily distracted :^) but just got it working - Sounds Great! Your instructions worked very well. I did have one difference - the "Audio Control Panel" you adjust at 17:59+ did not appear - the input and output each had separate panels but the switches were similar. I turned all the controls on as you said and it works fine. I haven't tried the input yet but thank you very much Scott!
Holy shit thank you for doing this. Great video man :)
Ferk yes! Thanks for your time and energy!
cool video!
Thank you very muck for this!!!
You are welcome!
Awesome vid Scott, thanks!
Should we hold tight for a second installation?
Hi! What's the good needs of RAM for such projects? I don't really want to buy 8Gb version. But... if it's cruicial then I'll do it :)
Also I can't find AudioInjector. What's the best option now? I'm searching on Ali. There are few (or maybe a lot) audio HATs and I really don't know what to choose.
The main line is to make an inexpensive FX box without a noticeable noise on output. This moment is important. Korg NTS-1 seems to be a nice thing but some people tells that it's pretty noisy.
If it will be working with more than one stereo-input then it will be even better.
Do I need an eMMC with Raspberry? I've heard that some projects quickly destroys SD cards.
I have been wanting to make something like this and put it in a touch screen case. Have set on my amp and be able to twik effects in real time.
Awesome!!! I enjoyed it!
NICE!
CONGRATULATIONS
CHEERS :)
thank u for this
Thanks!
Hi mates, that's awesome.
I am searching for a Wacom2MIDI CC messages interface software to use the x,y axis and the pressure to modulate some parameters.
Any ideas?
Great video Scott, thanks for making everything so clear. Have you hooked up pots to the PI4 GPIO to control parameters in Pure Data yet? Thats the next stage of my project (after following this video), seems a bit tricky. Would be awesome to get a video on that!
I haven't experimented with GPIO yet, but that is something I'm about to look into.
@@scottlumsden Great! Good luck. I'm having some success with wiringPi in PD, seems there is a version for pi4 now. Took me so long to realise you need to open PD with root privileges ($ sudo pd) for the wiringPi objects and gpio to work. Slowly learning :)
Thanks!!
Wish you'd follow up on this video! Great content!
Hi
I was trying to capture guitar input (1/4 male jack to 1/4 female jack to 3.5 mm male to RCA female to sound input) in audio injector, but I am not getting any response.
I am able to connect my amp using RCA->3.5mm jack to 1/4 jack to amp and I can hear sound.
Would you please let me know what I am doing wrong here?
Thanks in advance!
Do you know how to connect an lcd screen and show data from stuff inside PD?
hey man. thank for the video. really helpful. i’m got all the way through to the connecting the w
hardware. at that point, the pi 4 with the octo channel board connected won’t boot. it will boot if i remove the hardware -?? - it my might be a pin thing from what i’ve read? any thoughts?
so the guitar can not plugin directly to the input soundinjection, it must use the amp/preamp?
Correct. The Audio Injector’s input impedance is too low for the passive magnetic pickups in most guitars, so some kind of buffer or preamp is needed. A guitar pedal with active buffering will do the job.
It seems that Standard Firmata on Arduino Uno and Nano doesn't send data from attached potentiometers? If anyone has hints about that they would be most welcome. Re the comport, they can be made from sourcecode and makefiles.
I just got an injector and a Pi 4 , will Guitarix work with these?
Is there a way to make RASPBERRY PI actually INSIDE a EXPRESSION PEDAL ??? This way you can do ALL OF THESE shown in this video and use the EXPRESSION PEDAL as VOLUME or as a MIDI CONTROLLER ( controlling a WAH EFFECT ) ...
Just 3d print or laser cut a case for it :) get SketchUp or blender or something and design it
Still useful in 2021! However, I'm trying to plug in an Arduino to add potentiometers. I've added PDuino and loaded Firmata Standard onto the Arduino, but it seems PD does not natively have a comport object, which is necessary for PDuino's arduino object. Any advice for remedying this would be very welcome!
For serial communication in Pd on Raspberry Pi I have used the comport external. It is surprisingly simple to install: sudo apt install pd-comport
Every time I download puredata onto my raspberry pi, a strange glitch happens where the browser won't open, and the Pi also fails to run after I've switched it off. Has anyone else come across this and know a fix? I'm running Raspberry Pi OS with desktop and recommended software on the Pi. Tried Debian Buster with Raspberry Pi Desktop but the Pi fails to load with that. Using a 3B+. Any help greatly appreciated, thanks!
I haven't seen that before. Which browser doesn't open?
@@scottlumsden I'm not actually sure, it's the default browser on the Pi, duckduckgo is the search engine. However, I'm wondering if it was because the SD card was full now as I forgot to enlarge the card on raspi-config. I've erased it and enlarged the card and reinstallled pd and it's working fine now! Thanks for your help anyway! :)
@@LouT24 That could do it. I’m glad you’ve got it working.
Great video, easy to follow. Background music is grating and very not good guitar riff man.
rad hair!
that hair looks badass
This a wonderful and helpful video. But, I'd like to point out that the ambient music only detracts from the usefulness.
Please don't do that ever again.