Discuss Scratch

Firedrake969
Scratcher
1000+ posts

Sound Loudness Block - Test it now!

Mr_sprite wrote:

Firedrake969 wrote:

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.
Frequency is not the same as loudness–frequency is related to pitch, and amplitude is related to volume.

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!

Firedrake969 wrote:

Mr_sprite wrote:

Firedrake969 wrote:

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.
Frequency is not the same as loudness–frequency is related to pitch, and amplitude is related to volume.

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.
imadrainpipe
Scratcher
100+ posts

Sound Loudness Block - Test it now!

Good idea

Mr_sprite
Scratcher
82 posts

Sound Loudness Block - Test it now!

Bump-a-bump!
Mr_sprite
Scratcher
82 posts

Sound Loudness Block - Test it now!

Bump!
Firedrake969
Scratcher
1000+ posts

Sound Loudness Block - Test it now!

Mr_sprite wrote:

Firedrake969 wrote:

Mr_sprite wrote:

Firedrake969 wrote:

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.
Frequency is not the same as loudness–frequency is related to pitch, and amplitude is related to volume.

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.
amplitude* please

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!

Firedrake969 wrote:

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!

Thepuzzlegame wrote:

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!

Mr_sprite wrote:

Thepuzzlegame wrote:

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.
I'm thinking of trying to write a JavaScript extension which adds a sound loudness block.

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!

Mr_sprite wrote:

Advanced description: It returns the frequency of the currently playing sound, as a number between 0-100. 0 meaning no sound, and 100 being the highest possible frequency/loudness possible
Do you mean 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.

clipd • osx clipboard manager and history

;
Mr_sprite
Scratcher
82 posts

Sound Loudness Block - Test it now!

jTron wrote:

Mr_sprite wrote:

Advanced description: It returns the frequency of the currently playing sound, as a number between 0-100. 0 meaning no sound, and 100 being the highest possible frequency/loudness possible
Do you mean 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!

Mr_sprite wrote:

jTron wrote:

Mr_sprite wrote:

Advanced description: It returns the frequency of the currently playing sound, as a number between 0-100. 0 meaning no sound, and 100 being the highest possible frequency/loudness possible
Do you mean 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.
Frequency does NOT relate to volume. It returns one or the other, but it cannot return both in one variable.

'17 rickoid

bf97b44a7fbd33db070f6ade2b7dc549
Mr_sprite
Scratcher
82 posts

Sound Loudness Block - Test it now!

Firedrake969 wrote:

Mr_sprite wrote:

jTron wrote:

Mr_sprite wrote:

Advanced description: It returns the frequency of the currently playing sound, as a number between 0-100. 0 meaning no sound, and 100 being the highest possible frequency/loudness possible
Do you mean 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.
Frequency does NOT relate to volume. It returns one or the other, but it cannot return both in one variable.

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.
Dreamo
Scratcher
500+ posts

Sound Loudness Block - Test it now!

Let's get this added to Scratch! Full on support


Mr_sprite
Scratcher
82 posts

Sound Loudness Block - Test it now!

Dreamo wrote:

Let's get this added to Scratch! Full on support
Thanks! Did you like thepuzzlegame's demo?
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)

Powered by DjangoBB