Music#
We added the function playTone to WebTigerPython. We use Tone.js for playing sounds. The playTone function is part of the gturtle library
Tone.js runs in the main Browser Thread because sounds can only be played from there. It is called from pyodide with a callback function.
Examples can be found here