Discuss Scratch

Monniasza_spzoo
Scratcher
100+ posts

Play frequency block definition

Please prepare play frequency block. Its hat should look like
define Play frequency (f) Hz for (t) beats
imfh
Scratcher
1000+ posts

Play frequency block definition

You could try using the Music extension. The “(20) Synth Lead” instrument sounds like a tone.

set instrument to (20 v)
play note (60) for (0.5) beats

Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/
drchubbington
Scratcher
100+ posts

Play frequency block definition

In order to do that, you would have to calculate what each “note” is in the extension above in heartz and make a formula (the heartz you want * a number + a number) that will get you to the note you want. The problem is that you don't know what heartz the notes are, so you will have to figure that out somehow. You would also have to calculate beats to seconds or make the tempo 1 beat per second using the “set tempo” block included in the extension.

when green flag clicked
forever
Be awesome!
end
Monniasza_spzoo
Scratcher
100+ posts

Play frequency block definition

wayyyy
Scratcher
500+ posts

Play frequency block definition

Why don't you try generating a pitch using Audacity instead of using noteblocks



Obviously, you can't use Audacity to generate every single Hertz in existence, but you can use the pitch effect block to change it, and then test what hertz it is, so that you can eventually make a formula.

Delete your Scratch Account

Powered by DjangoBB