Discuss Scratch
- Discussion Forums
- » Suggestions
- » Sound Loudness Block - Test it now!
- MathlyCat
-
Scratcher
1000+ posts
Sound Loudness Block - Test it now!
Support, this would be really cool!! This could make tons of projects better!!!!
- dimitrip
-
Scratcher
500+ posts
Sound Loudness Block - Test it now!
Hi Mr_sprite.
I don't understand well how your new block returns the sound's (fundamental?) frequency.
I've tried it out with a pure sine sweep signal and I was expecting that the Sound “Loudness” demo would return a straight line, or an exponential curve or something like that, since the input signal has a function that simply raises continuously the frequency of a pure sinusoid from 20hz to 20Khz on a 20s time slice.
But the result is not as expected:

Maybe you have an idea why ?
Anyway congrats for your insider developments (I would love being able doing such), and it would be nice and funny that a block that returns the fundamental frequency would exist in Scratch, yes.
Greetz,
Dimitri.
I don't understand well how your new block returns the sound's (fundamental?) frequency.
I've tried it out with a pure sine sweep signal and I was expecting that the Sound “Loudness” demo would return a straight line, or an exponential curve or something like that, since the input signal has a function that simply raises continuously the frequency of a pure sinusoid from 20hz to 20Khz on a 20s time slice.
But the result is not as expected:

Maybe you have an idea why ?
Anyway congrats for your insider developments (I would love being able doing such), and it would be nice and funny that a block that returns the fundamental frequency would exist in Scratch, yes.
Greetz,
Dimitri.
- Mr_sprite
-
Scratcher
82 posts
Sound Loudness Block - Test it now!
Hi Mr_sprite.
I don't understand well how your new block returns the sound's (fundamental?) frequency.
I've tried it out with a pure sine sweep signal and I was expecting that the Sound “Loudness” demo would return a straight line, or an exponential curve or something like that, since the input signal has a function that simply raises continuously the frequency of a pure sinusoid from 20hz to 20Khz on a 20s time slice.
But the result is not as expected:
Maybe you have an idea why ?
Anyway congrats for your insider developments (I would love being able doing such), and it would be nice and funny that a block that returns the fundamental frequency would exist in Scratch, yes.
Greetz,
Dimitri.
Yeahhh… It's not perfect. The one you can test I made it back when I didn't understand much what I was doing. I am trying to fix it to make it do what I said it did, but I have a lot of other things going on.
- dimitrip
-
Scratcher
500+ posts
Sound Loudness Block - Test it now!
Thank you.
If you could put me on the rails, I would be pleased to participate in the inside devl.
Greetz,
D.
If you could put me on the rails, I would be pleased to participate in the inside devl.
Greetz,
D.
- Sheep_tester
-
Scratcher
500+ posts
Sound Loudness Block - Test it now!
another use for this block is to keep the song with the animation in AMVs because sometimes the timing gets off (unless you are using my method, which would keep the animation up with the song all the time)
- -Cubix-
-
Scratcher
4 posts
Sound Loudness Block - Test it now!
I tries out the link u made. it doesnt work!
- minecraft_stuff
-
Scratcher
1 post
Sound Loudness Block - Test it now!
Can you please re-upload the files? They don't appear on dropbox.
- Surpeedude
-
Scratcher
38 posts
Sound Loudness Block - Test it now!
I get the 404 error. I really want that, so plz make it open again!
- mystery4000
-
Scratcher
100+ posts
Sound Loudness Block - Test it now!
Wouldn’t this go in the show and tell section
- braxbroscratcher
-
Scratcher
1000+ posts
Sound Loudness Block - Test it now!
Blocks currently cannot output arrays.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”?
Ex.
loudness > pitch, loudness
This is perfectly fine in most languages, as you just reference a specific part of the array, but this is not the case in Scratch. Everything must have 1 output. Things can have many inputs, but only one output.
- finn55
-
Scratcher
79 posts
Sound Loudness Block - Test it now!
— I am currently updating the block. It will have two modes, frequency and amplitude!The creator can just create a list and store the volume many times a second, this can be used to generate the visuals as if from a mic
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
Support for frequency though..
Last edited by finn55 (Jan. 22, 2018 16:46:12)
- JavierR100
-
Scratcher
500+ posts
Sound Loudness Block - Test it now!
Please don't bump old suggestions that has 1 or more years old of innactivity.-[snip]-The creator can just create a list and store the volume many times a second, this can be used to generate the visuals as if from a mic
Support for frequency though..
It's great the suggestion anyway.
- kenny2scratch
-
Scratcher
500+ posts
Sound Loudness Block - Test it now!
Just an FYI, in case nobody has said it already:
Loudness and frequency are two different things.
Loudness and frequency are two different things.
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 OnlineAre you talking about a block that reports the volume of the currently playing sound, or the frequency?
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
- BD10355
-
Scratcher
14 posts
Sound Loudness Block - Test it now!
I agree! This is sooooooo cool.
think [We should make a sound frequency variable.]
think [Oh, somebody already thought of this...]
switch costume to [oof]
- Discussion Forums
- » Suggestions
-
» Sound Loudness Block - Test it now!






















