From Test-Scratch-Wiki

Change Tempo by ()
2.0 Change Tempo by ().png
Category Sound
Type Stack
Introduced in 1.2

The Change Tempo by () block is a Sound block and a Stack block. The block changes the project's tempo by the specified amount. Changing the tempo affects how long the Play Drum () for () Beats block and the Play Note () for () Beats block will play, due to the tempo affecting the length of a beat.

Example Uses

As this block changes the tempo (which determines how long each beat is), it is mainly used to speed up and slow down the Play Drum () for () Beats block and the Play Note () for () Beats block.

Some common uses for the Change Tempo by () block:

  • Changing the speed of songs made with the Sound blocks
  • A music mixer
  • In a project, using a record player and setting the speed of the music to match the speed of the needle

Workaround

Main article: List of Block Workarounds

The block can be replicated with the following code:

set tempo to ((tempo) + (amount)) bpm // (amount) is change amount

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.