Discuss Scratch

enderawesomeness
Scratcher
84 posts

Suggestion for New Sound Blocks!

There are things I've had to do that require pausing a sound, and in scratch currently, that is impossible. Hey Scratch Team, how about you put new sound blocks into Scratch 3.0! It's a good idea, and it would make doing some things with sounds a lot easier and not impossible.

Example:
pause all sounds :: sound
continue all sounds :: sound
(yeah it's a duplicate, I don't care. I thought it was an original idea, also I'm keeping it so that the part below would make sense)

There should be sound blocks for individual sounds too!
pause sound [pop v] :: sound
continue sound [pop v] :: sound
stop sound [pop v] :: sound
set volume of sound [pop v] to (100) % :: sound
change volume of sound [pop v] by (-10) :: sound

Maybe a new variable could be added!
(current time position of sound [name v] :: sound )

and there could be this block to go along with it!
play sound [pop v] from time (1) :: sound

Please take this into consideration!
If you are not the ST and you think this is a good idea. Then support this forum thread because I really want this idea to be a reality.
Thanks you for viewing, have a nice day!

Last edited by enderawesomeness (April 5, 2017 22:03:25)


UNIDENTFIED CRINGY OBJECT :: looks
OMG IT'S ENDERAWESOMENESS :: looks
DominoDragon1
Scratcher
1000+ posts

Suggestion for New Sound Blocks!

Most, if not all, have been suggested already. Let me find a link. Thanks!

Edit: Link for pause/play.
Edit2: maybe there isn't one made already for changing the volume of a single sound clip.

Last edited by DominoDragon1 (March 16, 2017 11:53:26)


There are 10 kinds of people in the world, those who know binary and those who don't. “And those who think they do but are still waiting on 8 more people.” (Sigton).
UtopiaAnimeDC
Scratcher
39 posts

Suggestion for New Sound Blocks!

This is a very confusing suggestion. What if there's more than one type of “pop” playing? Would it pause all of the “pop” sounds or just one type? And would the volume of the sound change for all the pop noises?

No support overall, all you need are clones to create a decent sound engine to do all this stuff in.

For example, look at this project's sound engine: https://scratch.mit.edu/projects/119965457/

MANAGER AND HEAD CREATIVE DIRECTOR OF THE UTOPIA ANIME COLLAB

Utopia-Related Content
Official Website
Utopia Season 1 Studio
Utopia 2015 Preview
Utopia 2017 Promo Trailer
All Things Utopia Studio


Other
enderawesomeness
Scratcher
84 posts

Suggestion for New Sound Blocks!

UtopiaAnimeDC wrote:

This is a very confusing suggestion. What if there's more than one type of “pop” playing? Would it pause all of the “pop” sounds or just one type? And would the volume of the sound change for all the pop noises?

No support overall, all you need are clones to create a decent sound engine to do all this stuff in.

For example, look at this project's sound engine: https://scratch.mit.edu/projects/119965457/

The sound would only be per sprite, a sprite would stop the pop sound if another pop sound is played in the same sprite. Same goes fore all other sounds.

UNIDENTFIED CRINGY OBJECT :: looks
OMG IT'S ENDERAWESOMENESS :: looks
enderawesomeness
Scratcher
84 posts

Suggestion for New Sound Blocks!

DominoDragon1 wrote:

Most, if not all, have been suggested already. Let me find a link. Thanks!

Edit: Link for pause/play.
Edit2: maybe there isn't one made already for changing the volume of a single sound clip.

ok

UNIDENTFIED CRINGY OBJECT :: looks
OMG IT'S ENDERAWESOMENESS :: looks
TheLogFather
Scratcher
1000+ posts

Suggestion for New Sound Blocks!

enderawesomeness wrote:

set volume of sound [pop v] to (100) % :: sound
change volume of sound [pop v] by (-10) :: sound
I'll just note that the (volume) is sprite/clone/stage-specific.

That means changing it will only affect sounds/notes that are playing in the same sprite/clone/stage.

Also, if you have a clone playing sounds/notes, you can stop everything playing in that clone just by deleting it.


If you make use of the above capabilities then it's possible to do some quite decent things, even with the built-in Scratch note-blocks.

Here's a demo project to show what's possible:

https://scratch.mit.edu/projects/140694370/


Still, it'd be nice to have the capability to pause a sound (and then continue playing it from where it paused).

But, I think an even more generally useful capability would be a reporter block to get the current ‘time position’ for a sound, and a block that allows you to start playing from a specific time:

(current time position for sound [name v] :: sound ) // could do with better wording
play sound [name v] from time (1) secs :: sound // also, have another block with "until done"...?

Having the above would allow you to effectively pause and restart a sound (along with *many* other things…) – though I think it'd be somewhat more intuitive if there was also a "stop playing sound [name v]" block (rather than having to delete a clone to stop it, after keeping track of the sound's time position in a global variable, etc., so you can restart it from that point).

Last edited by TheLogFather (March 16, 2017 15:02:24)


Siggy the Kumquat slayer:
Main account: DadOfMrLog –– Frameworks for basic pen-rendered 3D in scratch (see studio). Examples:

- - - - 3D Text - - - - - - Simple shapes - - - Controllable structures - - - On the ground - - - - - - In space - - - -

TheLogFather
Scratcher
1000+ posts

Suggestion for New Sound Blocks!

I forgot to also add that it *is* possible to use a broadcast to ‘target’ a particular sound to be stopped in a sprite/clone/stage, even if that sprite/clone/stage has other sounds playing at the same time:

when GF clicked
set [playing SomeSound v] to [no]
when I receive [start/stop playing SomeSound v]
if <(playing SomeSound)=[no]> then
set [playing SomeSound v] to [yes] // keep a record to note the sound is being played
play sound [SomeSound v] until done // *must* use "until done" for this to work...
end
set [playing SomeSound v] to [no] // no longer playing the sound

The first time you send the broadcast it will start playing the sound.

If you send the broadcast again *after* it has finished playing then it will play it again.

But if you send it while it is still playing then it will stop that particular sound!

(Note that it will also stop it playing if you use the “stop other scripts in sprite” block. In that case you should also switch the value of variable “playing SomeSound” back to “no”, to ensure it starts it again the next time you send the broadcast.)

Last edited by TheLogFather (March 16, 2017 14:59:16)


Siggy the Kumquat slayer:
Main account: DadOfMrLog –– Frameworks for basic pen-rendered 3D in scratch (see studio). Examples:

- - - - 3D Text - - - - - - Simple shapes - - - Controllable structures - - - On the ground - - - - - - In space - - - -

duckboycool
Scratcher
1000+ posts

Suggestion for New Sound Blocks!

Please remove the pause/continue blocks as they are duplicates. You can keep set/change volume. Thank you.

Last edited by duckboycool (March 17, 2017 00:26:39)


I used to be active on the forums, but I have mostly moved past Scratch. I still do check my Scratch messages, so if you'd like to talk to me, just pop a comment on my profile. My main project on Scratch was Cookie Clicker, but I've also recently made a project called Snake Snake, a game based off of Snake, but there are two snakes, and you can play either singleplayer or multiplayer.

enderawesomeness
Scratcher
84 posts

Suggestion for New Sound Blocks!

TheLogFather wrote:

enderawesomeness wrote:

set volume of sound [pop v] to (100) % :: sound
change volume of sound [pop v] by (-10) :: sound
I'll just note that the (volume) is sprite/clone/stage-specific.

That means changing it will only affect sounds/notes that are playing in the same sprite/clone/stage.

Also, if you have a clone playing sounds/notes, you can stop everything playing in that clone just by deleting it.


If you make use of the above capabilities then it's possible to do some quite decent things, even with the built-in Scratch note-blocks.

Here's a demo project to show what's possible:

https://scratch.mit.edu/projects/140694370/


Still, it'd be nice to have the capability to pause a sound (and then continue playing it from where it paused).

But, I think an even more generally useful capability would be a reporter block to get the current ‘time position’ for a sound, and a block that allows you to start playing from a specific time:

(current time position for sound [name v] :: sound ) // could do with better wording
play sound [name v] from time (1) secs :: sound // also, have another block with "until done"...?

Having the above would allow you to effectively pause and restart a sound (along with *many* other things…) – though I think it'd be somewhat more intuitive if there was also a "stop playing sound [name v]" block (rather than having to delete a clone to stop it, after keeping track of the sound's time position in a global variable, etc., so you can restart it from that point).


Uh the "stop playing sound " block is there:
stop sound [pop v]

UNIDENTFIED CRINGY OBJECT :: looks
OMG IT'S ENDERAWESOMENESS :: looks
enderawesomeness
Scratcher
84 posts

Suggestion for New Sound Blocks!

DominoDragon1 wrote:

Most, if not all, have been suggested already. Let me find a link. Thanks!

Edit: Link for pause/play.
Edit2: maybe there isn't one made already for changing the volume of a single sound clip.
actually, it's not directed towards sounds

UNIDENTFIED CRINGY OBJECT :: looks
OMG IT'S ENDERAWESOMENESS :: looks
DominoDragon1
Scratcher
1000+ posts

Suggestion for New Sound Blocks!

enderawesomeness wrote:

DominoDragon1 wrote:

Most, if not all, have been suggested already. Let me find a link. Thanks!

Edit: Link for pause/play.
Edit2: maybe there isn't one made already for changing the volume of a single sound clip.
actually, it's not directed towards sounds
Isn't this whole thing about sounds???

There are 10 kinds of people in the world, those who know binary and those who don't. “And those who think they do but are still waiting on 8 more people.” (Sigton).
enderawesomeness
Scratcher
84 posts

Suggestion for New Sound Blocks!

DominoDragon1 wrote:

enderawesomeness wrote:

DominoDragon1 wrote:

Most, if not all, have been suggested already. Let me find a link. Thanks!

Edit: Link for pause/play.
Edit2: maybe there isn't one made already for changing the volume of a single sound clip.
actually, it's not directed towards sounds
Isn't this whole thing about sounds???

actually, It's directed towards the want for a pause button that pauses everything in the project.

UNIDENTFIED CRINGY OBJECT :: looks
OMG IT'S ENDERAWESOMENESS :: looks
DominoDragon1
Scratcher
1000+ posts

Suggestion for New Sound Blocks!

enderawesomeness wrote:

DominoDragon1 wrote:

enderawesomeness wrote:

DominoDragon1 wrote:

Most, if not all, have been suggested already. Let me find a link. Thanks!

Edit: Link for pause/play.
Edit2: maybe there isn't one made already for changing the volume of a single sound clip.
actually, it's not directed towards sounds
Isn't this whole thing about sounds???

actually, It's directed towards the want for a pause button that pauses everything in the project.
And the other blocks mentioned…
You said “stop/start all sounds”.

There are 10 kinds of people in the world, those who know binary and those who don't. “And those who think they do but are still waiting on 8 more people.” (Sigton).
enderawesomeness
Scratcher
84 posts

Suggestion for New Sound Blocks!

DominoDragon1 wrote:

enderawesomeness wrote:

DominoDragon1 wrote:

enderawesomeness wrote:

DominoDragon1 wrote:

Most, if not all, have been suggested already. Let me find a link. Thanks!

Edit: Link for pause/play.
Edit2: maybe there isn't one made already for changing the volume of a single sound clip.
actually, it's not directed towards sounds
Isn't this whole thing about sounds???

actually, It's directed towards the want for a pause button that pauses everything in the project.
And the other blocks mentioned…
You said “stop/start all sounds”.

Well, I see only about 10% of this forum thread (the we are on right now) being duplicate of that one.

UNIDENTFIED CRINGY OBJECT :: looks
OMG IT'S ENDERAWESOMENESS :: looks
DominoDragon1
Scratcher
1000+ posts

Suggestion for New Sound Blocks!

enderawesomeness wrote:

DominoDragon1 wrote:

enderawesomeness wrote:

DominoDragon1 wrote:

enderawesomeness wrote:

DominoDragon1 wrote:

Most, if not all, have been suggested already. Let me find a link. Thanks!

Edit: Link for pause/play.
Edit2: maybe there isn't one made already for changing the volume of a single sound clip.
actually, it's not directed towards sounds
Isn't this whole thing about sounds???

actually, It's directed towards the want for a pause button that pauses everything in the project.
And the other blocks mentioned…
You said “stop/start all sounds”.

Well, I see only about 10% of this forum thread (the we are on right now) being duplicate of that one.
It's still a partial duplicate…

There are 10 kinds of people in the world, those who know binary and those who don't. “And those who think they do but are still waiting on 8 more people.” (Sigton).
enderawesomeness
Scratcher
84 posts

Suggestion for New Sound Blocks!

DominoDragon1 wrote:

enderawesomeness wrote:

DominoDragon1 wrote:

enderawesomeness wrote:

DominoDragon1 wrote:

enderawesomeness wrote:

DominoDragon1 wrote:

Most, if not all, have been suggested already. Let me find a link. Thanks!

Edit: Link for pause/play.
Edit2: maybe there isn't one made already for changing the volume of a single sound clip.
actually, it's not directed towards sounds
Isn't this whole thing about sounds???

actually, It's directed towards the want for a pause button that pauses everything in the project.
And the other blocks mentioned…
You said “stop/start all sounds”.

Well, I see only about 10% of this forum thread (the we are on right now) being duplicate of that one.
It's still a partial duplicate…
sooooooo, I can keep my stuf?

UNIDENTFIED CRINGY OBJECT :: looks
OMG IT'S ENDERAWESOMENESS :: looks
DominoDragon1
Scratcher
1000+ posts

Suggestion for New Sound Blocks!

enderawesomeness wrote:

DominoDragon1 wrote:

enderawesomeness wrote:

DominoDragon1 wrote:

enderawesomeness wrote:

DominoDragon1 wrote:

enderawesomeness wrote:

DominoDragon1 wrote:

Most, if not all, have been suggested already. Let me find a link. Thanks!

Edit: Link for pause/play.
Edit2: maybe there isn't one made already for changing the volume of a single sound clip.
actually, it's not directed towards sounds
Isn't this whole thing about sounds???

actually, It's directed towards the want for a pause button that pauses everything in the project.
And the other blocks mentioned…
You said “stop/start all sounds”.

Well, I see only about 10% of this forum thread (the we are on right now) being duplicate of that one.
It's still a partial duplicate…
sooooooo, I can keep my stuf?
Yeah, of course. Maybe edit the first post, and get rid of those blocks, but definitely keep the topic.

There are 10 kinds of people in the world, those who know binary and those who don't. “And those who think they do but are still waiting on 8 more people.” (Sigton).
enderawesomeness
Scratcher
84 posts

Suggestion for New Sound Blocks!

DominoDragon1 wrote:

Wow, I have 1000110110 posts! In binary, of course!
wow man.

UNIDENTFIED CRINGY OBJECT :: looks
OMG IT'S ENDERAWESOMENESS :: looks
SpongyGames
Scratcher
43 posts

Suggestion for New Sound Blocks!

I think just a simple “stop all sounds in this sprite” would suffice.
enderawesomeness
Scratcher
84 posts

Suggestion for New Sound Blocks!

SpongyGames wrote:

I think just a simple “stop all sounds in this sprite” would suffice.
please elaborate on that thought so I can better understand what you are trying to say.

UNIDENTFIED CRINGY OBJECT :: looks
OMG IT'S ENDERAWESOMENESS :: looks

Powered by DjangoBB

Standard | Mobile