Discuss Scratch

ronford
Scratcher
26 posts

play sound --- for --- seconds

I really miss a ‘play sound — for — seconds’
or even better:
'play sound — from — to — seconds' (two time locations in the audio)
Now you're stuck playing the whole audio from only the beginning.
And because there is only a ‘stop all sounds’ possibility, and not a ‘stop this sound’, it makes stopping and starting of audio in different layers very limited.
Maybe a little complicated for younger programmers, but the possibilities of playing with audio inside a program is very limited (as opposed to the visual possibilities in Scratch) and this would possibly widen the scope on the audio side a little.


ProdigyZeta7
Scratcher
1000+ posts

play sound --- for --- seconds

I agree. Scratch should allow more flexible sound manipulation.



cheeseeater
Scratcher
1000+ posts

play sound --- for --- seconds

Agree, I would would like a ‘play sound for ___ seconds’ block.
Lilifant7253
Scratcher
1000+ posts

play sound --- for --- seconds

I agree! I would like a block like this too: Play sound ___till___.

I've reached the 1000+ post rank on wednesday, 11th Sept., 2013 18:29 (German time) / 12:29 (Eastern Standard Time)
Hi! I Iike helping others. So feel free to leave a question at my profile!

DotDash
Scratcher
1000+ posts

play sound --- for --- seconds

Support

My browser / operating system: MacOS Macintosh X 10.8.5, Chrome 29.0.1547.76, Flash 11.8 (release 800)
goldfish678
Scratcher
1000+ posts

play sound --- for --- seconds

There's a simple workaround:

play sound (pulldown menu)
wait (wanted time of sound playing) secs
ProdigyZeta7
Scratcher
1000+ posts

play sound --- for --- seconds

goldfish678 wrote:

There's a simple workaround:

play sound (pulldown menu)
wait (wanted time of sound playing) secs
O rly? Try starting a sound other than at 0:00.



mitchboy
Scratcher
1000+ posts

play sound --- for --- seconds

ProdigyZeta7 wrote:

goldfish678 wrote:

There's a simple workaround:

play sound (pulldown menu)
wait (wanted time of sound playing) secs
O rly? Try starting a sound other than at 0:00.
You could have it play with the volume at 0 for a while, then change the volume to 100. It doesn't work if you need it right away, though.

Capsicum annuum.
footsocktoe
Scratcher
1000+ posts

play sound --- for --- seconds

One simple solution is to get Audacity (free download) and use it to cut your sound into separate sounds, each of which begins where you need it to.


SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

PERCE-NEIGE
Scratcher
100+ posts

play sound --- for --- seconds

Why in audacity? You can cut and paste in Scratch sound editor.
The problem with stopping sound is real, I agree with the author of this post. When you have several sound playing in the same time, and you need to stop only ONE sound, you can't!
Imagine the extended possibility of programming if you could!
DotDash
Scratcher
1000+ posts

play sound --- for --- seconds

maybe ST could add a dropdown on the stop all sounds block so you could choose a specific sound, but it still has all in the dropdown.

My browser / operating system: MacOS Macintosh X 10.8.5, Chrome 29.0.1547.76, Flash 11.8 (release 800)
Foxgirlgamer
Scratcher
100+ posts

play sound --- for --- seconds

the second idea is good, because you can't make a cut-up of every sound variant you want, and if the times it begins/stops at are affected by something like variables it would be a pain to go

if variable=1
'play sound (1)'
if variable=2
'play sound (2)'
etc

it would be easier to just be like

'play sound (1) from (variable) to (end)

;
Charles12310
Scratcher
1000+ posts

play sound --- for --- seconds

I really think this should be useful because in there could be a wait when a block is runned.

play sound [sound v] for () secs :: sound


A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
Carriage
Scratcher
500+ posts

play sound --- for --- seconds

Waiiit this is a duplicate lemme find the link…
also, simple workaround:
play sound [meow v]
wait (1) secs
broadcast [next script v]
stop [this script v]

Please refer to me as Carry
My website


❝Life is like a tower. Remove one block and the whole thing comes tumbling down. — Carriage
Hey! Carry here. I’m 11, a girl, and I love making animations. Don’t forget to visit my profile! See you soon!
Scratch! :: #00EDFF
Imagine, :: #FF0000
Program, :: #FFFF00
Share :: #00E300
Charles12310
Scratcher
1000+ posts

play sound --- for --- seconds

Carriage wrote:

Waiiit this is a duplicate lemme find the link…
also, simple workaround:
play sound [meow v]
wait (1) secs
broadcast [next script v]
stop [this script v]
There's a stop all sounds block, you know?

However, what if another sound is playing at the ame time?


A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
DaEpikDude
Scratcher
1000+ posts

play sound --- for --- seconds

I think that the "play sound from (time) to (time) is a better idea: maybe the first dropdown could have “start” in it along with being able to type in any number, and the second could have “end”?

And all the world over, each nation's the same,
They've simply no notion of playing the game.
They argue with umpires, they cheer when they've won,
And they practice beforehand, which ruins the fun!
Nambaseking01
Scratcher
1000+ posts

play sound --- for --- seconds

Support, Scratch needs to get more serious and improvise with sound blocks — there's very low possibilites atm.

This is already possible using the set volume to () block if you give 0 in the input though, but that's a bit complicated.

Hey there! My name is Nammy. I'm a male Forum Helper and Scratch Wiki Editor.
Profile | Test Account | Talk with me here! | Griffpatch is quitting Scratch?!
--Explosion--
Scratcher
1000+ posts

play sound --- for --- seconds

Maybe instead of this block these?
start sound [sound v] at […] seconds::sound
stop sound [sound v]::sound
(current [time v] of sound [sound v]::sound)//with the options time, volume, and pitch

Last edited by kaj (Tomorrow 00:00:00)
✰✩✭✴★--Explosion--★✴✭✩✰
Forum helper | boy | platformers | 14yrs | guitar | website


Silvan_Zwick
Scratcher
8 posts

play sound --- for --- seconds

Charles12310 wrote:

(#13)
I really think this should be useful because in there could be a wait when a block is runned.

play sound [sound v] for () secs :: sound

DotDash wrote:

(#11)
maybe ST could add a dropdown on the stop all sounds block so you could choose a specific sound, but it still has all in the dropdown.
There is a
 start sound [sound v] at () seconds :: sound 
block and a
 play sound [sound v] starting at () seconds until done :: sound 
block in Snail IDE, along with a
 stop sound [sound v] :: sound 
block.

To see the whole signature:
1. Select this line
2. Hold the shift key and press the down arrow key repeatedly until you get to the bottom

Follow my brother, @Thehinofi
Follow my alt account, @TheZwick32, and my second alt, @_chipdip_.
Visit me on the Web at: https://silvanzwick.com

A wise man once wrote:

when you're born :: events hat
if <not <<<(following @Silvan_Zwick) = [true]> and <(following @TheZwick32) = [true]>> and <(following @_chipdip_) = [true]>>> then
SAY GOODBAYE!!! :: #FF0000
die :: #FF0000
have grimace steal all your money :: #FF0000
go to hell :: #FF0000
goofynamesnipe
Scratcher
22 posts

play sound --- for --- seconds

Can't you duplicate the sound and crop it at the correct length?
Although this could be useful for huge projects with a lot of music so semi support

Powered by DjangoBB