This Scratch extension lets you:
- Play millions of songs with one block.
- Animate in time to the music.
- Remix the beats.
This Scratch extension lets you:
[scratchblocks element=div]
♫ play music like [morena mía]
[/scratchblocks]
Enter the name of a song, band, or album (or just type in anything!), and it will play the first search result from Spotify.
[scratchblocks element=div]
♫ play music like [somos dos] and wait
[/scratchblocks]
As above, but the block waits until the music clip (up to 30 seconds) has ended. Put this block inside a forever to seamlessly loop the music.
[scratchblocks element=”div”]
forever
♫ play music like [somos dos] and wait
[/scratchblocks]
[scratchblocks element=div]
♫ [track v] name
[/scratchblocks]
Report the track name, artist name, album name, or full name combining all three (then you get [track] by [artist] from [album]).
[scratchblocks element=div]
♫ play next beat
[/scratchblocks]
Play the next beat of the song. Try to connecting this to a “When Key Pressed” block, and tap it in time to perform the song.
[scratchblocks element=div]
♫ play beat (4)
[/scratchblocks]
Play the next beat of the song. Try to connecting this to a “When Key Pressed” block, and tap it in time to perform the song.
[scratchblocks element=”div”]
when [left arrow v] key pressed
♫ play beat (7)
[/scratchblocks]
[scratchblocks element=”div”]
when [rigth arrow v] key pressed
♫ play beat (13)
[/scratchblocks]
[scratchblocks element=div]
♫ play beat (4) and wait
[/scratchblocks]
Play a single beat and wait. Try stacking these together in a loop to make your own remix. Get some variety by setting the beat number with a random number or a variable.
[scratchblocks element=”div”]
forever
♫ play beat (1) and wait
♫ play beat (2) and wait
[/scratchblocks]
[scratchblocks element=div]
(♫ current beat :: extension)
[/scratchblocks]
Reports the current beat number as the song plays.
[scratchblocks element=div]
♫ every beat :: hat
[/scratchblocks]
Do something every beat of the song. This lets you animate in time to the music- or even add your own sounds (more cowbell?).
[scratchblocks element=”div”]
♫ every beat :: hat
next costume
[/scratchblocks]
[scratchblocks element=div]
♫ every 4 beats :: hat
[/scratchblocks]
Do something every four beats of the song. Add some variety to your animation!
[scratchblocks element=”div”]
♫ every 4 beats :: hat
set size to (150) %
repeat (10)
change size by (-5)
[/scratchblocks]
[scratchblocks element=div]
♫ stop the music
[/scratchblocks]
Stop the song. You can also press the “stop” button next to the green flag.