Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Playable version of the Csound Reference Manual is now on line

Date2016-07-05 20:21
FromMichael Gogins
Subject[Csnd-dev] Playable version of the Csound Reference Manual is now on line
I have posted to https://github.com/gogins/gogins.github.io a new build of Csound for PNaCl together with a version of the Csound Reference Manual that contains examples you can play right from your Web browser (as long as your Web browser is a desktop version of Google Chrome).

Try it out! Not everything works, but most things seem to work fine.

All necessary changes have been pushed to the repositories for Csound, for the manual, and for gogins.github.io.

At some point this should be added to the Csound home page.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

Date2016-07-05 20:30
FromDave Seidel
SubjectRe: [Csnd-dev] Playable version of the Csound Reference Manual is now on line
This is very cool, Mike!

Two categories of things that don't work: mono examples (nchnls=1; e.g. pvsosc) and examples that need to load an external file (e.g. adsr).

On Tue, Jul 5, 2016 at 3:21 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
I have posted to https://github.com/gogins/gogins.github.io a new build of Csound for PNaCl together with a version of the Csound Reference Manual that contains examples you can play right from your Web browser (as long as your Web browser is a desktop version of Google Chrome).

Try it out! Not everything works, but most things seem to work fine.

All necessary changes have been pushed to the repositories for Csound, for the manual, and for gogins.github.io.

At some point this should be added to the Csound home page.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


Date2016-07-05 20:42
FromMichael Gogins
SubjectRe: [Csnd-dev] Playable version of the Csound Reference Manual is now on line
Yes, such examples are not expected to work. Only stereo examples and only examples in csd files (no orc files) will work. Also, at this time, nothing that accesses external files or uses the network. Also, some of the C++ opcodes that depend on external libraries have not yet been ported to PNaCl, e.g. the fluidsynth opcodes and the STK opcodes will not work.

Regards,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

On Tue, Jul 5, 2016 at 3:30 PM, Dave Seidel <dave.seidel@gmail.com> wrote:
This is very cool, Mike!

Two categories of things that don't work: mono examples (nchnls=1; e.g. pvsosc) and examples that need to load an external file (e.g. adsr).

On Tue, Jul 5, 2016 at 3:21 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
I have posted to https://github.com/gogins/gogins.github.io a new build of Csound for PNaCl together with a version of the Csound Reference Manual that contains examples you can play right from your Web browser (as long as your Web browser is a desktop version of Google Chrome).

Try it out! Not everything works, but most things seem to work fine.

All necessary changes have been pushed to the repositories for Csound, for the manual, and for gogins.github.io.

At some point this should be added to the Csound home page.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com



Date2016-07-05 20:52
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Playable version of the Csound Reference Manual is now on line
Mike,

thanks for this, it is great to achieve this in a programmatic way (rather than by hand).
Maybe we should look at pnacl/csound.cpp to see if we could make it deal more graciously
with mono (and maybe multichannel).

best regards
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 5 Jul 2016, at 20:42, Michael Gogins  wrote:
> 
> Yes, such examples are not expected to work. Only stereo examples and only examples in csd files (no orc files) will work. Also, at this time, nothing that accesses external files or uses the network. Also, some of the C++ opcodes that depend on external libraries have not yet been ported to PNaCl, e.g. the fluidsynth opcodes and the STK opcodes will not work.
> 
> Regards,
> Mike
> 
> 
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 
> On Tue, Jul 5, 2016 at 3:30 PM, Dave Seidel  wrote:
> This is very cool, Mike!
> 
> Two categories of things that don't work: mono examples (nchnls=1; e.g. pvsosc) and examples that need to load an external file (e.g. adsr).
> 
> On Tue, Jul 5, 2016 at 3:21 PM, Michael Gogins  wrote:
> I have posted to https://github.com/gogins/gogins.github.io a new build of Csound for PNaCl together with a version of the Csound Reference Manual that contains examples you can play right from your Web browser (as long as your Web browser is a desktop version of Google Chrome).
> 
> Try it out! Not everything works, but most things seem to work fine.
> 
> All necessary changes have been pushed to the repositories for Csound, for the manual, and for gogins.github.io.
> 
> At some point this should be added to the Csound home page.
> 
> Regards,
> Mike
> 
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 

Date2016-07-05 20:56
FromSteven Yi
SubjectRe: [Csnd-dev] Playable version of the Csound Reference Manual is now on line
Thanks Mike for looking at this!

I had originally thought a solution might work where the example div
could be decorated via Javascript to add a render button, rather than
go to a separate page.  Did you explore a solution like this at all?
My thought was that this could then be used as a library and re-used
between the manual and user's custom pages.  If not, perhaps we can
still look at that for a future project.

On Tue, Jul 5, 2016 at 3:52 PM, Victor Lazzarini
 wrote:
> Mike,
>
> thanks for this, it is great to achieve this in a programmatic way (rather than by hand).
> Maybe we should look at pnacl/csound.cpp to see if we could make it deal more graciously
> with mono (and maybe multichannel).
>
> best regards
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 5 Jul 2016, at 20:42, Michael Gogins  wrote:
>>
>> Yes, such examples are not expected to work. Only stereo examples and only examples in csd files (no orc files) will work. Also, at this time, nothing that accesses external files or uses the network. Also, some of the C++ opcodes that depend on external libraries have not yet been ported to PNaCl, e.g. the fluidsynth opcodes and the STK opcodes will not work.
>>
>> Regards,
>> Mike
>>
>>
>> -----------------------------------------------------
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>> On Tue, Jul 5, 2016 at 3:30 PM, Dave Seidel  wrote:
>> This is very cool, Mike!
>>
>> Two categories of things that don't work: mono examples (nchnls=1; e.g. pvsosc) and examples that need to load an external file (e.g. adsr).
>>
>> On Tue, Jul 5, 2016 at 3:21 PM, Michael Gogins  wrote:
>> I have posted to https://github.com/gogins/gogins.github.io a new build of Csound for PNaCl together with a version of the Csound Reference Manual that contains examples you can play right from your Web browser (as long as your Web browser is a desktop version of Google Chrome).
>>
>> Try it out! Not everything works, but most things seem to work fine.
>>
>> All necessary changes have been pushed to the repositories for Csound, for the manual, and for gogins.github.io.
>>
>> At some point this should be added to the Csound home page.
>>
>> Regards,
>> Mike
>>
>> -----------------------------------------------------
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>

Date2016-07-05 21:41
Fromjoachim heintz
SubjectRe: Playable version of the Csound Reference Manual is now on line
wow, that's great mike!  thanks for this!

i could play and edit / replay the oscils.csd example.

some issues:
1) filelen.csd does not find fox.wav
new alloc for instr 1:
INIT ERROR in instr 1: diskinfo cannot open fox.wav
ilen	filelen.i	p4	1	

same for ATSadd-2.csd (not finding fox.ats)

2) ATSadd.csd does not complain, but does nothing and not stopping after 
two seconds.

cheers -
	joachim

On 05/07/16 21:21, Michael Gogins wrote:
> I have posted to https://github.com/gogins/gogins.github.io a new build
> of Csound for PNaCl together with a version of the Csound Reference
> Manual that contains examples you can play right from your Web browser
> (as long as your Web browser is a desktop version of Google Chrome).
>
> Try it out! Not everything works, but most things seem to work fine.
>
> All necessary changes have been pushed to the repositories for Csound,
> for the manual, and for gogins.github.io .
>
> At some point this should be added to the Csound home page.
>
> Regards,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> Csound mailing list Csound@listserv.heanet.ie
> 
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features
> can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-07-05 22:07
FromMichael Gogins
SubjectRe: [Csnd-dev] Playable version of the Csound Reference Manual is now on line
I thought of the same thing you're talking about, but it was obvious how to get this to work.

I think your suggestion would be a better solution, but it would require reworking csound.js not to make assumptions about one and only one "engine" div per page. 

Another thing is that my solution permits the user to modify the example and hear what happens, and also to see the Csound messages.

I think the ideal would be to combine the approaches: to decorate the example div with a button that would use JavaScript to open a window and in it build the same kind of playable example page that I created.

One thing to keep in mind is that one man page in the manual might have more than one csd example.

Best,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

On Tue, Jul 5, 2016 at 3:56 PM, Steven Yi <stevenyi@gmail.com> wrote:
Thanks Mike for looking at this!

I had originally thought a solution might work where the example div
could be decorated via Javascript to add a render button, rather than
go to a separate page.  Did you explore a solution like this at all?
My thought was that this could then be used as a library and re-used
between the manual and user's custom pages.  If not, perhaps we can
still look at that for a future project.

On Tue, Jul 5, 2016 at 3:52 PM, Victor Lazzarini
<Victor.Lazzarini@nuim.ie> wrote:
> Mike,
>
> thanks for this, it is great to achieve this in a programmatic way (rather than by hand).
> Maybe we should look at pnacl/csound.cpp to see if we could make it deal more graciously
> with mono (and maybe multichannel).
>
> best regards
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 5 Jul 2016, at 20:42, Michael Gogins <michael.gogins@gmail.com> wrote:
>>
>> Yes, such examples are not expected to work. Only stereo examples and only examples in csd files (no orc files) will work. Also, at this time, nothing that accesses external files or uses the network. Also, some of the C++ opcodes that depend on external libraries have not yet been ported to PNaCl, e.g. the fluidsynth opcodes and the STK opcodes will not work.
>>
>> Regards,
>> Mike
>>
>>
>> -----------------------------------------------------
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>> On Tue, Jul 5, 2016 at 3:30 PM, Dave Seidel <dave.seidel@gmail.com> wrote:
>> This is very cool, Mike!
>>
>> Two categories of things that don't work: mono examples (nchnls=1; e.g. pvsosc) and examples that need to load an external file (e.g. adsr).
>>
>> On Tue, Jul 5, 2016 at 3:21 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
>> I have posted to https://github.com/gogins/gogins.github.io a new build of Csound for PNaCl together with a version of the Csound Reference Manual that contains examples you can play right from your Web browser (as long as your Web browser is a desktop version of Google Chrome).
>>
>> Try it out! Not everything works, but most things seem to work fine.
>>
>> All necessary changes have been pushed to the repositories for Csound, for the manual, and for gogins.github.io.
>>
>> At some point this should be added to the Csound home page.
>>
>> Regards,
>> Mike
>>
>> -----------------------------------------------------
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>>


Date2016-07-05 23:53
FromSteven Yi
SubjectRe: [Csnd-dev] Playable version of the Csound Reference Manual is now on line
Thanks Michael for your thoughts on this and the details of what we'd
need to account for.  The one-engine-per-page is certainly a tricky
limitation. The Emscripten version makes for simpler usage with Csound
encapsulated into a single object.  Maybe we can make a front-facing
CsoundObj for PNaCl that binds itself to a backend Csound instance,
tracked by some kind of ID? I remember having some issues with the
Csound Notebook and the PNaCl version of Csound where I'd have to
reset the page to reset the one-engine; perhaps a multiple Csound
engine solution would have helped there (I can't recall the exact
details at the moment though).

I like the idea of a decorator that opens up a separate window for editing.

Sounds like there is further that we could research, but again, thanks
for making these steps forward.  It's already very useful!

steven


On Tue, Jul 5, 2016 at 5:07 PM, Michael Gogins  wrote:
> I thought of the same thing you're talking about, but it was obvious how to
> get this to work.
>
> I think your suggestion would be a better solution, but it would require
> reworking csound.js not to make assumptions about one and only one "engine"
> div per page.
>
> Another thing is that my solution permits the user to modify the example and
> hear what happens, and also to see the Csound messages.
>
> I think the ideal would be to combine the approaches: to decorate the
> example div with a button that would use JavaScript to open a window and in
> it build the same kind of playable example page that I created.
>
> One thing to keep in mind is that one man page in the manual might have more
> than one csd example.
>
> Best,
> Mike
>
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
> On Tue, Jul 5, 2016 at 3:56 PM, Steven Yi  wrote:
>>
>> Thanks Mike for looking at this!
>>
>> I had originally thought a solution might work where the example div
>> could be decorated via Javascript to add a render button, rather than
>> go to a separate page.  Did you explore a solution like this at all?
>> My thought was that this could then be used as a library and re-used
>> between the manual and user's custom pages.  If not, perhaps we can
>> still look at that for a future project.
>>
>> On Tue, Jul 5, 2016 at 3:52 PM, Victor Lazzarini
>>  wrote:
>> > Mike,
>> >
>> > thanks for this, it is great to achieve this in a programmatic way
>> > (rather than by hand).
>> > Maybe we should look at pnacl/csound.cpp to see if we could make it deal
>> > more graciously
>> > with mono (and maybe multichannel).
>> >
>> > best regards
>> > ========================
>> > Dr Victor Lazzarini
>> > Dean of Arts, Celtic Studies and Philosophy,
>> > Maynooth University,
>> > Maynooth, Co Kildare, Ireland
>> > Tel: 00 353 7086936
>> > Fax: 00 353 1 7086952
>> >
>> >> On 5 Jul 2016, at 20:42, Michael Gogins 
>> >> wrote:
>> >>
>> >> Yes, such examples are not expected to work. Only stereo examples and
>> >> only examples in csd files (no orc files) will work. Also, at this time,
>> >> nothing that accesses external files or uses the network. Also, some of the
>> >> C++ opcodes that depend on external libraries have not yet been ported to
>> >> PNaCl, e.g. the fluidsynth opcodes and the STK opcodes will not work.
>> >>
>> >> Regards,
>> >> Mike
>> >>
>> >>
>> >> -----------------------------------------------------
>> >> Michael Gogins
>> >> Irreducible Productions
>> >> http://michaelgogins.tumblr.com
>> >> Michael dot Gogins at gmail dot com
>> >>
>> >> On Tue, Jul 5, 2016 at 3:30 PM, Dave Seidel 
>> >> wrote:
>> >> This is very cool, Mike!
>> >>
>> >> Two categories of things that don't work: mono examples (nchnls=1; e.g.
>> >> pvsosc) and examples that need to load an external file (e.g. adsr).
>> >>
>> >> On Tue, Jul 5, 2016 at 3:21 PM, Michael Gogins
>> >>  wrote:
>> >> I have posted to https://github.com/gogins/gogins.github.io a new build
>> >> of Csound for PNaCl together with a version of the Csound Reference Manual
>> >> that contains examples you can play right from your Web browser (as long as
>> >> your Web browser is a desktop version of Google Chrome).
>> >>
>> >> Try it out! Not everything works, but most things seem to work fine.
>> >>
>> >> All necessary changes have been pushed to the repositories for Csound,
>> >> for the manual, and for gogins.github.io.
>> >>
>> >> At some point this should be added to the Csound home page.
>> >>
>> >> Regards,
>> >> Mike
>> >>
>> >> -----------------------------------------------------
>> >> Michael Gogins
>> >> Irreducible Productions
>> >> http://michaelgogins.tumblr.com
>> >> Michael dot Gogins at gmail dot com
>> >>
>> >>
>

Date2016-07-05 23:59
FromMichael Gogins
SubjectRe: [Csnd-dev] Playable version of the Csound Reference Manual is now on line
Right now I broke the site and am fixing it... paths.


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

On Tue, Jul 5, 2016 at 6:53 PM, Steven Yi <stevenyi@gmail.com> wrote:
Thanks Michael for your thoughts on this and the details of what we'd
need to account for.  The one-engine-per-page is certainly a tricky
limitation. The Emscripten version makes for simpler usage with Csound
encapsulated into a single object.  Maybe we can make a front-facing
CsoundObj for PNaCl that binds itself to a backend Csound instance,
tracked by some kind of ID? I remember having some issues with the
Csound Notebook and the PNaCl version of Csound where I'd have to
reset the page to reset the one-engine; perhaps a multiple Csound
engine solution would have helped there (I can't recall the exact
details at the moment though).

I like the idea of a decorator that opens up a separate window for editing.

Sounds like there is further that we could research, but again, thanks
for making these steps forward.  It's already very useful!

steven


On Tue, Jul 5, 2016 at 5:07 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
> I thought of the same thing you're talking about, but it was obvious how to
> get this to work.
>
> I think your suggestion would be a better solution, but it would require
> reworking csound.js not to make assumptions about one and only one "engine"
> div per page.
>
> Another thing is that my solution permits the user to modify the example and
> hear what happens, and also to see the Csound messages.
>
> I think the ideal would be to combine the approaches: to decorate the
> example div with a button that would use JavaScript to open a window and in
> it build the same kind of playable example page that I created.
>
> One thing to keep in mind is that one man page in the manual might have more
> than one csd example.
>
> Best,
> Mike
>
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
> On Tue, Jul 5, 2016 at 3:56 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> Thanks Mike for looking at this!
>>
>> I had originally thought a solution might work where the example div
>> could be decorated via Javascript to add a render button, rather than
>> go to a separate page.  Did you explore a solution like this at all?
>> My thought was that this could then be used as a library and re-used
>> between the manual and user's custom pages.  If not, perhaps we can
>> still look at that for a future project.
>>
>> On Tue, Jul 5, 2016 at 3:52 PM, Victor Lazzarini
>> <Victor.Lazzarini@nuim.ie> wrote:
>> > Mike,
>> >
>> > thanks for this, it is great to achieve this in a programmatic way
>> > (rather than by hand).
>> > Maybe we should look at pnacl/csound.cpp to see if we could make it deal
>> > more graciously
>> > with mono (and maybe multichannel).
>> >
>> > best regards
>> > ========================
>> > Dr Victor Lazzarini
>> > Dean of Arts, Celtic Studies and Philosophy,
>> > Maynooth University,
>> > Maynooth, Co Kildare, Ireland
>> > Tel: 00 353 7086936
>> > Fax: 00 353 1 7086952
>> >
>> >> On 5 Jul 2016, at 20:42, Michael Gogins <michael.gogins@gmail.com>
>> >> wrote:
>> >>
>> >> Yes, such examples are not expected to work. Only stereo examples and
>> >> only examples in csd files (no orc files) will work. Also, at this time,
>> >> nothing that accesses external files or uses the network. Also, some of the
>> >> C++ opcodes that depend on external libraries have not yet been ported to
>> >> PNaCl, e.g. the fluidsynth opcodes and the STK opcodes will not work.
>> >>
>> >> Regards,
>> >> Mike
>> >>
>> >>
>> >> -----------------------------------------------------
>> >> Michael Gogins
>> >> Irreducible Productions
>> >> http://michaelgogins.tumblr.com
>> >> Michael dot Gogins at gmail dot com
>> >>
>> >> On Tue, Jul 5, 2016 at 3:30 PM, Dave Seidel <dave.seidel@gmail.com>
>> >> wrote:
>> >> This is very cool, Mike!
>> >>
>> >> Two categories of things that don't work: mono examples (nchnls=1; e.g.
>> >> pvsosc) and examples that need to load an external file (e.g. adsr).
>> >>
>> >> On Tue, Jul 5, 2016 at 3:21 PM, Michael Gogins
>> >> <michael.gogins@gmail.com> wrote:
>> >> I have posted to https://github.com/gogins/gogins.github.io a new build
>> >> of Csound for PNaCl together with a version of the Csound Reference Manual
>> >> that contains examples you can play right from your Web browser (as long as
>> >> your Web browser is a desktop version of Google Chrome).
>> >>
>> >> Try it out! Not everything works, but most things seem to work fine.
>> >>
>> >> All necessary changes have been pushed to the repositories for Csound,
>> >> for the manual, and for gogins.github.io.
>> >>
>> >> At some point this should be added to the Csound home page.
>> >>
>> >> Regards,
>> >> Mike
>> >>
>> >> -----------------------------------------------------
>> >> Michael Gogins
>> >> Irreducible Productions
>> >> http://michaelgogins.tumblr.com
>> >> Michael dot Gogins at gmail dot com
>> >>
>> >>
>
>


Date2016-07-06 00:04
FromMichael Gogins
SubjectRe: [Csnd-dev] Playable version of the Csound Reference Manual is now on line
Seems to be fixed now.

Best,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

On Tue, Jul 5, 2016 at 6:59 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
Right now I broke the site and am fixing it... paths.


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

On Tue, Jul 5, 2016 at 6:53 PM, Steven Yi <stevenyi@gmail.com> wrote:
Thanks Michael for your thoughts on this and the details of what we'd
need to account for.  The one-engine-per-page is certainly a tricky
limitation. The Emscripten version makes for simpler usage with Csound
encapsulated into a single object.  Maybe we can make a front-facing
CsoundObj for PNaCl that binds itself to a backend Csound instance,
tracked by some kind of ID? I remember having some issues with the
Csound Notebook and the PNaCl version of Csound where I'd have to
reset the page to reset the one-engine; perhaps a multiple Csound
engine solution would have helped there (I can't recall the exact
details at the moment though).

I like the idea of a decorator that opens up a separate window for editing.

Sounds like there is further that we could research, but again, thanks
for making these steps forward.  It's already very useful!

steven


On Tue, Jul 5, 2016 at 5:07 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
> I thought of the same thing you're talking about, but it was obvious how to
> get this to work.
>
> I think your suggestion would be a better solution, but it would require
> reworking csound.js not to make assumptions about one and only one "engine"
> div per page.
>
> Another thing is that my solution permits the user to modify the example and
> hear what happens, and also to see the Csound messages.
>
> I think the ideal would be to combine the approaches: to decorate the
> example div with a button that would use JavaScript to open a window and in
> it build the same kind of playable example page that I created.
>
> One thing to keep in mind is that one man page in the manual might have more
> than one csd example.
>
> Best,
> Mike
>
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
> On Tue, Jul 5, 2016 at 3:56 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> Thanks Mike for looking at this!
>>
>> I had originally thought a solution might work where the example div
>> could be decorated via Javascript to add a render button, rather than
>> go to a separate page.  Did you explore a solution like this at all?
>> My thought was that this could then be used as a library and re-used
>> between the manual and user's custom pages.  If not, perhaps we can
>> still look at that for a future project.
>>
>> On Tue, Jul 5, 2016 at 3:52 PM, Victor Lazzarini
>> <Victor.Lazzarini@nuim.ie> wrote:
>> > Mike,
>> >
>> > thanks for this, it is great to achieve this in a programmatic way
>> > (rather than by hand).
>> > Maybe we should look at pnacl/csound.cpp to see if we could make it deal
>> > more graciously
>> > with mono (and maybe multichannel).
>> >
>> > best regards
>> > ========================
>> > Dr Victor Lazzarini
>> > Dean of Arts, Celtic Studies and Philosophy,
>> > Maynooth University,
>> > Maynooth, Co Kildare, Ireland
>> > Tel: 00 353 7086936
>> > Fax: 00 353 1 7086952
>> >
>> >> On 5 Jul 2016, at 20:42, Michael Gogins <michael.gogins@gmail.com>
>> >> wrote:
>> >>
>> >> Yes, such examples are not expected to work. Only stereo examples and
>> >> only examples in csd files (no orc files) will work. Also, at this time,
>> >> nothing that accesses external files or uses the network. Also, some of the
>> >> C++ opcodes that depend on external libraries have not yet been ported to
>> >> PNaCl, e.g. the fluidsynth opcodes and the STK opcodes will not work.
>> >>
>> >> Regards,
>> >> Mike
>> >>
>> >>
>> >> -----------------------------------------------------
>> >> Michael Gogins
>> >> Irreducible Productions
>> >> http://michaelgogins.tumblr.com
>> >> Michael dot Gogins at gmail dot com
>> >>
>> >> On Tue, Jul 5, 2016 at 3:30 PM, Dave Seidel <dave.seidel@gmail.com>
>> >> wrote:
>> >> This is very cool, Mike!
>> >>
>> >> Two categories of things that don't work: mono examples (nchnls=1; e.g.
>> >> pvsosc) and examples that need to load an external file (e.g. adsr).
>> >>
>> >> On Tue, Jul 5, 2016 at 3:21 PM, Michael Gogins
>> >> <michael.gogins@gmail.com> wrote:
>> >> I have posted to https://github.com/gogins/gogins.github.io a new build
>> >> of Csound for PNaCl together with a version of the Csound Reference Manual
>> >> that contains examples you can play right from your Web browser (as long as
>> >> your Web browser is a desktop version of Google Chrome).
>> >>
>> >> Try it out! Not everything works, but most things seem to work fine.
>> >>
>> >> All necessary changes have been pushed to the repositories for Csound,
>> >> for the manual, and for gogins.github.io.
>> >>
>> >> At some point this should be added to the Csound home page.
>> >>
>> >> Regards,
>> >> Mike
>> >>
>> >> -----------------------------------------------------
>> >> Michael Gogins
>> >> Irreducible Productions
>> >> http://michaelgogins.tumblr.com
>> >> Michael dot Gogins at gmail dot com
>> >>
>> >>
>
>