This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-02-17 21:55:50

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Loop sound block

This doesn't work:

<when green flag clicked>
<forever>
<play sound[ clip ]and wait>
<end>

The sound is not "seamless".  In other words, after the sound plays and before it starts again, there is a noticable pause.

We need a block that says:

play sound [___] and loop

I was able to get around the limitation like this:

<when green flag clicked>
<forever>
http://scratch.mit.edu/forums/img/sb_no_nums/playsound_.png
http://scratch.mit.edu/forums/img/sb_no_nums/wait_secs.png
<end>

I put 7 in the wait block where the sound file was 8 seconds long.

Last edited by BoltBait (2011-02-17 23:51:06)


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#2 2011-02-17 23:14:46

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Loop sound block

I think you mean 'seamless'  tongue
....................................
I support!  smile  But how exactly would it go? Would it have a 'loop this many times' thing or would it go on and on, similar to how a Forever block runs?


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#3 2011-02-17 23:17:19

hdarken
Scratcher
Registered: 2008-06-26
Posts: 1000+

Re: Loop sound block

That happened to me before, I agree and support.


http://i.imgur.com/VskBk.png
http://i.imgur.com/tgxVZ.jpg

Offline

 

#4 2011-02-17 23:34:39

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Loop sound block

I see why you would want that block, but a whole block on it seems a bit too extreme to me... maybe the [play sound [ ] until done] block could be improved to fit what you want? Eh, that probably isn't possible  tongue

I think that workaround you described is simple enough though  smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#5 2011-02-18 03:31:53

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Loop sound block

Support. I actually used the same technique in an attempt for a seamless sound, but it doesn't always work so well. I would like something that repeats seamlessly.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

Board footer