From Test-Scratch-Wiki
演奏音阶 () () 拍 | |
演奏音階 (60 v) (0.5) 拍 | |
类别 | Sound |
形狀 | 条形积木 |
The Play Note () for () Beats 积木 is a 音效类积木 and a 条形积木. The block will play the specified note with a set MIDI instrument for the specified amount of 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 演奏速度设为 () bpm block.
用法示例
As the block plays a note, it is widely used when a song is played with the 音效类积木.
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
重複直到 <(x) = [0]> 演奏音階 (x 座標) (0.1) 拍 變數 [x v] 改變 (-1) end
- Musical projects where you control instruments
重複無限次 演奏音階 ((滑鼠游標的 y) 除 (129) 的餘數) (0.1) 拍 end
- Creating a song made by blocks
重複 (2) 次 演奏音階 (62 v) (0.5) 拍 end 重複 (2) 次 演奏音階 (69 v) (0.5) 拍 end 重複 (2) 次 演奏音階 (81 v) (0.5) 拍 end 演奏音階 (69 v) (0.5) 拍
Notation
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:
Notes

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√2 (approximately 1.06), with A4 being 440 Hz.
Clef | Note | MIDI number | Frequency |
---|---|---|---|
Bass | C3 | 48 | 131 Hz |
C♯3/D♭3 | 49 | 139 Hz | |
D3 | 50 | 147 Hz | |
D♯3/E♭3 | 51 | 156 Hz | |
E3 | 52 | 165 Hz | |
F3 | 53 | 175 Hz | |
F♯3/G♭3 | 54 | 185 Hz | |
G3 | 55 | 196 Hz | |
G♯3/A♭3 | 56 | 208 Hz | |
A3 | 57 | 220 Hz | |
A♯3/B♭3 | 58 | 233 Hz | |
B3 | 59 | 247 Hz | |
Base and Treble | C4 (middle C) | 60 | 262 Hz |
Treble | C♯4/D♭4 | 61 | 277 Hz |
D4 | 62 | 294 Hz | |
D♯4/E♭4 | 63 | 311 Hz | |
E4 | 64 | 330 Hz | |
F4 | 65 | 349 Hz | |
F♯4/G♭4 | 66 | 370 Hz | |
G4 | 67 | 392 Hz | |
G♯4/A♭4 | 68 | 415 Hz | |
A4 | 69 | 440 Hz | |
A♯4/B♭4 | 70 | 466 Hz | |
B4 | 71 | 494 Hz | |
C5 | 72 | 523 Hz |
Beats
This table shows the beat number values for the most common rhythms in the most common time signatures, interpreted in the most basic way.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() | |
![]() |
4 | 3 | 2 | 1.5 | 1 | 0.67 | 0.75 | 0.5 | 0.33 | 0.375 | 0.25 |
![]() |
8 | 6 | 4 | 3 | 2 | 1.33 | 1.5 | 1 | 0.67 | 0.75 | 0.5 |
![]() |
2 | 1.5 | 1 | 0.75 | 0.5 | 0.33 | 0.375 | 0.25 | 0.167 | 0.1875 | 0.125 |
参见
播放音效 ()
• 播放音效 () 到底 • 停播所有音效 • 演奏节拍 () () 拍 • 演奏休息 () 拍 • 演奏音阶 () () 拍 • 演奏乐器设为 () • 音量改变 () • 音量设为 () % • 音量 • 演奏速度改变 () • 演奏速度设为 () bpm • 演奏速度更多积木… |