Calculating pi with a Synthesizer

  Рет қаралды 114,957

Physics for the Birds

Physics for the Birds

Күн бұрын

Happy Pi Day! In this video, we're going to put an analog synthesizer to some use by having it calculate pi. To get the experiment to work, we'll need to learn about periodic functions, the Fourier Series, and the frequency response of resonant filters.
Become a Patreon member: / physicsforthebirds
0:00 Periodic Functions
0:59 Fourier Series
3:03 Filters
4:45 The Experiment
5:39 Results
Fourier Series: Boas, Mathematical Methods for the Physical Science p.340-378
pi from filtered waves: Horowitz and Hill, The Art of Electronics p.435-455
pi from rectified sines: iopscience.iop.org/article/10...
pi in the Bible: 1 Kings 7:23-26

Пікірлер: 207
@JKTCGMV13
@JKTCGMV13 Жыл бұрын
Extracting the sine from the square wave is something I’ve had to do at work. I’m an embedded software engineer and for a controller I had to write we were measuring what was essentially a square wave and we needed to feed as a sine wave into our controller, so we using a FIR filter to brick wall chop off the harmonics of the square waves fundamental. We knew the expected fundamental frequency, so we could tune the filter to cut off just how we wanted.
@ampersand64
@ampersand64 Жыл бұрын
yep, FIR filters are wonderful. I used to use reaFIR to reject hypersonic frequencies in my music before converting to MP3.
@realityChemist
@realityChemist Жыл бұрын
@@ampersand64 to shrink the file size?
@ampersand64
@ampersand64 Жыл бұрын
@@realityChemist prevent aliasing. Maybe I'm dumb and regular mp3 encoding already does this. I did it a while ago, when I knew less about production.
@hridayashra380
@hridayashra380 Жыл бұрын
I like your funny words magic man
@PennDraken
@PennDraken Жыл бұрын
If you already knew the fundamental frequency isn't the sine wave already known?
@maxgarval4997
@maxgarval4997 Жыл бұрын
Your content scratches a special itch in my brain. As an electrical engineering major in college who plays music and knows some theory, your content basically feels tailor made for me. God I'd love to grab a beer with you
@adamswierczynski
@adamswierczynski Жыл бұрын
Congratulations, you've discovered the convincing allure of the parasocial relationship.
@scary_terry1745
@scary_terry1745 10 ай бұрын
😶‍🌫️
@jamieallan2859
@jamieallan2859 Жыл бұрын
Honestly quite impressive that you were so close with the eyeballing on the oscilloscope
@tissuepaper9962
@tissuepaper9962 Жыл бұрын
Human perception is surprisingly precise. I don't have a citation but there are countless books on graphic design and data visualization that teach about how accurate we are at determining if lines are parallel. It's a big factor in UI design as well, really powerful user interfaces make use of the parts of out visual perception which work the best. Another one is our ability to tell if two parallel lines are coincident, which you use every time you read the speedometer in your car, or the fill level on a measuring cup, or in this case when you want to make sure what you're seeing is a smooth wave without any lumps.
@B0K1T0
@B0K1T0 Жыл бұрын
Which makes me wonder how accurate it would be if you would somehow automate these adjustments and take measurements on a fine scale and take the optimal amplitudes that way. Although I can imagine the other factors adding error might be more significant than the errors introduced by eyeballing it.
@kaitlyn__L
@kaitlyn__L 8 ай бұрын
@@B0K1T0probably eminently automatable with HPIB instruments tbh, on both the signal measurement and generation side! Could log many dozens or hundreds of samples for each waveform and setting as well.
@astropurn5939
@astropurn5939 Жыл бұрын
This is amazing content. Love how you tie together many topics in a satisfying way. I could listen to you for hours, you have an amazing voice. Keep up the good work, you deserve way more.
@Cmattgamerguy
@Cmattgamerguy Жыл бұрын
This has been my new favorite channel on KZfaq recently, keep doing what you do!
@andreabogoni0
@andreabogoni0 Жыл бұрын
Same here!! The lisp is disyracting tho. ( I have lots of defects myself dont worry)
@Mega2223-BR
@Mega2223-BR Жыл бұрын
Genuinely baffling how small your audience is considering the quality of your content. You deserve way more, hopefully you'll get it, keep up the good work :)
@oberham
@oberham Жыл бұрын
this is by far one of my favorite channels on this website. keep making the awesome content!
@Takamori67
@Takamori67 Жыл бұрын
You are such a gem! I love your content, how you manage to tie together seemingly unconnected fields of maths/physics/engineering. And on the way made me laugh out loud several times in this video! Please keep up the great work and consider setting a patreon for your channel, I would love to support your work.
@calvinfourieza
@calvinfourieza Жыл бұрын
I may not understand it completely, but I understand it enough to know that this video is really cool
@Sam27182
@Sam27182 Жыл бұрын
Everyone else is saying the same thing, but this channel is so good. You describe things so well that people who don't know about it can understand, while also leaving enough detail in that people who do know more can gain more from the video, and that is an incredible talent.
@Dr.1.
@Dr.1. Жыл бұрын
Your videos are so calming and therapeutic
@SIKKYBEATS
@SIKKYBEATS Жыл бұрын
Brilliant! Thanks for making this. I need these videos in my life 🎉
@smothponylover
@smothponylover Жыл бұрын
Your style and music choice are top notch. Love the content! :3
@ConsultingHumor
@ConsultingHumor Жыл бұрын
Your channel is gonna blow up dude great content
@thewisefromwest6941
@thewisefromwest6941 Жыл бұрын
great channel mixes every thing i love : math music animation.
@dpride00
@dpride00 Жыл бұрын
Its OK, you just found Engineer's Pi
@lessefrost
@lessefrost Жыл бұрын
Man, I've always known this stuff and the maths behind sound but I've never quite thought of how I could reverse it to calculate PI. Great work!
@pamparam4637
@pamparam4637 Жыл бұрын
I really love how, in single video, you can interest me with topics, that I'm totally terrible with; trigonometry, music and electronics :) thx
@kaymaas5439
@kaymaas5439 Жыл бұрын
Love what your doing man :)
@Petch85
@Petch85 Жыл бұрын
I love this, grate idea.
@bangxr
@bangxr Жыл бұрын
I love your content so much! I love your voice, how you speak and the drawings are so good too.
@dog-with-knife
@dog-with-knife Жыл бұрын
congrats on 50k!
@shaunrichardson3333
@shaunrichardson3333 Жыл бұрын
Thank you for what you do! Really interesting and great how you thought of how to do something strange that you were curious about, tried a few things, problem solved and then solved the problem. And even being able to share this with us in a coherent and fun-to-watch video. As some have also commented, This has been my new favourite channel on KZfaq recently. Please keep exploring the wondering world we're in with maths and physics!!
@anderslauridsen601
@anderslauridsen601 Жыл бұрын
Man i am so glad I found this channel. I do data analysis, and this bings a fun perspective to my work and studies. I actually started a "popcorn-project" in the same vain as your video a couple of months ago, which i fnid very fun. This video sure is giving matt parker a run for his money. Good job man!
@milkwater1204
@milkwater1204 Жыл бұрын
This channel is popping off hard.
@RED-jg6mt
@RED-jg6mt Жыл бұрын
You're a mad genius. Love this channel
@lujoBoy
@lujoBoy Жыл бұрын
This is the content I needed to stimulate me brain. Happy Pi day!
@redgopnik2227
@redgopnik2227 Жыл бұрын
I don't know if I missed something but you should've been able to run the low pass resonance filter on the sin wave too, instead of needing the triangle wave... Regardless, great video
@angrivator
@angrivator Жыл бұрын
That model of synthesizer doesn't have a Sine oscillator
@_Mojius_
@_Mojius_ Жыл бұрын
I love your ending music 😢 It's so sweet and melancholy!
@evelynx06
@evelynx06 Жыл бұрын
I just realized that this channel is like really new, and it's fucking awesome!! Keep up the good work!! (and may the mighty gods of the algorithm favor you)
@sm4games
@sm4games Жыл бұрын
Pi day woooo, love your vids btw :)
@SublimeWeasel
@SublimeWeasel Жыл бұрын
I LOVE THIS CHANNEL
@pvillez
@pvillez Жыл бұрын
Excellent!
@pyglik2296
@pyglik2296 Жыл бұрын
3:00 "One of the worst ways to measure pi." Matt Parker: First time?
@ethanpfeiffer7403
@ethanpfeiffer7403 Жыл бұрын
This is an amazing physics solution. After all, know that pi=3.
@sebula8001
@sebula8001 Жыл бұрын
Thanks for the video! Very enjoyable 😁
@artisticevan2358
@artisticevan2358 Жыл бұрын
i love this channel
@ludvigswedberg5209
@ludvigswedberg5209 Жыл бұрын
I came away from this finally knowing why square waves are made up of only odd harmonics! Great video!
@badguy562
@badguy562 Жыл бұрын
Makes my day better after a class test
@ozen.m8161
@ozen.m8161 Жыл бұрын
New video Yayyyyy:)))🌹🌹🌹
@santoast24
@santoast24 Жыл бұрын
The synthesizer did a better job than the Bible I am gonna take that quote And I will use it Every. Single. Chance. I. Get.
@xandermylle2537
@xandermylle2537 Жыл бұрын
Great content
@XThec
@XThec Жыл бұрын
cool video ! 👍
@EthanHarmYoutube
@EthanHarmYoutube Жыл бұрын
As soon as i saw the waveform i knew you were gonna talk about harmonics lmao nice video
@adolfomotanavarro6553
@adolfomotanavarro6553 Жыл бұрын
50K subs already. Fly high, Bird Lord
@mrdavi5064
@mrdavi5064 Жыл бұрын
You could use better filter with steeper cutoff, but I really appreciate your solution 👍
@Vallam23
@Vallam23 Жыл бұрын
this is really cool and i followed along with my microbrute lol, i do wish you showed exactly where you were turning the knobs to though. it's actually kinda neat to get a really simple sine wave out of this usually very crunchy and complex synth
@dahu2k
@dahu2k Жыл бұрын
4/5ths of my youtube time is spent o. Either synths or maths. This hit my niche just right. HAPPY PI DAY
@duoquendo
@duoquendo Жыл бұрын
this channel is a great concept >inb4 100k >inb4 1M
@SharpnessSword
@SharpnessSword Жыл бұрын
finding this channel feels like when I found real engeneering
@thebooleanworld9593
@thebooleanworld9593 Жыл бұрын
I really like the production of this video! Very nice visuals. I just noticed the de-essing work you did actually made some words unintelligible. Not a huge issue, but one I thought you'd want pointed out for the future. Love the content, keep it up!
@pauljones9150
@pauljones9150 Жыл бұрын
Omg this is crazy cool
@fadedlamp42
@fadedlamp42 Жыл бұрын
Keep up the amazing work
@username6095
@username6095 Жыл бұрын
I'm absolutely love u, mate
@Joseph-ms3iq
@Joseph-ms3iq Жыл бұрын
These BIRDS ARE SO EPICX
@appa609
@appa609 Жыл бұрын
"one of the worst ways of measuring pi" I'm dying xD
@Breakfast_of_Champions
@Breakfast_of_Champions Жыл бұрын
The sparrows at my balcony approve.
@nonsuch
@nonsuch Жыл бұрын
The SUB oscillator should be sine wave on the Microbrute. On the Minibrute, you have a choice switch that can be changed between sine or square.
@kelvaxmiller8963
@kelvaxmiller8963 Жыл бұрын
Hey man, I just found your channel and have watched a couple videos and am absolutely in love! I love what you do and how varied it is. Also, on a side note, what is the song you use at the end of your videos?
@redstone8513
@redstone8513 Жыл бұрын
I'd also like to know
@sustomusickillsyoutube
@sustomusickillsyoutube Жыл бұрын
Lifelong music producer. Understand exactly 0 of this. A+ 👏👏👏
@user-qy6sj1zv1l
@user-qy6sj1zv1l Жыл бұрын
Thanks! Now I understand the sine func*Hn
@mb2776
@mb2776 Жыл бұрын
Oh great, physics and synth content? Looks like that even after the first glance, it checks all the boxes ;)
@jan-Sopija
@jan-Sopija Жыл бұрын
happy pi day you funky nerd bird❤
@gregyoungman
@gregyoungman Жыл бұрын
Great video. I played it really loud with the windows down so the birds could hear it.
@JohnR436
@JohnR436 Жыл бұрын
Hey! You should try this again but generating from a DAW like Ableton. The built-in EQ-8 has decent HPF capabilities, but Fabfilter Pro-Q would knock it out of the park. Total overkill but it’d be fun.
@S.K.u.S.H
@S.K.u.S.H Жыл бұрын
GOD HAS SPOKEN ONCE AGAIN, and now imma eat and listen
@colourbasscolourbassweapon2135
@colourbasscolourbassweapon2135 Жыл бұрын
synthesis nice 😎
@fariesz6786
@fariesz6786 Жыл бұрын
birb with pie is wholesome
@dariusherdes689
@dariusherdes689 Жыл бұрын
I dont know why but I find him just so cute explaining me physics
@vedansh7010
@vedansh7010 Жыл бұрын
Happy pie day !
@erochicken
@erochicken Жыл бұрын
I’m a filmmaker and I think the audio editing process is fascinating so it’s neat to hear and see the math of how audio works
@jpetrovich1987
@jpetrovich1987 Жыл бұрын
Can you please do a whole series on this 🙏
@playboibowlly2568
@playboibowlly2568 Жыл бұрын
You can get a higher shelf/less inclusive filter on a software synth, at least I know on phaseplant there is a specific function on the filter effect on it. Good luck on your sine adventures
@RikMaxSpeed
@RikMaxSpeed Жыл бұрын
Brilliant idea: performing the whole experiment using a plug-in should generate much more repeatable and accurate results! (Probably best to do this with a pretty simple naïve synth though, without complex virtual analogue circuit modelling.)
@colourbasscolourbassweapon2135
@colourbasscolourbassweapon2135 Жыл бұрын
AKA db -12 db-24 stuff for the vcf
@devinda_me
@devinda_me Жыл бұрын
cool video but it went over my head compared to your other stuff - time for a rewatch !
@colourbasscolourbassweapon2135
@colourbasscolourbassweapon2135 Жыл бұрын
this makes me want to play with my grandmother moog and play with the classic ladder vcf lmao
@Mr6Sinner
@Mr6Sinner Жыл бұрын
I’ll take your word for it lol
@osrsfl618
@osrsfl618 Жыл бұрын
what kind of succulents you got running with your synth setup?
@colourbasscolourbassweapon2135
@colourbasscolourbassweapon2135 Жыл бұрын
Classic Low Pass VCF Nice analog synth you got there
@GimmicksChannel
@GimmicksChannel Жыл бұрын
Awesome vid as always... 👍👍 say... can we relate / combine this theory with the financial market? I mean... market chart looked just like this.. moving sideway or up n down😁
@Joseph-ms3iq
@Joseph-ms3iq Жыл бұрын
BIRDS WHO DO CIRCLESSS
@mumujibirb
@mumujibirb Жыл бұрын
truly a birbin moment
@nyuh
@nyuh Жыл бұрын
birbin frr
@BillyBob-wh4sq
@BillyBob-wh4sq Жыл бұрын
no cap frfr
@pinacolada2386
@pinacolada2386 Жыл бұрын
Nice video, could you make a video that explains Fourier transformation in more details for a bird? 🐦 Really appreciate it!
@physicsforthebirds
@physicsforthebirds Жыл бұрын
Fourier transforms and Fourier series are so universally useful that I feel like I should explain it in almost every video, and this explanation was lightning fast, so I'll definitely cover it again!
@aelsandro
@aelsandro Жыл бұрын
I don't think that anyone noticed, but I love the attention to detail in this video. It is also exactly 2*pi minutes long :D
@drdca8263
@drdca8263 Жыл бұрын
Well, not *exactly*...
@francaisdeuxbaguetteiii7316
@francaisdeuxbaguetteiii7316 Жыл бұрын
10 seconds off mate
@Purfait
@Purfait Жыл бұрын
I have seen so many among us memes that it took me 5 seconds to realise its a bird on the thumbnail
@Joseph-ms3iq
@Joseph-ms3iq Жыл бұрын
I LOBE YOUR CONTENT
@willbill808
@willbill808 Жыл бұрын
You got it close enough for engineering 😂
@henrymorgan8936
@henrymorgan8936 Жыл бұрын
I can’t believe this man’s really animated traditional grip on a bird 5:42
@physicsforthebirds
@physicsforthebirds Жыл бұрын
My birds are classically trained
@atlev
@atlev Жыл бұрын
Did you compose your ending song? I really love it.
@physicsforthebirds
@physicsforthebirds Жыл бұрын
Yep!
@atlev
@atlev Жыл бұрын
@@physicsforthebirds if you ever write a full version, I'd buy it in a heartbeat 💓
@martinvasilev9809
@martinvasilev9809 Жыл бұрын
good
@Joseph-ms3iq
@Joseph-ms3iq Жыл бұрын
birbs are HEKIN COOOOOOOO
@victorvaz5790
@victorvaz5790 Жыл бұрын
All these calculations to find out what engineers knew all along, pi = 3
@KazuhiraWolf
@KazuhiraWolf Жыл бұрын
I want the song towards the end
@Quadr44t
@Quadr44t Жыл бұрын
3:20 What about brick wall LP filters? (yeah they are not perfect, they do add some minor waviness just below the cutoff frequency, but it is close).
@Validole
@Validole Жыл бұрын
Main goal was to measure pi _with that syntesizer_, and he was approximating a brick wall as well as he could using the filters it had.
@Quadr44t
@Quadr44t Жыл бұрын
@@Validole yeah I commented before finishing the video 😅 later he also talks about steeper filters than the basic 12db/oct if I remember correctly.
@lazersword
@lazersword Жыл бұрын
Now we know what pi sounds like
@bsharpmajorscale
@bsharpmajorscale Жыл бұрын
I've read somewhere that the Bible estimation is closer than most give credit for because of a misinterpretation of the text at some point. I can't remember the exact details, though. Something about a container lip having added width that isn't taken into account.
@physicsforthebirds
@physicsforthebirds Жыл бұрын
Yeah, realistically it makes perfect sense for them to round for the sake of writing even if the architects knew a better estimate. But still, my number is not too bad when you look at the history of pi!
@bsharpmajorscale
@bsharpmajorscale Жыл бұрын
@@physicsforthebirds No, I meant the readers who later interpreted those passages. But rounding is the best way to go, especially if your language is primarily integer-based.
@Catman_321
@Catman_321 Жыл бұрын
engineers when approximating pi be like:
@davidspencer3726
@davidspencer3726 Жыл бұрын
The Biblical accuracy of pi might be closer than you think: we assume of course that they'd work to 21st century standards and measure the circumference and diameter from the same points, but perhaps that assumption isn't entirely safe. Later the Sea is described as "like a lily blossom", and checking images we can see lily blossoms are splayed. So if the top of the Sea splays out then it could well have a body circumference of 30 cubits and an outer diameter measured at the rim of more than 9.55.
@Joseph-ms3iq
@Joseph-ms3iq Жыл бұрын
I HEKIN LOVE BIRBS WHO DO PHYSICS
@nyuh
@nyuh Жыл бұрын
omg whats the credits song
The Sound of those Buzzing Magnets
11:13
Physics for the Birds
Рет қаралды 975 М.
What do LEGO bricks and celestial bodies have in common?
13:12
Physics for the Birds
Рет қаралды 186 М.
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 97 МЛН
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 11 МЛН
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 35 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
Is Legend of Zelda Turing Complete?
11:00
Physics for the Birds
Рет қаралды 471 М.
The Revolutionary Genius Of Joseph Fourier
16:17
Dr. Will Wood
Рет қаралды 108 М.
James Webb Space Telescope and the Traveling Salesman Problem
10:48
Physics for the Birds
Рет қаралды 243 М.
The Double Bubble Theorem
11:51
Physics for the Birds
Рет қаралды 182 М.
How to turn a circle inside out (Visual Calculus and the Tractrix)
8:52
Physics for the Birds
Рет қаралды 91 М.
Can You Make a Quantum Computer out of Olive Oil?
14:11
Physics for the Birds
Рет қаралды 146 М.
Turing's Cake (and other wrinkly math)
13:38
Physics for the Birds
Рет қаралды 141 М.
Acoustic cameras can SEE sound
11:52
Steve Mould
Рет қаралды 2,5 МЛН
Fourier Transform, Fourier Series, and frequency spectrum
15:46
Physics Videos by Eugene Khutoryansky
Рет қаралды 3,1 МЛН
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 97 МЛН