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...

ความคิดเห็น • 55

  • @pesterenan
    @pesterenan 27 วันที่ผ่านมา +3

    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  26 วันที่ผ่านมา +1

      Thanks :-) I think these scripted tutorials can be much clearer than the live streams :-D

  • @AlpiTec
    @AlpiTec หลายเดือนก่อน +6

    Very well Dr. Radu. As always, you shared interesting JavaScript code with us!

    • @Radu
      @Radu  หลายเดือนก่อน +2

      Happy you found it useful :-)

  • @DanielJoseAutodesk
    @DanielJoseAutodesk หลายเดือนก่อน +4

    The final result was very interesting.😁👍

    • @Radu
      @Radu  หลายเดือนก่อน

      Glad you think so! :-)

  • @karolisr
    @karolisr หลายเดือนก่อน +7

    Loved this!
    Next: “Fancy Synth in JS”
    Then: “Advanced DAW in JS” 😊

    • @Radu
      @Radu  หลายเดือนก่อน +2

      Those are cool ideas :-)
      Maybe someday!

    • @MikkelGissel
      @MikkelGissel หลายเดือนก่อน +2

      I guess the jump to 'Advanced DAW' is due to simple DAW simply isn't =)

  • @javifontalva7752
    @javifontalva7752 หลายเดือนก่อน +4

    This is art!

    • @Radu
      @Radu  หลายเดือนก่อน

      Thanks :-) Glad you liked it!

  • @pesterenan
    @pesterenan 27 วันที่ผ่านมา +2

    Change of tune... get it? Hahhahaha, I already started the video with a big smile!

    • @Radu
      @Radu  26 วันที่ผ่านมา +1

      :-))

  • @ka_okai9
    @ka_okai9 หลายเดือนก่อน +3

    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  หลายเดือนก่อน +1

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

  • @MadaraAzukar
    @MadaraAzukar หลายเดือนก่อน +2

    I Always feel like a newbie after seeing your videos

    • @Radu
      @Radu  หลายเดือนก่อน +1

      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 หลายเดือนก่อน +1

      @@Radu seems like... it's a common case to everyone haha

    • @MadaraAzukar
      @MadaraAzukar หลายเดือนก่อน +2

      @@All-about-te yeah

  • @Silas_standley
    @Silas_standley หลายเดือนก่อน +1

    PERFECT TIMING I NEEDED THIS VIDEO TO IRON OUT SOME KINKS IN MY SYNTAX GREAT WORK

    • @Radu
      @Radu  หลายเดือนก่อน

      Cool :-) hope it helped!

  • @JV_Arg
    @JV_Arg หลายเดือนก่อน +1

    I was waiting for this video about math, thanks Radu!!!!

    • @Radu
      @Radu  หลายเดือนก่อน +1

      Cool :-) I hope it was worth the wait!

  • @Deditzy.
    @Deditzy. หลายเดือนก่อน +1

    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  หลายเดือนก่อน +1

      Cool! Thanks for watching :-)

  • @___d3p1
    @___d3p1 4 วันที่ผ่านมา +1

    I love this video explanation!

    • @Radu
      @Radu  วันที่ผ่านมา

      Glad it was helpful! :-)

  • @amank8950
    @amank8950 หลายเดือนก่อน +1

    Learnt something new today, thanks Radu

    • @Radu
      @Radu  หลายเดือนก่อน

      Happy to hear :-)

  • @adilsonbuset738
    @adilsonbuset738 หลายเดือนก่อน +1

    Vos cours sont vraiment sympas, merci.

    • @Radu
      @Radu  หลายเดือนก่อน

      Happy you like them :-)

  • @fdorsman
    @fdorsman หลายเดือนก่อน +1

    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!

  • @kashifali-t4x9x
    @kashifali-t4x9x 19 วันที่ผ่านมา +1

    amazing

    • @Radu
      @Radu  18 วันที่ผ่านมา

      Thank you :-)

  • @DataBites78605
    @DataBites78605 หลายเดือนก่อน +1

    Your videos are motivational, thank you

    • @Radu
      @Radu  หลายเดือนก่อน

      I'm happy to hear :-)

  • @yusuf.isyaku
    @yusuf.isyaku หลายเดือนก่อน +1

    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 หลายเดือนก่อน +1

    36:52 WOW

    • @Radu
      @Radu  หลายเดือนก่อน +1

      Yeah, often looking at something from a different perspective reveals it's easier than it seems at first :-)

  • @georgecrisan9499
    @georgecrisan9499 หลายเดือนก่อน +1

    Change of tune, haha :D

    • @Radu
      @Radu  หลายเดือนก่อน

      Heh, one of my best 😎

  • @zohaibqurban7386
    @zohaibqurban7386 หลายเดือนก่อน +1

    nice

    • @Radu
      @Radu  หลายเดือนก่อน

      Thanks :-)

  • @ChandrashekarCN
    @ChandrashekarCN หลายเดือนก่อน +1

    💖💖💖💖

    • @Radu
      @Radu  หลายเดือนก่อน

      :-) thanks for watching!

  • @Deditzy.
    @Deditzy. หลายเดือนก่อน +1

    Coding with Radu, coding with Radu … 0:52

    • @Radu
      @Radu  หลายเดือนก่อน

      :-) funny how some people like the intro and some don't :-D

    • @Deditzy.
      @Deditzy. หลายเดือนก่อน +1

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

  • @eyobbirhanu4856
    @eyobbirhanu4856 หลายเดือนก่อน +1

    We begin with basic html

    • @Radu
      @Radu  หลายเดือนก่อน

      :-) well, we do ;-)