17.2: Play and Pause Button - p5.js Sound Tutorial

  Рет қаралды 66,004

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 38
@annasavery1823
@annasavery1823 3 жыл бұрын
I don't even know what I'd do without your videos! Can't thank you enough. I'm working through the p5.js course in Kadenze and every time I hit a brick wall I turn to your tutorials.
@TheRogue12
@TheRogue12 4 жыл бұрын
the pause() function acts like the stop() function now for some reason. I used the exact same code, but when I click the "play" button to resume the song it starts from the beginning. edit: the pause() function only works as shown in the video if you use createAudio() instead of loadSound().
@Krazy0
@Krazy0 4 жыл бұрын
Thank you! You helped me, I did not know about button.html("Button Name")
@danielheart6
@danielheart6 5 жыл бұрын
Hi, Shiffman. Can I share this video to Bilibili, a Chinese website, so as to let Chinese learners have the access to study P5js? In China, youtube is not available. Thanks for your consideration! Love u.
@bhavyabadhwar1
@bhavyabadhwar1 3 жыл бұрын
my code is not working? see: var button; function setup() { createCanvas(400, 400); button = createButton("hello"); button.mousePressed(f); } function draw() { background(0, 0, 255); } function f() { ellipse(200, 200, 60, 60) } please tell what is wrong in this?
@qtasma
@qtasma 7 жыл бұрын
Would this also work if I were to use this code to play and pause a game?
@thenews25
@thenews25 5 жыл бұрын
Thanks best information provided by you
@Anonimousxz
@Anonimousxz 7 жыл бұрын
Nice video!!! Why is the canvas necessary to rotate the sound?
@maliozers
@maliozers 5 жыл бұрын
mousePressed is not working ? for example; function setup() { createCanvas(400, 400); button = createButton("word"); button.mousePressed("presss"); //line4 } function presss(){ console.log("hi"); } TypeError: b.bind is not a function (sketch: line 4)
@mineman1736
@mineman1736 5 жыл бұрын
don't pass in the string for the function parameter within the mousePressed. Just pass in the name of the function you wish to call without any parenthesis.
@mattkaczmarczyk6953
@mattkaczmarczyk6953 5 жыл бұрын
praise be to go god 4 ur existance!! coding drunk now only because this makes it so simple
@JehanSaren
@JehanSaren Жыл бұрын
Sir Dan, please remake this one in pure java program without library please🙏
@endernamikaze1241
@endernamikaze1241 5 жыл бұрын
as the 6:13 Dan; i want this to change to pause Internet; okay...
@banothram4588
@banothram4588 5 жыл бұрын
Bro,I want your help How to read text using voice (sound symbol)
@justkitten508
@justkitten508 4 жыл бұрын
you are amazing
@elizabethc.9215
@elizabethc.9215 5 жыл бұрын
thank u
@mayatomarchio6430
@mayatomarchio6430 9 ай бұрын
Can you show how to add the libary to your project
@TheCodingTrain
@TheCodingTrain 9 ай бұрын
If you use the p5.js web editor, it'll be included automatically! I updated the video description to link correctly: thecodingtrain.com/tracks/sound/sound/2-pause-and-play-button
@chikendagr8994
@chikendagr8994 8 жыл бұрын
Nice.
@elanonimatov9726
@elanonimatov9726 4 жыл бұрын
*_Im subscriber #1,000,000 I love your videos!_*
@ibrarahmed3476
@ibrarahmed3476 6 жыл бұрын
nice try to make tins in processing I3 !!!!!!
@darshanthakare5639
@darshanthakare5639 5 жыл бұрын
Sir can please make a video on how to make a video player in p5.js.
@conando025
@conando025 4 жыл бұрын
Are you from Undertale? 1:17
@Zachariah-Abueg
@Zachariah-Abueg 2 жыл бұрын
1:13 *sans has entered the chat*
@alicegaming2650
@alicegaming2650 2 жыл бұрын
🥳
@jolonte810
@jolonte810 2 жыл бұрын
Programming be like: 3:10
@aleandromarianecci2640
@aleandromarianecci2640 8 жыл бұрын
how did you got black screen? I can't see clear with white
@MichaelBuergerArt
@MichaelBuergerArt 8 жыл бұрын
if you mean the canvas, do background(200) and mess around with the value
@aleandromarianecci2640
@aleandromarianecci2640 8 жыл бұрын
Michael Buerger I meant black screen for coding :D
@MichaelBuergerArt
@MichaelBuergerArt 8 жыл бұрын
Razor Sharp Oh lol, he is using Atom
@aleandromarianecci2640
@aleandromarianecci2640 8 жыл бұрын
ok thanks ;)
@atheshkumar.p9395
@atheshkumar.p9395 4 жыл бұрын
it is showing that else is an unexpected token
@dfhfdgfgdfshdfhe8257
@dfhfdgfgdfshdfhe8257 7 жыл бұрын
HAHAH. U have kids. Unlucky u.
@AP-gc5ss
@AP-gc5ss 4 жыл бұрын
Man keep the comedy to comedians, you are not funny at all...
17.3: Timing, Jumps and Cues - p5.js Sound Tutorial
12:50
The Coding Train
Рет қаралды 27 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 90 МЛН
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 102 МЛН
Всё пошло не по плану 😮
00:36
Miracle
Рет қаралды 3,4 МЛН
How to whistle ?? 😱😱
00:31
Tibo InShape
Рет қаралды 17 МЛН
Collisions Without a Physics Library! (Coding Challenge 184)
31:05
The Coding Train
Рет қаралды 115 М.
17.9: Sound Visualization: Graphing Amplitude - p5.js Sound Tutorial
13:36
17.1: Loading and Playing - p5.js Sound Tutorial
17:13
The Coding Train
Рет қаралды 149 М.
17.6: Sound Synthesis - p5.js Sound Tutorial
15:27
The Coding Train
Рет қаралды 43 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 90 МЛН