Polyrhythms in JavaScript | How Math Can Make Your Code Better (

  Рет қаралды 4,067

Radu Mariescu-Istodor

Radu Mariescu-Istodor

Күн бұрын

In this video I teach you about good coding practices when building a fun project. It emphasizes how understanding math concepts can result in simpler, easier to understand code that also correlates with fewer bugs.
The project was inspired by the polyrhythms on the ‪@project_jdm‬ channel:
/ @project_jdm
Check them out if you haven't seen them yet!
While building this, we'll learn about procedural sound generation techniques, demonstrate how to enhance code structure for better readability and maintainability, and showcase the power of math in simplifying complex codebases.
If you've ever doubted the usefulness of math in coding, this video is tailor-made for you! We'll debunk the myth and show you firsthand how a bit of mathematical understanding can elevate your programming skills to new heights. So, grab your coding gear and get ready to follow along with this exciting project!
const soundFrequencies = [
1760, 1567.98, 1396.91, 1318.51, 1174.66, 1046.5, 987.77, 880,
783.99, 698.46, 659.25, 587.33, 523.25, 493.88, 440, 392, 349.23,
329.63, 293.66, 261.63
];
💻CODE💻
github.com/gni...
⭐10 Ways to draw Circles⭐
• Drawing CIRCLES in 10 ...
⭐More WebAudioAPI Tutorials⭐
• Projects with Procedur...

Пікірлер: 55
@pesterenan
@pesterenan 29 күн бұрын
You have such a nice way to explain things. It was really cool to see the use of dependency injection and refactoring to make things more concise. Awesome explanation, nice work, Radu!
@Radu
@Radu 28 күн бұрын
Thanks :-) I think these scripted tutorials can be much clearer than the live streams :-D
@karolisr
@karolisr Ай бұрын
Loved this! Next: “Fancy Synth in JS” Then: “Advanced DAW in JS” 😊
@Radu
@Radu Ай бұрын
Those are cool ideas :-) Maybe someday!
@MikkelGissel
@MikkelGissel Ай бұрын
I guess the jump to 'Advanced DAW' is due to simple DAW simply isn't =)
@pesterenan
@pesterenan 29 күн бұрын
Change of tune... get it? Hahhahaha, I already started the video with a big smile!
@Radu
@Radu 28 күн бұрын
:-))
@AlpiTec
@AlpiTec Ай бұрын
Very well Dr. Radu. As always, you shared interesting JavaScript code with us!
@Radu
@Radu Ай бұрын
Happy you found it useful :-)
@DanielJoseAutodesk
@DanielJoseAutodesk Ай бұрын
The final result was very interesting.😁👍
@Radu
@Radu Ай бұрын
Glad you think so! :-)
@javifontalva7752
@javifontalva7752 Ай бұрын
This is art!
@Radu
@Radu Ай бұрын
Thanks :-) Glad you liked it!
@ka_okai9
@ka_okai9 Ай бұрын
Thanks Radu , i ve learned so much from this video in particular. I noticed you are just pretending the functions exist and just type them into your code and THEN you define and implement them. Thats a very interesting aproach because its easier to keep track of what you were suposed to do in the first place. Great video as always.. thank you very much for sharing with us! You are the best!
@Radu
@Radu Ай бұрын
Yes, it's called a top-down approach. It helps figure out what lower-level components you need to implement and what should their input / output be. Thanks for watching :-)
@fdorsman
@fdorsman Ай бұрын
Great one. Again. But that should not be a surprise anymore. Anyway, I learned something new again today, so thanks!
@Radu
@Radu Ай бұрын
Thanks. I think this one was especially nice :-) Fun project and a lot to learn from it. Glad it helped!
@___d3p1
@___d3p1 6 күн бұрын
I love this video explanation!
@Radu
@Radu 4 күн бұрын
Glad it was helpful! :-)
@MadaraAzukar
@MadaraAzukar Ай бұрын
I Always feel like a newbie after seeing your videos
@Radu
@Radu Ай бұрын
Maybe because I do different things than what you're used to :-) I also feel like a newbie if I see someone code something I never tried or using a programming language / framework that is new to me :-D
@All-about-te
@All-about-te Ай бұрын
@@Radu seems like... it's a common case to everyone haha
@MadaraAzukar
@MadaraAzukar Ай бұрын
@@All-about-te yeah
@Silas_standley
@Silas_standley Ай бұрын
PERFECT TIMING I NEEDED THIS VIDEO TO IRON OUT SOME KINKS IN MY SYNTAX GREAT WORK
@Radu
@Radu Ай бұрын
Cool :-) hope it helped!
@adilsonbuset738
@adilsonbuset738 Ай бұрын
Vos cours sont vraiment sympas, merci.
@Radu
@Radu Ай бұрын
Happy you like them :-)
@amank8950
@amank8950 Ай бұрын
Learnt something new today, thanks Radu
@Radu
@Radu Ай бұрын
Happy to hear :-)
@Deditzy.
@Deditzy. Ай бұрын
Never really implemented this before, but my approach would’ve been the exact same. What I’ve learned however is that my intuitive approach allowed me even more flexibility. I enjoy watching your videos Radu, keep up the good work!
@Radu
@Radu Ай бұрын
Cool! Thanks for watching :-)
@JV_Arg
@JV_Arg Ай бұрын
I was waiting for this video about math, thanks Radu!!!!
@Radu
@Radu Ай бұрын
Cool :-) I hope it was worth the wait!
@kashifali-t4x9x
@kashifali-t4x9x 22 күн бұрын
amazing
@Radu
@Radu 21 күн бұрын
Thank you :-)
@DataBites78605
@DataBites78605 Ай бұрын
Your videos are motivational, thank you
@Radu
@Radu Ай бұрын
I'm happy to hear :-)
@yusuf.isyaku
@yusuf.isyaku Ай бұрын
yea, if I were to code this, I'd code it in 1000 lines or even more. Maths do make some things easier. I wish you all the best with SoMeπ Radu. And, thank you.
@Radu
@Radu Ай бұрын
My first version was like that too :-D
@channelinprogress446
@channelinprogress446 Ай бұрын
36:52 WOW
@Radu
@Radu Ай бұрын
Yeah, often looking at something from a different perspective reveals it's easier than it seems at first :-)
@georgecrisan9499
@georgecrisan9499 Ай бұрын
Change of tune, haha :D
@Radu
@Radu Ай бұрын
Heh, one of my best 😎
@ChandrashekarCN
@ChandrashekarCN Ай бұрын
💖💖💖💖
@Radu
@Radu Ай бұрын
:-) thanks for watching!
@zohaibqurban7386
@zohaibqurban7386 Ай бұрын
nice
@Radu
@Radu Ай бұрын
Thanks :-)
@eyobbirhanu4856
@eyobbirhanu4856 Ай бұрын
We begin with basic html
@Radu
@Radu Ай бұрын
:-) well, we do ;-)
@Deditzy.
@Deditzy. Ай бұрын
Coding with Radu, coding with Radu … 0:52
@Radu
@Radu Ай бұрын
:-) funny how some people like the intro and some don't :-D
@Deditzy.
@Deditzy. Ай бұрын
@@Radudefinitely group me in those that love it! Don’t change it!! I do enjoy the word play before the “no, no, no” 😂😂😂
@Radu
@Radu Ай бұрын
:-)) haha, ok!
Realistic Spinning Wheels: JavaScript Animation Tutorial
23:04
Radu Mariescu-Istodor
Рет қаралды 223
10 Ways to Sum Array Elements in JavaScript
18:12
Radu Mariescu-Istodor
Рет қаралды 1,4 М.
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,4 МЛН
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 99 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 62 МЛН
The Bingo Paradox: 3× more likely to win
30:15
Stand-up Maths
Рет қаралды 609 М.
The Double Pendulum Fractal
3:37
Nicogs Playground
Рет қаралды 15 М.
Learn Trigonometry with JavaScript
54:40
Radu Mariescu-Istodor
Рет қаралды 14 М.
Visualizing 4D Pt.1
22:56
HyperCubist Math
Рет қаралды 573 М.
20 Programming Projects That Will Make You A God At Coding
14:27
The Coding Sloth
Рет қаралды 1 МЛН
Pentomino Facts
18:38
Deckard
Рет қаралды 132 М.
10 weird algorithms
9:06
Fireship
Рет қаралды 1,2 МЛН
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,5 МЛН
TCP/IP for Programmers
3:03:31
Eli the Computer Guy
Рет қаралды 82 М.