Using tone function and pushbutton toggle problem

Step by step.

I was able to copy the chunk that differs into my wokwi and execute your new block.

I think this thread I found might be worth a look.

a7