suever / MATL-Online

Online Interpreter for MATL

Home Page:https://matl.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorporate support for audio output

suever opened this issue · comments

MATL now has an implementation of sound, soundsc, and audiowrite to produce audio output. They need to be overloaded in our .octaverc file so that an mp3 file is generated on the server and then streamed back to the client. Each separate sound should appear as it's own <audio> block which will automatically get the browser's native audio controller.

If I recall correctly, soundsc calls sound to produce the actual sound. So no need to overload that one

@lmendo Ah great point!

A version of this has been merged in and deployed.

Example