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

2020-04-20 Thread Anindya Kundu
Ok, thanks.

On Mon, 20 Apr 2020 at 19:58, Walter Bender  wrote:

>
> On Mon, Apr 20, 2020 at 10:12 AM Anindya Kundu 
> 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
> 
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


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

2020-04-20 Thread Walter Bender
On Mon, Apr 20, 2020 at 10:12 AM Anindya Kundu 
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

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


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

2020-04-20 Thread Anindya Kundu
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?



*Anindya Kundu*

*BTech, 6th Semester*
*Dept. of Information Technology*

*Indian Institute of Engineering Science and Technology, Shibpur*
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel