Open nthiery opened 3 years ago
The audio classes have not been specced out yet:
For context: Is there a reason to prefer the pythreejs audio over IPython.display.Audio
or ipywebrtc
?
Hi Vidar! Thanks for the feedback.
Context: I am building a widget to display and analyze musical juggling patterns. To this end, I am toying out with threejs's animation capabilities (with AnimationClip ...) to animate the balls moving in the air. It's pretty fun to play with these capabilities!
Now, for the musical aspect, I need to play audio at certain times in the animation. This called for a pythreejs solution, but other option would certainly do.
If at all possible, I would like a solution that can be controlled purely from the Python side. For simplicity of deployment; because I am very slow at anything javascript; and also to empower the end users for whom Python is already a serious step.
The most versatile tool would be the ability to setup a callback to Python at certain times in the animation. Does pythreejs enable something like this?
Tips most welcome :-)
(sorry for the topic deviation in this issue)
I have tried to reproduce the following threejs example in pythreejs, but with no success yet:
https://threejs.org/docs/#api/en/audio/Audio
Similarly, the Audio constructor takes no argument, etc.
Has anyone managed to play sound with pythreejs?