PlaySound Execution

Carlos Santos shared this question 3 years ago
Answered

Hello

Suppose

v="A"

t="B"

Execute[{"PlaySound[v,2]]","Point[{0,0}], "PlaySound[t,2]]"}]

There is a problem with the second sound. That happens because I dont have a PAUSE. Observe that I dont want a

thing like Execute[{"PlaySound[one+two,1]"}]. I want to make geometric constructions between two sounds.

Is there any solution?

Thanks,

Comments (1)

photo
1

The way you can introduce time to your construction is to use (hidden) sliders. If you have slider with velocity 1 it goes one round in 10 seconds. In the update script of the slider a you can have

If[a==1,PlaySound[...]]

If[a==2,PlaySound[...]]

instead of triiggering PlaySound directly you use StartAnimation for the slider.

© 2021 International GeoGebra Institute