[Sugar-devel] [Music Blocks] How is audio played
Anindya Kundu
anindyaak007 at gmail.com
Mon Apr 20 10:30:03 EDT 2020
Ok, thanks.
On Mon, 20 Apr 2020 at 19:58, Walter Bender <walter.bender at gmail.com> wrote:
>
> On Mon, Apr 20, 2020 at 10:12 AM Anindya Kundu <anindyaak007 at gmail.com>
> wrote:
>
>> 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
> http://www.sugarlabs.org
> <http://www.sugarlabs.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200420/379a71bb/attachment.htm>
More information about the Sugar-devel
mailing list