(Redirected from Eng:Play Note () for () Beats)
|Play Note () for () Beats|
Prior to Scratch 1.2, this block used to be called Play Note () for () Secs, but was changed because the length of a beat can now be changed with the Set Tempo to () bpm block.
As the block plays a note, it is widely used when a song is played with the Sound blocks.
Some common uses for the Play Note () for () Beats block:
- Easy sound effects (numbers above 88 still work); very high and low notes make interesting sounds
repeat until <(x) = > play note (x) for (0.1) beats change [x v] by (-1) end
- Musical projects where you control instruments
forever play note ((mouse y) mod (129)) for (0.1) beats
- Creating a song made by blocks
repeat (2) play note (62 v) for (0.5) beats End repeat (2) play note (69 v) for (0.5) beats End repeat (2) play note (81 v) for (0.5) beats End play note (69 v) for (0.5) beats
The Play Note () for () Beats can sometimes be tricky to get used to since the notes and rhythms are notated with numbers, unlike sheet music. These diagrams may help:
There are 128 notes on the MIDI keyboard, numbered from 0 (C-1, about 8.18 Hz) to 127 (G9, 12500 Hz). Each note is 1 higher than the previous, and the ratio of frequency is always 12√ (approximately 1.06), with A4 being 440 Hz.
|Base and Treble||C4 (middle C)||60||262 Hz|
This table shows the beat number values for the most common rhythms in the most common time signatures, interpreted in the most basic way.