Discuss Scratch

leopardwing
Scratcher
1 post

How to do a Music Loop.

Here is how you make a music loop. You get a when flag clicked block then you get a play sound… until done you attach it to when flag clicked block the you go to control and get a forever block you place it in front of the play sound until done block so it sort of extends under the sound block then when you click the flag… TA DA! You have a music loop!



when green flag clicked
forever

play sound [ v] until done
end
Frillywings
Scratcher
3 posts

How to do a Music Loop.

leopardwing wrote:

Here is how you make a music loop. You get a when flag clicked block then you get a play sound… until done you attach it to when flag clicked block the you go to control and get a forever block you place it in front of the play sound until done block so it sort of extends under the sound block then when you click the flag… TA DA! You have a music loop!



when green flag clicked
forever

play sound [ v] until done
end

Thanks! Very helpful!
SkyPrison
Scratcher
5 posts

How to do a Music Loop.

Very Helpful! Thanks so much!!!!
when green flag clicked
forever

play sound [THANKS ]
end
Element_Edutainment
New Scratcher
3 posts

How to do a Music Loop.

Hi and thanks for sharing!

This is exactly what we set up in order to have a nice repeatable background music. However, there is a slight interuption whenever the sound or the loop is done and restarts. A performance problem? Is there anything we have to consider creating sound loops?

You may need to know that the project is relatively big.

Greetings.
asivi
Scratcher
1000+ posts

How to do a Music Loop.

Element_Edutainment wrote:

Hi and thanks for sharing!

This is exactly what we set up in order to have a nice repeatable background music. However, there is a slight interuption whenever the sound or the loop is done and restarts. A performance problem? Is there anything we have to consider creating sound loops?

You may need to know that the project is relatively big.

Greetings.
Perhaps there are a bit of silence at the start or the end of that sound.
quaylonlangford
New Scratcher
2 posts

How to do a Music Loop.

sorry
Element_Edutainment
New Scratcher
3 posts

How to do a Music Loop.

asivi wrote:

Element_Edutainment wrote:

Perhaps there are a bit of silence at the start or the end of that sound.

Thanks for your reply!

The files are just perfectly looped. So what else could it be?
Element_Edutainment
New Scratcher
3 posts

How to do a Music Loop.

Element_Edutainment wrote:

asivi wrote:

Element_Edutainment wrote:

Perhaps there are a bit of silence at the start or the end of that sound.

Thanks for your reply!

The files are just perfectly looped. So what else could it be?

Apparently, Scratch adds a little bit of extra silence to the beginning of an imported sound file. Deleting that solves the issue in my case. There's still a tiny delay, though.
Flamio2005
Scratcher
4 posts

How to do a Music Loop.

leopardwing wrote:

Here is how you make a music loop. You get a when flag clicked block then you get a play sound… until done you attach it to when flag clicked block the you go to control and get a forever block you place it in front of the play sound until done block so it sort of extends under the sound block then when you click the flag… TA DA! You have a music loop!



when green flag clicked
forever

play sound [ v] until done
end

This really helped for mlg mountain dew rescue!
lil_David
Scratcher
55 posts

How to do a Music Loop.

For some songs, especially video game songs, you may want to duplicate the sound and isolate the intro, then isolate one loop on the copy.
Then loop with this:
when green flag clicked
set [song v] to (pick random (1) to (10))
play sound (((song) * (2)) - (1)) until done
forever
play sound ((song) * (2)) until done
end

Last edited by lil_David (Aug. 1, 2016 02:26:07)

Snowball7639
Scratcher
6 posts

How to do a Music Loop.

Thanks!
Ziggy741
Scratcher
1000+ posts

How to do a Music Loop.

Snowball7639 wrote:

Thanks!
Please don't necropost. Thanks!

Powered by DjangoBB