Getting Started with Raspberry Pi, Pure Data and AudioInjector

Sdílet
Vložit
  • čas přidán 13. 08. 2019
  • 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/gp/product/B01...)
    - MicroSD card
    - USB keyboard
    - USB mouse
    - PC or Mac computer for downloading the OS & flashing it onto the micro SD card
    Music by me.
  • Věda a technologie

Komentáře • 64

  • @tilmanpatzold7474
    @tilmanpatzold7474 Před 3 lety +3

    My first comment ever written on a CZcams-Video:
    I love it!! Thanks man, huge inspiration.

  • @loganwilliams9723
    @loganwilliams9723 Před 2 lety +4

    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!

    • @scottlumsden
      @scottlumsden  Před 2 lety

      Thank you for your helpful comment Logan!

  • @derickdowney6992
    @derickdowney6992 Před 3 lety +3

    This is amazingly helpful!! So grateful for you taking the time to create this. Thank you!!

  • @TehSyneS
    @TehSyneS Před 2 lety

    really love your presentation style would love to see more videos! Thanks for the upload!

  • @andrak5946
    @andrak5946 Před 4 lety +4

    Realy nice video! We need the second part!

  • @rrjanik
    @rrjanik Před 4 lety +4

    Hey this is an awesome video I’d love to see what you’ve done with this since! I got my Audio Injector today!

  • @jimgoodinmusic
    @jimgoodinmusic Před 4 lety +3

    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!

    • @anderskamden857
      @anderskamden857 Před 2 lety

      @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 !

  • @fredbob7521
    @fredbob7521 Před rokem

    Thanks! Your english is good for a french man like me...

  • @lomzart
    @lomzart Před 4 lety +4

    Thank you very much for this video!

  • @EricBalcon
    @EricBalcon Před 10 měsíci

    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.

  • @jrcenina85
    @jrcenina85 Před 3 lety

    Ferk yes! Thanks for your time and energy!

  • @zainayk
    @zainayk Před 2 lety

    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 =))))

  • @sweetelena
    @sweetelena Před 2 lety

    exactly what i was looking for, tysm ¡!

  • @MattDiamondMDE
    @MattDiamondMDE Před 3 lety

    Awesome vid Scott, thanks!
    Should we hold tight for a second installation?

  • @maxheadrom3088
    @maxheadrom3088 Před 2 lety

    Awesome!!! I enjoyed it!

  • @Lando00100
    @Lando00100 Před 3 lety

    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.

  • @d3nt391
    @d3nt391 Před 3 lety +4

    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?

  • @JC3D
    @JC3D Před 2 lety

    cool video!

  • @paniproduce
    @paniproduce Před 4 lety +1

    Thanks!

  • @woulg
    @woulg Před 3 lety +2

    Holy shit thank you for doing this. Great video man :)

  • @rndmknbs
    @rndmknbs Před rokem

    thank u for this

  • @freeelectron8261
    @freeelectron8261 Před 4 lety +2

    Love the corny interlude :) BTW great view from the porch!

  • @86frankj
    @86frankj Před rokem

    Thank you very muck for this!!!

  • @CarlosYounes
    @CarlosYounes Před 7 měsíci

    NICE!
    CONGRATULATIONS
    CHEERS :)

  • @wonkyrobot
    @wonkyrobot Před 3 lety

    Wish you'd follow up on this video! Great content!

  • @beatspieces6213
    @beatspieces6213 Před rokem +1

    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.

    • @scottlumsden
      @scottlumsden  Před rokem

      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.

    • @jrcenina85
      @jrcenina85 Před rokem

      @@scottlumsden a video would be super cool and helpful!

    • @scottlumsden
      @scottlumsden  Před rokem

      @@jrcenina85 That would be a long video, or series of videos.

    • @jrcenina85
      @jrcenina85 Před rokem

      @@scottlumsden haha I can imagine.
      Can you recommend any resources? Books etc?

  • @clifffiftytwo
    @clifffiftytwo Před 4 lety

    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!

    • @scottlumsden
      @scottlumsden  Před 4 lety

      How did it go? Did you get your Sound Injector working?

    • @clifffiftytwo
      @clifffiftytwo Před 4 lety

      @@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!

  • @shauncrook5296
    @shauncrook5296 Před 4 lety

    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!

    • @scottlumsden
      @scottlumsden  Před 4 lety

      I haven't experimented with GPIO yet, but that is something I'm about to look into.

    • @shauncrook5296
      @shauncrook5296 Před 4 lety +1

      @@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 :)

  • @finnurjuliusson9635
    @finnurjuliusson9635 Před 4 lety +2

    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.

  • @eDrumsInANutshell
    @eDrumsInANutshell Před rokem

    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?

  • @tnesseth547
    @tnesseth547 Před 3 lety

    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?

  • @davesnyder7094
    @davesnyder7094 Před 4 lety

    I just got an injector and a Pi 4 , will Guitarix work with these?

  • @KiR_3d
    @KiR_3d Před rokem

    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.

  • @telharmonium
    @telharmonium Před 3 lety

    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.

  • @granolakitti8521
    @granolakitti8521 Před rokem

    Do you know how to connect an lcd screen and show data from stuff inside PD?

  • @SilentNote
    @SilentNote Před 4 lety

    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 ) ...

    • @woulg
      @woulg Před 3 lety

      Just 3d print or laser cut a case for it :) get SketchUp or blender or something and design it

  • @telharmonium
    @telharmonium Před 3 lety

    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!

    • @scottlumsden
      @scottlumsden  Před 3 lety

      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

  • @mushfiqayon
    @mushfiqayon Před 3 lety

    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!

  • @kavtech_midi
    @kavtech_midi Před rokem

    so the guitar can not plugin directly to the input soundinjection, it must use the amp/preamp?

    • @scottlumsden
      @scottlumsden  Před rokem +1

      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.

  • @LouT24
    @LouT24 Před 3 lety

    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!

    • @scottlumsden
      @scottlumsden  Před 3 lety

      I haven't seen that before. Which browser doesn't open?

    • @LouT24
      @LouT24 Před 3 lety +1

      @@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! :)

    • @scottlumsden
      @scottlumsden  Před 3 lety +1

      @@LouT24 That could do it. I’m glad you’ve got it working.

  • @CG-sv2nw
    @CG-sv2nw Před 2 lety

    Great video, easy to follow. Background music is grating and very not good guitar riff man.

  • @supooze4352
    @supooze4352 Před 3 lety

    rad hair!

  • @fromaggio7654
    @fromaggio7654 Před 4 lety

    that hair looks badass

  • @henrybirdseye
    @henrybirdseye Před 4 lety

    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.

  • @pedrononino4223
    @pedrononino4223 Před 4 lety +1

    Thanks!!