Tremolo Effect - Digital Audio Processing with STM32 #3 - Phil's Lab #51

  Рет қаралды 20,153

Phil’s Lab

Phil’s Lab

Күн бұрын

Mixed-signal hardware design course: phils-lab-shop.fedevel.education
Real-time digital processing (DSP) of audio data using an STM32 microcontroller in C on custom audio-processing hardware. Third video in series, covering the tremolo effect. Essentially, amplitude modulation of the audio waveform using a low-frequency oscillator (LFO). In this video, we'll be using a triangular waveform modulator. Including live guitar demo.
[SUPPORT]
Free trial of Altium Designer: www.altium.com/yt/philslab
PCBA from $0 (Free Setup, Free Stencil): jlcpcb.com/RHS
Patreon: / phils94
[LINKS]
DSP Playlist: • DSP
STM32 Playlist: • STM32 Firmware
Notch Filter Video: • Notch Filters - Theory...
First DSP Video: • Digital Audio Processi...
GitHub: github.com/pms67
Digilent ADP3450: digilent.com/shop/analog-disc...
[TIMESTAMPS]
00:00 Introduction
00:41 Previous Videos
01:02 Altium Designer Free Trial
01:20 Hardware Platform
01:57 JLCPCB and Git Repo
02:20 Test Set-Up and Hardware Overview
03:20 Tremolo Effect Overview
04:22 Tremolo Block Diagram
05:43 Tremolo Equation
06:16 Generating the LFO Triangle Wave
07:43 Tremolo.h (Header)
08:50 Tremolo.c (Source)
11:07 main.c
12:30 Time-Domain Analysis (WaveForms)
14:28 Frequency-Domain Analysis (WaveForms)
16:22 Guitar Demo
ID: QIBvbJtYjWuHiTG0uCoK

Пікірлер: 69
@luismiguelfrancisco824
@luismiguelfrancisco824 Ай бұрын
This is completely amazing! I never thought that one day i would understand this.
@isaacclark9825
@isaacclark9825 2 жыл бұрын
I love this content. More audio processing stuff, please!!! I have been subscribed for a while, but I have just clicked a notification bell for the first time ever.
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you very much, Isaac! A lot more DSP/audio processing content to come :)
@szymon4602
@szymon4602 2 жыл бұрын
@@PhilsLab Please prepare something about Q-constant transform :)
@siddharthkothari
@siddharthkothari 2 жыл бұрын
Im genuinely convinced there's something common about electronics and guitar as a hobby. Almost every electronics guy I know, including me is into guitar and at times diy guitar pedals. All that aside, brillant video!
@bot5am
@bot5am 2 жыл бұрын
facts
@mr.shredder5430
@mr.shredder5430 3 ай бұрын
this guy is amazing very talented, some day when i finish all your courses i might me able to make my own anyway thank you for your time and sharing knowledge
@madrigo
@madrigo 2 жыл бұрын
A thanks to Phil, I'm finishing my Bachelor's work with an extra effect. Reverb next and you'll be responsible for my finished synth and degree sir! hahahaha thank you so much for making this content free for everyone man, this is a golden class with superb didactic. Cheers!!!
@DonQuichotteLiberia
@DonQuichotteLiberia 2 жыл бұрын
In my mind, you are a true renaissance man. Great knowledge across the board, and an excellent teacher. Thanks for making these videos.
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you very, very much!
@markworkman6544
@markworkman6544 Жыл бұрын
The SMITH's "How Soon Is Now" made this effect "famous"
@deivedwilliam2386
@deivedwilliam2386 2 жыл бұрын
That's so good my friend. Congratulations 👏🎉
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you! :)
@shashankshetty4617
@shashankshetty4617 19 күн бұрын
Great video
@jj74qformerlyjailbreak3
@jj74qformerlyjailbreak3 2 жыл бұрын
That’s pretty slick bub. I knew I bought the AD2 for a reason. And this guy already did it. Great job. God Bless.
@gino.avanzini
@gino.avanzini 2 жыл бұрын
Love the final clips demonstrating the effects on the guitar!
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you, Gino!
@zetaconvex1987
@zetaconvex1987 2 жыл бұрын
Top quality video! I like how you present everything with no fudged explanations whilst still keeping it within the bounds that us mortals can understand. This series is shaping up to be the best practical DSP on KZbin.
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you so much!
@mello.felipe
@mello.felipe 2 жыл бұрын
That's really inspiring! Thanks for sharing your knowledge with us!!!
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you very much, Felipe!
@jugal4607
@jugal4607 2 жыл бұрын
amazing stuff as usual
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you very much!
@MrIgorek123
@MrIgorek123 2 жыл бұрын
Awesome video dude! I learned a lot, keep it doing!
@KSITREVS
@KSITREVS 2 жыл бұрын
Great video Phil, look forward to seeing more :)
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks a lot, Trevor!
@velvetsound
@velvetsound 2 жыл бұрын
Thanks Phil. Keep them coming!
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank for watching, Jason!
@leiferickson3183
@leiferickson3183 2 жыл бұрын
Wow! great project and great sound too!
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you, Leif!
@Bianchi77
@Bianchi77 2 жыл бұрын
Nice info, thanks :)
@diemaschinedieviereckigeei2941
@diemaschinedieviereckigeei2941 2 жыл бұрын
Wow! The intro genuinely made me think it's a song from Portishead for a second! If you'd started singing to it with a sad high-pitched voice, the illusion would have been perfect.
@PhilsLab
@PhilsLab 2 жыл бұрын
Haha if I only I could sing.. :D
@karama5478
@karama5478 2 жыл бұрын
Awesome!
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you!
@tomislavtropcic2855
@tomislavtropcic2855 2 жыл бұрын
Makes me wanna buy an guitar and experiment with it myself. Very cool.
@PhilsLab
@PhilsLab 2 жыл бұрын
Well, I think you definitely should get one! ;)
@Mel-mu8ox
@Mel-mu8ox Жыл бұрын
Found this after listening to the scream in Love death + robots not sure if this is what they used or just one of the things used but was great to see what it does in wave form :D
@alejandroismael2109
@alejandroismael2109 2 жыл бұрын
Hermoso!
@marcelhensen6847
@marcelhensen6847 2 жыл бұрын
Thank you Phil. Please follow this up by a concise two hour video on how to actually *buy* an STM32 chip 😆
@PhilsLab
@PhilsLab 2 жыл бұрын
Haha yes.. I think that video may have to wait one or two years :D
@markworkman6544
@markworkman6544 Жыл бұрын
VERY COOL......
@PhilsLab
@PhilsLab Жыл бұрын
Thanks, Mark!
@micheleciaramicoli7139
@micheleciaramicoli7139 2 жыл бұрын
Love this shit bro
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks, Michele!
@VSThrasher
@VSThrasher 2 жыл бұрын
Your videos are always amazing, Phil! Thanks a lot for sharing your knowledge with us. I'm kinda rusty on C embedded applications (then, I'm sorry in advance if my comment sounds stupid =D), but I was wondering if make lfoDir a int8_t variable isn't enough for the application and why don't use unsigned integers for both lfoCount and lfoCountLimit? I mean, it would save some bytes on this struct. What do you think about it?
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks, Vitor! Yeah, it doesn't make sense in this case to use a float for the LFO variables. I was messing around with different modulation waveforms (sin, etc..) so needed float for that, just ended up not changing it before recording!
@joanlopezjimenez8336
@joanlopezjimenez8336 2 жыл бұрын
Greate Vídeo!!! I just want to try to design my oun bass pedal (or guitar). Maybe the next video could be an explanation of Fuzz Pedal 😏
@PhilsLab
@PhilsLab Жыл бұрын
Thanks! I'm planning on making a video on guitar overdrives/distortions - I'm afraid not a fuzz, but close :)
@stm3252
@stm3252 2 жыл бұрын
Is there anything you can't do when it comes to embedded system?
@renatofilho9985
@renatofilho9985 Жыл бұрын
what value did you put on the clock configuration of the stm32 IDE? and what pins did you select
@Tarnith
@Tarnith 2 жыл бұрын
Great video! Am I correct in thinking that if you band limited the control signal more significantly, or possibly oversampled the modulation processing (or both), you would reduce the modulation distortion? My assumption being the harmonics are generated by the overly sharp transitions at the -1, +1 points? (in the modulation wave)
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you! The harmonics are due to the triangular waveform, who's Fourier series is composed of odd-harmonic sinusoids. See: mathworld.wolfram.com/FourierSeriesTriangleWave.html
@CristiNeagu
@CristiNeagu 2 жыл бұрын
Do you think you'll ever be able to implement impulse responses?
@PhilsLab
@PhilsLab 2 жыл бұрын
You can check out the FIR video on my channel, which is essentially that. I've tried out (short) impulse responses for speaker emulation but for long convolutions the microcontroller struggles quite a bit.
@crosswick
@crosswick 2 жыл бұрын
At the time this video is published, unfortunately JLCPCB doesn't have the microcontroller and codec in stock for the LeDSP module... also there is no firmware on the github for it (yet?)
@obregr
@obregr 2 жыл бұрын
good as alwwwwwwwwwwwwayas
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you, Gregor!
@jango9973
@jango9973 2 жыл бұрын
How often do you solder on your own components? I'm finding that most of the chips I want to use on JLPCB are out of stock but would like to have them assemble the whole board.
@PhilsLab
@PhilsLab 2 жыл бұрын
I try to never solder anything myself these days (unless I'm fixing a mistake, trying out different components, etc.). JLC now offers components acquired through third-party distributors, so maybe that can help out?
@nickst2797
@nickst2797 2 жыл бұрын
Great! How many bits are the DACs?
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you, Nick. The CODEC goes up to 24 bits I believe, but I'm running it at 16.
@nickst2797
@nickst2797 2 жыл бұрын
@@PhilsLab Thank you very much!
@sarbog1
@sarbog1 2 жыл бұрын
Very cool....... do you play Blues?
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you, Stephen! I mainly play 80s rock (Extreme, Ozzy, ..). :)
@Adin_Prastyo
@Adin_Prastyo 2 жыл бұрын
Hey bro..I've never seen someone on KZbin make a preamp for an acoustic guitar....can you do that bro.thanks bro..my greetings from Indonesia .. If you can make a playlist about audio, effects, guitar ..
@PhilsLab
@PhilsLab 2 жыл бұрын
Hey Hamba, I'm afraid I don't really have plans for an acoustic guitar pre-amp, but definitely loads more to come for the electric guitar :)
@JA-ur8ob
@JA-ur8ob 2 жыл бұрын
Hey Phil, may you please make a Twitter account?
@haythemjelassi4766
@haythemjelassi4766 2 жыл бұрын
could you please make a tutorial and explaine in it how to make an echo cancelation algorithme on the DSP of STM32 for intercom application ?
Op Amp Theory and Design - Phil's Lab #53
28:36
Phil’s Lab
Рет қаралды 42 М.
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН
Creating Guitar Effects with DSP
20:47
sourceaudioeffects
Рет қаралды 19 М.
Comb Filters & Delay Lines in Software (STM32) - Phil's Lab #124
29:12
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3 МЛН
Flawless PCB design: RF rules of thumb - Part 1
15:45
Hans Rosenberg
Рет қаралды 21 М.
Noise Gate - DSP with STM32 - Phil's Lab #58
21:25
Phil’s Lab
Рет қаралды 17 М.
FIR Filters on the STM32G4 Part 1
22:07
Easier In Practice
Рет қаралды 7 М.
CrowdStrike IT Outage Explained by a Windows Developer
13:40
Dave's Garage
Рет қаралды 2,1 МЛН
Class D Audio Amplifier Hardware Design - Phil's Lab #125
27:21
Phil’s Lab
Рет қаралды 25 М.
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 6 МЛН
НОВЫЕ ФЕЙК iPHONE 🤯 #iphone
0:37
ALSER kz
Рет қаралды 361 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 18 МЛН