Polyrhythms in JavaScript | How Math Can Make Your Code Better (
ฝัง
- เผยแพร่เมื่อ 17 ก.ย. 2024
- 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...
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!
Thanks :-) I think these scripted tutorials can be much clearer than the live streams :-D
Very well Dr. Radu. As always, you shared interesting JavaScript code with us!
Happy you found it useful :-)
The final result was very interesting.😁👍
Glad you think so! :-)
Loved this!
Next: “Fancy Synth in JS”
Then: “Advanced DAW in JS” 😊
Those are cool ideas :-)
Maybe someday!
I guess the jump to 'Advanced DAW' is due to simple DAW simply isn't =)
This is art!
Thanks :-) Glad you liked it!
Change of tune... get it? Hahhahaha, I already started the video with a big smile!
:-))
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!
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 :-)
I Always feel like a newbie after seeing your videos
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
@@Radu seems like... it's a common case to everyone haha
@@All-about-te yeah
PERFECT TIMING I NEEDED THIS VIDEO TO IRON OUT SOME KINKS IN MY SYNTAX GREAT WORK
Cool :-) hope it helped!
I was waiting for this video about math, thanks Radu!!!!
Cool :-) I hope it was worth the wait!
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!
Cool! Thanks for watching :-)
I love this video explanation!
Glad it was helpful! :-)
Learnt something new today, thanks Radu
Happy to hear :-)
Vos cours sont vraiment sympas, merci.
Happy you like them :-)
Great one. Again. But that should not be a surprise anymore.
Anyway, I learned something new again today, so thanks!
Thanks. I think this one was especially nice :-)
Fun project and a lot to learn from it. Glad it helped!
amazing
Thank you :-)
Your videos are motivational, thank you
I'm happy to hear :-)
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.
My first version was like that too :-D
36:52 WOW
Yeah, often looking at something from a different perspective reveals it's easier than it seems at first :-)
Change of tune, haha :D
Heh, one of my best 😎
nice
Thanks :-)
💖💖💖💖
:-) thanks for watching!
Coding with Radu, coding with Radu … 0:52
:-) funny how some people like the intro and some don't :-D
@@Radudefinitely group me in those that love it! Don’t change it!! I do enjoy the word play before the “no, no, no” 😂😂😂
:-)) haha, ok!
We begin with basic html
:-) well, we do ;-)