Discuss Scratch

enderawesomeness
Scratcher
84 posts

Suggestion for New Sound Blocks!

enderawesomeness wrote:

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] :: sound

I'll add the blocks

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


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

Suggestion for New Sound Blocks!

I can't delete this post

Last edited by enderawesomeness (April 5, 2017 22:04:26)


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

Suggestion for New Sound Blocks!

enderawesomeness wrote:

I can't delete this post
Yes, only the scratch team can.




ROAD TO 10,000 POSTS
████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 64%










If you can read this, my signature cubeupload has been eaten by an evil kumquat!
hehehe!Mytiptopsecrettopicidentifier!ahjdgggfhjadggahjsahasgdjfsdjfga

enderawesomeness
Scratcher
84 posts

Suggestion for New Sound Blocks!

jromagnoli wrote:

enderawesomeness wrote:

I can't delete this post
Yes, only the scratch team can.
LEL

UNIDENTFIED CRINGY OBJECT :: looks
OMG IT'S ENDERAWESOMENESS :: looks
EPICoder187
Scratcher
2 posts

Suggestion for New Sound Blocks!

Im trying to stop a sound in a backdrop, and then play another. If someone knows, pls reply.
when green flag clicked
forever
say [HELP ME PLS]
end

Powered by DjangoBB