Build a Drum Machine - Front End Libraries - Projects Free Code Camp

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ย. 2024

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

  • @zken1856
    @zken1856 2 ปีที่แล้ว +1

    Your lessons are always helpful thanks a lot Mr. Ian.

  • @arcelford-qi7vr
    @arcelford-qi7vr 2 หลายเดือนก่อน

    Even though no one appreciates you brother! We are!!! -Programmers!!!

  • @adro1d
    @adro1d ปีที่แล้ว

    Nice tutorial I did the display getting the argument of the play function this way:
    function play(str) {
    let string = arguments[0]
    document.getElementById("display").innerText = string
    let audio = document.getElementById(str);
    audio.currentTime = 0;
    audio.play();
    }
    I added " audio.currentTime = 0 " so you can hear the samples more quickly if you repeat the sample :)

    • @adro1d
      @adro1d ปีที่แล้ว

      I know Its kinda bad doing this anyways...

  • @pokebeaches1097
    @pokebeaches1097 4 ปีที่แล้ว +1

    Kick ass video brother! I spent an extra day churching mine up a bit but this video really helped me out so much thank you!

    • @UsefulProgrammer
      @UsefulProgrammer  4 ปีที่แล้ว +1

      Awesome Nick. Please link to your project here so I can take a look.

    • @pokebeaches1097
      @pokebeaches1097 4 ปีที่แล้ว

      @@UsefulProgrammer I will when I get back home! It almost mimics yours lol but i didn't do quotes I did drum sounds 😁

    • @pokebeaches1097
      @pokebeaches1097 4 ปีที่แล้ว +1

      @@UsefulProgrammer nickcodes86.github.io/drumMachine/ it could use some more love but ive been having some health problems and haven't been able to dedicate as much time as I'd like to as of late! For some reason on cellphones the phone has to be turned to align properly, didnt have much time to look into how to figure it out. Looking forward to doing the JS calculator

    • @UsefulProgrammer
      @UsefulProgrammer  4 ปีที่แล้ว +1

      Nice work Nick!

    • @pokebeaches1097
      @pokebeaches1097 4 ปีที่แล้ว

      @@UsefulProgrammer Thanks! Hoping to get a better grip on everything as i spend more time with this stuff! Just started back in the end of June

  • @Glowupy126
    @Glowupy126 3 ปีที่แล้ว +5

    YOU GOT THE RIGHT NAME BUDDY 'USEFUL' ! I just have a little problem is that my buttons doesn't take the whole space as yours do, I am working with Bootstrap too, I've inserted the classes btn btn-primary and btn-block, but it just take the width of what it holds which is a single letter, if you could help me out I'll be super grateful, thank you for the real live code

    • @DavePueyoCarter
      @DavePueyoCarter 3 ปีที่แล้ว +2

      Instead of using class = "btn-block" on each button, try wrapping your entire button element with .

    • @mstrdstboy431
      @mstrdstboy431 3 ปีที่แล้ว +1

      @@DavePueyoCarter Thanks bro you're a hero

  • @Grogutech
    @Grogutech 3 ปีที่แล้ว

    2021 and it still helps! thanks man!

  • @AYUSHGUPTA-pi1ib
    @AYUSHGUPTA-pi1ib 4 ปีที่แล้ว +2

    Great Job

  • @user-mishapagan
    @user-mishapagan 3 ปีที่แล้ว

    Excellent, thank you!

  • @johnnyboygomez5500
    @johnnyboygomez5500 4 ปีที่แล้ว +1

    Thanks so much!

  • @finnzao_
    @finnzao_ ปีที่แล้ว

    Great video! Here another way to make the sounds play on click button :
    const buttonsDrums = document.querySelectorAll(".drum-pad")
    buttonsDrums.forEach(function (btn) {
    btn.addEventListener("click", function (e) {
    const audio = e.target.firstChild.nextSibling;
    audio.play();
    })
    })

  • @calvinjamesheath
    @calvinjamesheath 4 ปีที่แล้ว

    great content!

  • @YazhShah
    @YazhShah 4 ปีที่แล้ว +1

    Wait your thing still has keystrokes at the end of the video.

  • @sergeymalin9243
    @sergeymalin9243 3 ปีที่แล้ว

    Hello, How to write the same code on different lines?

  • @codehammer8125
    @codehammer8125 3 ปีที่แล้ว +1

    you need to use react

  • @ganeshgurua2943
    @ganeshgurua2943 3 ปีที่แล้ว

    What is the name of your editor????

  • @YazhShah
    @YazhShah 4 ปีที่แล้ว +1

    OMG I realized what I did