Add "play sound _ at _ hz until done" block

hi, so i make nightcore songs here, and it would be rlly helpful if the "play sound _ at _ hz" block could have a similar block, but instead "until done" is added

Does this give you the result you want?

image

1 Like

it works! thx :grinning:

There was a topic that asked for this same feature, and we found out that that's not a very good solution. When the stop all sounds block is ran, the block still waits until it would be the end of the sound. Here's my solution


if you don't want to copy the script, you can also just go here to get the block https://snap.berkeley.edu/snap/snap.html#present:Username=ego-lay_atman-bay&ProjectName=play%20sound%20until%20done%20at%20Hz%20block

btw, here's the original topic that asked for this as well, add missing sound block

3 Likes

That doesn't actually wrk because the length f the sound is changed by the different frequency.

1 Like

ill check this out

the project only shows this

yeah, the project just has the play sound until done at hz block. What did you think the project would have?

this
2c34c5654c875a9dc558ab34c73a6d26e60426c9_2_517x108

that's the block definition of the block in the project.

1 Like

I think op expected that the block definition would be exposed the way it is in Scratch. But that's one of the differences between Snap! and Scratch. Here the custom block's definitions are hidden and you can only see them if you start editing them.

Maybe this could be in the FAQ for Scratch users who are newcomers to Snap!?

2 Likes

Done.

2 Likes