Discuss Scratch

dinoracer
Scratcher
18 posts

how do you play different frequency sounds?

when green flag clicked
forever
set [pitch v] to (mouse y :: sensing) :: variable
set [pitch v] effect to ([abs v] (pitch) :: operators) :: sound
start sound [ frequency 1 v] :: sound // this sound has a frequency of 1 //
could you do that to play different frequency sounds?

Last edited by dinoracer (Nov. 13, 2023 03:07:58)

-Valtren-
Scratcher
1000+ posts

how do you play different frequency sounds?

I edited the code to look like this and tested it, and it sort of works.

If you could figure out the exact frequencies from the pitch effect, then yes, I suppose it's possble.
dinoracer
Scratcher
18 posts

how do you play different frequency sounds?

you [should v] learn how to use ([scratch] + [blocks]) :: control

Powered by DjangoBB