Wix supports full HTML in iFrames, Tracking & Analytics and (soon for everyone), custom elements, so I would have thought so yes. If you find that the iFrame is sandboxed and won't give you access to that API you might be able to remove the restrictions using Tracking & Analytics. You can search the forum for how to do that or I can find the threads if you get that far.
Thank you soo much for your answer Lee It has inspired new hope in me. I spent ages making this (https://www.wix.com/corvid/forum/community-discussion/deltatime-with-audio-playback-drums) and then found out that it won't work that way. I will learn more about iFrames, Tracking & Analytics and give it a good try! =D
Wishlist Page is the new official platform for requesting new features. You can vote, comment, and track the status of the requested features (requests from this page will be migrated to the new Wishlist soon).