Discuss Scratch
- Discussion Forums
- » Suggestions
- » Sound Loudness Block - Test it now!
- Firedrake969
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
Frequency is not the same as loudness–frequency is related to pitch, and amplitude is related to volume.Is this similar to the volume block in Sounds?
No. The volume block shows the current volume in the Scratch player. This returns the frequency (loudness for more simple terms) of all of the currently playing sounds. So if you ran this:when green flag clicked
play sound [my new sound! v]
forever
set x to (sound loudness::looks)
end
It would always set the x position to a number between 0 and 100 based on how loud the sound is.
The volume block returns how loud, relatively, the sounds playing in the Scratch player are. This seems really similar.
'17 rickoid
bf97b44a7fbd33db070f6ade2b7dc549
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
Frequency is not the same as loudness–frequency is related to pitch, and amplitude is related to volume.Is this similar to the volume block in Sounds?
No. The volume block shows the current volume in the Scratch player. This returns the frequency (loudness for more simple terms) of all of the currently playing sounds. So if you ran this:when green flag clicked
play sound [my new sound! v]
forever
set x to (sound loudness::looks)
end
It would always set the x position to a number between 0 and 100 based on how loud the sound is.
The volume block returns how loud, relatively, the sounds playing in the Scratch player are. This seems really similar.
No. The volume block is the literal volume of the sound coming out of the speakers. The higher it is, the louder the sound coming out. It doesn't react at all to the sound being played.
This is what the block essentially returns. Those black bars are the frequency of the sound. I call it loudness to make it more simple, for the younger/less advanced users.
- Firedrake969
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
amplitude* pleaseFrequency is not the same as loudness–frequency is related to pitch, and amplitude is related to volume.Is this similar to the volume block in Sounds?
No. The volume block shows the current volume in the Scratch player. This returns the frequency (loudness for more simple terms) of all of the currently playing sounds. So if you ran this:when green flag clicked
play sound [my new sound! v]
forever
set x to (sound loudness::looks)
end
It would always set the x position to a number between 0 and 100 based on how loud the sound is.
The volume block returns how loud, relatively, the sounds playing in the Scratch player are. This seems really similar.
No. The volume block is the literal volume of the sound coming out of the speakers. The higher it is, the louder the sound coming out. It doesn't react at all to the sound being played.
This is what the block essentially returns. Those black bars are the frequency of the sound. I call it loudness to make it more simple, for the younger/less advanced users.
I think I get it, though–say the middle is 0, and the highest is 100. Would the sound loudness block return the the “height” of one “bar” times the volume divided by 100?
“height” of “bar”: h
volume: v
l = h * v/100
Right?
'17 rickoid
bf97b44a7fbd33db070f6ade2b7dc549
- Thepuzzlegame
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
A pity this wasn't implemented in the latest update despite its suggestion.
hi!
- Firedrake969
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
It would depend on the computer's volume level, though, it seems.
Last edited by Firedrake969 (Aug. 14, 2014 01:08:20)
'17 rickoid
bf97b44a7fbd33db070f6ade2b7dc549
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
It would depend on the computer's volume level, though, it seems.
Did you try the example demo included?
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
A pity this wasn't implemented in the latest update despite its suggestion.
Sadly, the Scratch Team hasn't added very many of the suggestions.
- Thepuzzlegame
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
I'm thinking of trying to write a JavaScript extension which adds a sound loudness block.A pity this wasn't implemented in the latest update despite its suggestion.
Sadly, the Scratch Team hasn't added very many of the suggestions.
hi!
- MetallicDragon
- Scratcher
1 post
Sound Loudness Block - Test it now!
This would be fantastic! I love the idea! 100% support!
- jTron
- Scratcher
100+ posts
Sound Loudness Block - Test it now!
frequency of the currently playing sound, as a number between 0-100. 0 meaning no sound, and 100 being the highest possible frequency/loudness possibleDo you mean Advanced description: It returns the intensity? Frequency is another matter entirely and many members of the community would also like that block, but I don't think it's what you're suggesting.
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
frequency of the currently playing sound, as a number between 0-100. 0 meaning no sound, and 100 being the highest possible frequency/loudness possibleDo you mean Advanced description: It returns the intensity? Frequency is another matter entirely and many members of the community would also like that block, but I don't think it's what you're suggesting.
Nope. It does in fact return frequency. In AS3 there is a sound mixer class that returns the frequency. I read all of the documentation. I converted the value it returns to be between 0 and 100.
- Thepuzzlegame
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
Perhaps you should rename the block sound frequency or sound amplitude since a few people seem to be confused by sound loudness (though I personally am not)
Last edited by Thepuzzlegame (Aug. 17, 2014 21:37:22)
hi!
- Firedrake969
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
Frequency does NOT relate to volume. It returns one or the other, but it cannot return both in one variable.frequency of the currently playing sound, as a number between 0-100. 0 meaning no sound, and 100 being the highest possible frequency/loudness possibleDo you mean Advanced description: It returns the intensity? Frequency is another matter entirely and many members of the community would also like that block, but I don't think it's what you're suggesting.
Nope. It does in fact return frequency. In AS3 there is a sound mixer class that returns the frequency. I read all of the documentation. I converted the value it returns to be between 0 and 100.
'17 rickoid
bf97b44a7fbd33db070f6ade2b7dc549
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
Frequency does NOT relate to volume. It returns one or the other, but it cannot return both in one variable.frequency of the currently playing sound, as a number between 0-100. 0 meaning no sound, and 100 being the highest possible frequency/loudness possibleDo you mean Advanced description: It returns the intensity? Frequency is another matter entirely and many members of the community would also like that block, but I don't think it's what you're suggesting.
Nope. It does in fact return frequency. In AS3 there is a sound mixer class that returns the frequency. I read all of the documentation. I converted the value it returns to be between 0 and 100.
I know. It returns the frequency. Volume is the way that sounds are ordered on a scale from quiet to loud. You can't take a sound and “get” it's volume. That is just impossible. Just like the current loudness block returns not technically the loudness of the microphone, this block uses the word loudness to represent a more technical term that younger users might not understand.
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
Thanks! Did you like thepuzzlegame's demo? Let's get this added to Scratch! Full on support
- DemCupcakesYo
- Scratcher
100+ posts
Sound Loudness Block - Test it now!
Volume sounds like a better name, but +1.
-DemCupcakesYo
If you support, it should be +1. If you don't, it should be +0, not -1. If you half-support, it should be +1/2 or +0.5, not +0. You can't subtract from the supporters.
My browser / operating system: Windows 7, Chrome 36.0.1985.125, Flash 14.0 (release 0)
- Discussion Forums
- » Suggestions
- » Sound Loudness Block - Test it now!