Your lessons are always helpful thanks a lot Mr. Ian.
@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
Жыл бұрын
I know Its kinda bad doing this anyways...
@AYUSHGUPTA-pi1ib
4 жыл бұрын
Great Job
@UsefulProgrammer
4 жыл бұрын
Thank you for watching Ayush.
@pokebeaches1097
4 жыл бұрын
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
3 жыл бұрын
Awesome Nick. Please link to your project here so I can take a look.
@pokebeaches1097
3 жыл бұрын
@@UsefulProgrammer I will when I get back home! It almost mimics yours lol but i didn't do quotes I did drum sounds 😁
@pokebeaches1097
3 жыл бұрын
@@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
3 жыл бұрын
Nice work Nick!
@pokebeaches1097
3 жыл бұрын
@@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
@hajarelmajid6842
3 жыл бұрын
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
2 жыл бұрын
Instead of using class = "btn-block" on each button, try wrapping your entire button element with .
@mstrdstboy431
2 жыл бұрын
@@DavePueyoCarter Thanks bro you're a hero
@nepulkahandawa1984
4 жыл бұрын
Thank you this video was so helpful to me
@UsefulProgrammer
4 жыл бұрын
Awesome. Thank you for watching Nepul.
@Grogutech
3 жыл бұрын
2021 and it still helps! thanks man!
@user-mishapagan
3 жыл бұрын
Excellent, thank you!
@johnnyboygomez5500
3 жыл бұрын
Thanks so much!
@UsefulProgrammer
3 жыл бұрын
Thank you for watching.
@calvinjamesheath
3 жыл бұрын
great content!
@codehammer8125
2 жыл бұрын
you need to use react
@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(); }) })
@YazhShah
4 жыл бұрын
Wait your thing still has keystrokes at the end of the video.
@UsefulProgrammer
4 жыл бұрын
Huh?
@sergeymalin9243
2 жыл бұрын
Hello, How to write the same code on different lines?
Пікірлер: 32