Discuss Scratch
- Discussion Forums
- » Suggestions
- » A block that measures sounds from a sprite!
- gggamer24
-
Scratcher
45 posts
A block that measures sounds from a sprite!
A thing i feel like has been requested multiple times before is a Sounds/Sensing block that would measure the volume of a sound in the sprite:
when green flag clickedthis would basically make it so when “super cool song” would get louder, the sprites brightness and size would increase. i think this would be a useful addition to scratch.
play sound [super cool song v]
forever
set [brightness v] effect to ((sound volume))
set [size v] effect to ((sound volume))
end
- nikky10000000
-
Scratcher
500+ posts
A block that measures sounds from a sprite!
Yes! Support! There should be one for the pitch too
(Sound pitch :: sound)
- nikky10000000
-
Scratcher
500+ posts
A block that measures sounds from a sprite!
Wait..actually nvm.. doesn't that just..? Already exist?
(volume)(The pitch one doesn't exist tho so you could change the topic to be about that)
Last edited by nikky10000000 (Feb. 20, 2026 23:18:10)
- Exascerbescence
-
Scratcher
100+ posts
A block that measures sounds from a sprite!
Wait..actually nvm.. doesn't that just..? Already exist?I’m guessing they meant it would measure the volume of a sound, not the volume set by(volume)
set volume to (…::grey) %So you could use this to sync to a beat or something
- CaptFrIEdshrimp
-
Scratcher
500+ posts
A block that measures sounds from a sprite!
Support. Would it just return the decibel value that Scratch is outputting or of just that sprite?Sprite secnice the title is about the sprite only
- nikky10000000
-
Scratcher
500+ posts
A block that measures sounds from a sprite!
Oh, Then maybe but idkWait..actually nvm.. doesn't that just..? Already exist?I’m guessing they meant it would measure the volume of a sound, not the volume set by(volume)set volume to (…::grey) %So you could use this to sync to a beat or something
- Robo-Andrei
-
Scratcher
100+ posts
A block that measures sounds from a sprite!
Maybe upgrade the existing loudness block.
But what about the hat block?
loudness of [microphone v] audio :: sensing reporter
loudness of [device v] audio :: sensing reporter
loudness of [project v] audio :: sensing reporter
But what about the hat block?
when [loudness of microphone audio v] > (10)
when [loudness of device audio v] > (10)
when [loudness of project audio v] > (10)
Last edited by Robo-Andrei (March 8, 2026 17:31:59)
- gggamer24
-
Scratcher
45 posts
A block that measures sounds from a sprite!
Okay, to clear up what seems to be alot of confusion surrounding this topic, the aforementioned script would make the sprite get bigger and brighter ad a sound gets louder. the sound in question is the sound played by the
As for the
Ok, i think that's all.
start sound [pop v]and
play sound [pop v] until doneblocks. this new
(sound volume)block would get larger depending on how loud the sound file is. the currently existing
(volume)block just sets the general volume of the sprite, and any sounds the sprite plays. it is not affected by how loud the sound being played is.
As for the
(loudness)block, this uses your microphone to record external noise and its volume. the new
(sound volume)block would be similar and record internal noise and its volume, and thus not need your microphone.
Ok, i think that's all.
- Superplayer18
-
Scratcher
52 posts
A block that measures sounds from a sprite!
You mean this?
(Sound volume :: sound)
- gggamer24
-
Scratcher
45 posts
A block that measures sounds from a sprite!
You mean this?oh so that's how you make custom blocks in certain categories…(Sound volume :: sound)
also yes, that's what i mean.
Last edited by gggamer24 (Feb. 26, 2026 14:13:17)
- samuelthedude
-
Scratcher
500+ posts
A block that measures sounds from a sprite!
I’ve always wanted this for like a visualization circle. Support!
- GunesKing
-
Scratcher
1000+ posts
A block that measures sounds from a sprite!
A thing i feel like has been requested multiple times before is a Sounds/Sensing block that would measure the volume of a sound in the sprite:when green flag clickedthis would basically make it so when “super cool song” would get louder, the sprites brightness and size would increase. i think this would be a useful addition to scratch.
play sound [super cool song v]
forever
set [brightness v] effect to ((sound volume))
set [size v] effect to ((sound volume))
end
I love this suggestion! However, there is a workaround to implementing this, meaning there already is a way to measure sounds from a sprite.
- spongebob0604
-
Scratcher
16 posts
A block that measures sounds from a sprite!
if <confused how to put a custom color block> then
set [people asked to put a custom color block] to [inf]
- spongebob0604
-
Scratcher
16 posts
A block that measures sounds from a sprite!
if then
if <> then
if <> then
if <> then
end
end
end
end
- wasd3245
-
Scratcher
67 posts
A block that measures sounds from a sprite!
Do not blockspam!if then
if <> then
if <> then
if <> then
end
end
end
end
- Discussion Forums
- » Suggestions
-
» A block that measures sounds from a sprite!