Csound Csound-dev Csound-tekno Search About

[Cs-dev] PNaCl callbacks

Date2014-06-07 15:05
FromEdward Costello
Subject[Cs-dev] PNaCl callbacks
Hi,

Would it be possible to make it so you can specify your own callbacks for the csound PNaCl module. This way functions like moduleDidLoad wouldn't need to be in global scope, these could be methods as part of a csound controller object instead. 
Ed
Sent from my iPhone
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-06-07 15:23
FromVictor Lazzarini
SubjectRe: [Cs-dev] PNaCl callbacks
Is this on the Javascript side? If so, you’re welcome to do it yourself, as I am not quite sure what you have in mind.

Regards
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 7 Jun 2014, at 15:05, Edward Costello  wrote:

> Hi,
> 
> Would it be possible to make it so you can specify your own callbacks for the csound PNaCl module. This way functions like moduleDidLoad wouldn't need to be in global scope, these could be methods as part of a csound controller object instead. 
> Ed
> Sent from my iPhone
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their 
> applications. Written by three acclaimed leaders in the field, 
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-06-07 15:39
FromEdward Costello
SubjectRe: [Cs-dev] PNaCl callbacks
Yeah it's just in the csound.js javascript code, it seems that when the moduleDidLoad function is called it then looks for a function called moduleDidLoad in the window. I was just thinking It would be nice if that function could be specified when the csound object is instantiated.  

Sent from my iPhone

On 7 Jun 2014, at 16:23, Victor Lazzarini  wrote:

> Is this on the Javascript side? If so, you’re welcome to do it yourself, as I am not quite sure what you have in mind.
> 
> Regards
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
> 
> 
> 
> 
> On 7 Jun 2014, at 15:05, Edward Costello  wrote:
> 
>> Hi,
>> 
>> Would it be possible to make it so you can specify your own callbacks for the csound PNaCl module. This way functions like moduleDidLoad wouldn't need to be in global scope, these could be methods as part of a csound controller object instead. 
>> Ed
>> Sent from my iPhone
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and their 
>> applications. Written by three acclaimed leaders in the field, 
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/NeoTech
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their 
> applications. Written by three acclaimed leaders in the field, 
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csou

Date2014-06-07 15:55
FromVictor Lazzarini
SubjectRe: [Cs-dev] PNaCl callbacks
Go for it, and then send us a pull request when it’s working. You can leave the original as the default if the function is not set, so that
code is not broken with it.

========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 7 Jun 2014, at 15:39, Edward Costello  wrote:

> Yeah it's just in the csound.js javascript code, it seems that when the moduleDidLoad function is called it then looks for a function called moduleDidLoad in the window. I was just thinking It would be nice if that function could be specified when the csound object is instantiated.  
> 
> Sent from my iPhone
> 
> On 7 Jun 2014, at 16:23, Victor Lazzarini  wrote:
> 
>> Is this on the Javascript side? If so, you’re welcome to do it yourself, as I am not quite sure what you have in mind.
>> 
>> Regards
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>> 
>> 
>> 
>> 
>> On 7 Jun 2014, at 15:05, Edward Costello  wrote:
>> 
>>> Hi,
>>> 
>>> Would it be possible to make it so you can specify your own callbacks for the csound PNaCl module. This way functions like moduleDidLoad wouldn't need to be in global scope, these could be methods as part of a csound controller object instead. 
>>> Ed
>>> Sent from my iPhone
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and their 
>>> applications. Written by three acclaimed leaders in the field, 
>>> this first edition is now available. Download your free book today!
>>> http://p.sf.net/sfu/NeoTech
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and their 
>> applications. Written by three acclaimed leaders in the field, 
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/NeoTech
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their 
> applications. Written by three acclaimed leaders in the field, 
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net