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
500+ 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

when signature read:: events hat
say [Not much here...] for (2) secs
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.


13855907337635093928512657233170943934485827951262112803170447238432875890
Key: 23

Powered by DjangoBB

Standard | Mobile