Getting Started with Raspberry Pi, Pure Data and AudioInjector

Поделиться
HTML-код
  • Опубликовано: 9 сен 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.

Комментарии • 64

  • @loganwilliams9723
    @loganwilliams9723 2 года назад +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  2 года назад

      Thank you for your helpful comment Logan!

  • @tilmanpatzold7474
    @tilmanpatzold7474 3 года назад +3

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

  • @andrak5946
    @andrak5946 4 года назад +4

    Realy nice video! We need the second part!

  • @derickdowney6992
    @derickdowney6992 3 года назад +3

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

  • @jimgoodinmusic
    @jimgoodinmusic 4 года назад +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 3 года назад

      @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 Год назад

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

  • @EricBalcon
    @EricBalcon Год назад

    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.

  • @beatspieces6213
    @beatspieces6213 Год назад +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  Год назад

      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 Год назад

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

    • @scottlumsden
      @scottlumsden  Год назад

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

    • @jrcenina85
      @jrcenina85 Год назад

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

  • @rrjanik
    @rrjanik 4 года назад +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!

  • @finnurjuliusson9635
    @finnurjuliusson9635 4 года назад +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.

  • @zainayk
    @zainayk 2 года назад

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

  • @d3nt391
    @d3nt391 3 года назад +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?

  • @sweetelena
    @sweetelena 2 года назад

    exactly what i was looking for, tysm ¡!

  • @TehSyneS
    @TehSyneS 2 года назад

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

  • @lomzart
    @lomzart 5 лет назад +4

    Thank you very much for this video!

  • @freeelectron8261
    @freeelectron8261 4 года назад +2

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

  • @jrcenina85
    @jrcenina85 3 года назад

    Ferk yes! Thanks for your time and energy!

  • @clifffiftytwo
    @clifffiftytwo 4 года назад

    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  4 года назад

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

    • @clifffiftytwo
      @clifffiftytwo 4 года назад

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

  • @KiR_3d
    @KiR_3d Год назад

    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.

  • @86frankj
    @86frankj 2 года назад

    Thank you very muck for this!!!

  • @eDrumsInANutshell
    @eDrumsInANutshell Год назад

    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?

  • @woulg
    @woulg 3 года назад +2

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

  • @paniproduce
    @paniproduce 4 года назад +1

    Thanks!

  • @rndmknbs
    @rndmknbs Год назад

    thank u for this

  • @maxheadrom3088
    @maxheadrom3088 2 года назад

    Awesome!!! I enjoyed it!

  • @JC3D
    @JC3D 2 года назад

    cool video!

  • @granolakitti8521
    @granolakitti8521 2 года назад

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

  • @CarlosYounes
    @CarlosYounes 9 месяцев назад

    NICE!
    CONGRATULATIONS
    CHEERS :)

  • @Lando00100
    @Lando00100 3 года назад

    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.

  • @pedrononino4223
    @pedrononino4223 4 года назад +1

    Thanks!!

  • @mushfiqayon
    @mushfiqayon 3 года назад

    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!

  • @tnesseth547
    @tnesseth547 3 года назад

    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?

  • @telharmonium
    @telharmonium 3 года назад

    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.

  • @MattDiamondMDE
    @MattDiamondMDE 3 года назад

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

  • @wonkyrobot
    @wonkyrobot 3 года назад

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

  • @kavtech_midi
    @kavtech_midi Год назад

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

    • @scottlumsden
      @scottlumsden  Год назад +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.

  • @davesnyder7094
    @davesnyder7094 4 года назад

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

  • @telharmonium
    @telharmonium 3 года назад

    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  3 года назад

      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

  • @shauncrook5296
    @shauncrook5296 5 лет назад

    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  5 лет назад

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

    • @shauncrook5296
      @shauncrook5296 5 лет назад +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 :)

  • @SilentNote
    @SilentNote 4 года назад

    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 3 года назад

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

  • @LouT24
    @LouT24 3 года назад

    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  3 года назад

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

    • @LouT24
      @LouT24 3 года назад +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  3 года назад +1

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

  • @CG-sv2nw
    @CG-sv2nw 2 года назад

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

  • @supooze4352
    @supooze4352 3 года назад

    rad hair!

  • @fromaggio7654
    @fromaggio7654 4 года назад

    that hair looks badass

  • @henrybirdseye
    @henrybirdseye 4 года назад

    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.