Discuss Scratch
- Discussion Forums
- » Suggestions
- » Sound Loudness Block - Test it now!
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
— I am currently updating the block. It will have two modes, frequency and amplitude!
This block would exist to report a number (0-100) based on the frequency of the playing sound. It is similar to the loudness block, but it does not use the microphone. To get a better idea of what I mean, you can test the block online right now Scratch Sound Loudness Online
The block looks like this:
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 possible.
Many Scratchers use the (loudness) block to gather the volume of the sound coming out of the computers speakers through a microphone. Recently NeonTech had a project featured that used a microphone in the way I just described. Many Scratchers commented that they couldn't use the project because they didn't have a mic. This block will fix that! http://scratch.mit.edu/projects/23370689/
This doesn't only have to be for audio visualizers. One could also create a game and use this block to randomly spawn an enemy when the music gets above a certain frequency.
Thepuzzlegame has created a demo for everyone to test! Open this Project inside the Scratch Sound Loudness Online link. Green Flag.
And if you want a song to test with it, here you go! : Transcendence
This block would exist to report a number (0-100) based on the frequency of the playing sound. It is similar to the loudness block, but it does not use the microphone. To get a better idea of what I mean, you can test the block online right now Scratch Sound Loudness Online
The block looks like this:
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 possible.
Many Scratchers use the (loudness) block to gather the volume of the sound coming out of the computers speakers through a microphone. Recently NeonTech had a project featured that used a microphone in the way I just described. Many Scratchers commented that they couldn't use the project because they didn't have a mic. This block will fix that! http://scratch.mit.edu/projects/23370689/
This doesn't only have to be for audio visualizers. One could also create a game and use this block to randomly spawn an enemy when the music gets above a certain frequency.
Thepuzzlegame has created a demo for everyone to test! Open this Project inside the Scratch Sound Loudness Online link. Green Flag.
And if you want a song to test with it, here you go! : Transcendence
Supporters (37 so far!!!):
Blueinkproductions
astro-mechanic
savaka
DarkFusion
Thepuzzlegame
djdolphin
liam48D
Chainmanner
imadrainpipe
MetallicDragon
Dreamo
DemCupcakesYo
gigapouch
TheHockeyist
davidkt
The_Grits
ScratchModelMaker
Scratchifier
Code_Bender
digthebone (x3 support)
ealgase
1timetraveler
mundofinkyenglish
MewTheSmasher
Audius
rollercoasterfan
iamlink1
MegaApuTurkUltra
IceCube291
MV42Rises
Kal_Kal_Kal
meowmoo
Rexone
PrincessPanda_test_
fmtfmtfmt2
Pepperoni505
Alatis
Last edited by Mr_sprite (May 31, 2015 01:39:54)
- astro-mechanic
- Scratcher
500+ posts
Sound Loudness Block - Test it now!
I got bored for a minute, so I made a demo. The sound effect in there was really just the first WAV I found xD
sign here
emperor of shiny things
emperor of shiny things
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
made a demo. The sound effect in there was really just the first WAV I found xDDid you enjoy the block? I got bored for a minute, so I
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
made a demo. The sound effect in there was really just the first WAV I found xDAlso, what does your demo do? I got bored for a minute, so I
- djdolphin
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
The name would probably need to be less ambiguous, like “sound loudness”, and the block should probably use the same scale as the loudness block instead of one from 0 to 1.
!
- Blueinkproductions
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
+1!
Generation 2: the first time you see this copy and paste it on top of your sig in the scratch forums and increase generation by 1. Social experiment.
____ _____ _______
| \ | | | | | |\ | | /
|___/ | | | |__ | | \ | |/
| \ | | | | | | \ | |\
| | | | | | | | \ | | \
|___/ L____ \___/ |_____ ___|___ | \| | \
PRODUCTIONS
Here's a hint: support = support.
<shameless self promotion>follow me! follow me! follow me! love my stuff! love my stuff! love my stuff! follow me! love my stuff! remix my stuff! follow me! follow me! </shameless self promotion>
- astro-mechanic
- Scratcher
500+ posts
Sound Loudness Block - Test it now!
The name would probably need to be less ambiguous, like “sound loudness”, and the block should probably use the same scale as the loudness block instead of one from 0 to 1.
+1
It'd be fun if there were a way to reverse this too.
sign here
emperor of shiny things
emperor of shiny things
- savaka
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
Support, but one block like that can't give multiple values. It should be like this:
([loudness | pitch v] of sound playing :: sound)Then you would probably also add pitch for sensing:
([loudness | pitch v] :: sensing)
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
Support, but one block like that can't give multiple values. It should be like this:([loudness | pitch v] of sound playing :: sound)Then you would probably also add pitch for sensing:([loudness | pitch v] :: sensing)
What do you mean “one block like that can't give multiple values”?
- DarkFusion
- Scratcher
9 posts
Sound Loudness Block - Test it now!
+1 on this.
Here's what I was suggesting for the frequency-thing:
Where 0 would be a really low frequency and 1 would be a really high frequency.
Here's what I was suggesting for the frequency-thing:
(frequency [0-1] volume)
Where 0 would be a really low frequency and 1 would be a really high frequency.
Last edited by DarkFusion (July 18, 2014 23:20:52)
- dracae
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
Can sprites play more than one sound at once?Support, but one block like that can't give multiple values. It should be like this:([loudness | pitch v] of sound playing :: sound)Then you would probably also add pitch for sensing:([loudness | pitch v] :: sensing)
What do you mean “one block like that can't give multiple values”?
- mathfreak231
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
^this The name would probably need to be less ambiguous, like “sound loudness”,
i have grown as a person. and ive grown, literally. none of my posts from before 2022 represent me accurately.
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
The name would probably need to be less ambiguous, like “sound loudness”, and the block should probably use the same scale as the loudness block instead of one from 0 to 1.
Okay! I will change it to Sound Loudness. And I will multiply the result by 100 and then round it off to whole numbers to give a more easily used result!
- djdolphin
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
It's better now, but I think “sound levels” is still a little ambiguous.The name would probably need to be less ambiguous, like “sound loudness”, and the block should probably use the same scale as the loudness block instead of one from 0 to 1.
Okay! I will change it to Sound Loudness. And I will multiply the result by 100 and then round it off to whole numbers to give a more easily used result!
!
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
It's better now, but I think “sound levels” is still a little ambiguous.The name would probably need to be less ambiguous, like “sound loudness”, and the block should probably use the same scale as the loudness block instead of one from 0 to 1.
Okay! I will change it to Sound Loudness. And I will multiply the result by 100 and then round it off to whole numbers to give a more easily used result!
I just can't think of a name that is easy to understand, yet is not long. (frequency of all current sounds playing).. That just sounds bad.
- djdolphin
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
MaybeIt's better now, but I think “sound levels” is still a little ambiguous.The name would probably need to be less ambiguous, like “sound loudness”, and the block should probably use the same scale as the loudness block instead of one from 0 to 1.
Okay! I will change it to Sound Loudness. And I will multiply the result by 100 and then round it off to whole numbers to give a more easily used result!
I just can't think of a name that is easy to understand, yet is not long. (frequency of all current sounds playing).. That just sounds bad.
(total sound loudness :: sound)? I can't think of a way that could confuse anyone.
!
- Mr_sprite
- Scratcher
82 posts
Sound Loudness Block - Test it now!
MaybeIt's better now, but I think “sound levels” is still a little ambiguous.The name would probably need to be less ambiguous, like “sound loudness”, and the block should probably use the same scale as the loudness block instead of one from 0 to 1.
Okay! I will change it to Sound Loudness. And I will multiply the result by 100 and then round it off to whole numbers to give a more easily used result!
I just can't think of a name that is easy to understand, yet is not long. (frequency of all current sounds playing).. That just sounds bad.(total sound loudness :: sound)? I can't think of a way that could confuse anyone.
I think that Sound Loudness is good! Also, Bum-pity bump!
- Iditaroid
- Scratcher
500+ posts
Sound Loudness Block - Test it now!
“Sound loudness” could possibly be confused with the “Loudness” block in sensing..
- Thepuzzlegame
- Scratcher
1000+ posts
Sound Loudness Block - Test it now!
Works really well! Made a cool little demo!
hi!