[Sugar-devel] [Music Blocks] How is audio played

Walter Bender walter.bender at gmail.com
Mon Apr 20 10:28:32 EDT 2020

On Mon, Apr 20, 2020 at 10:12 AM Anindya Kundu <anindyaak007 at gmail.com>

> I've been recently reading up the javascript files inside the blocks
> directory, trying to understand how different block objects are
> implemented. I found that they essentially work on different variables,
> mostly in logo.js.
> In logo.js, I specifically found calls to trigger(...) method defined in
> utils/synthutils.js, to play a note. Is it the only gateway to playing
> audio?
> Also, is all audio producing code present in synthutils.js?

Yes. synthutils acts as a wrapper for tone.js. There should not be any
audio calls outside of that code.

> *Anindya Kundu*
> *BTech, 6th Semester*
> *Dept. of Information Technology*
> *Indian Institute of Engineering Science and Technology, Shibpur*

Walter Bender
Sugar Labs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200420/26dde850/attachment.htm>

More information about the Sugar-devel mailing list