Csound Csound-dev Csound-tekno Search About

[Csnd] pnacl tryouts

Date2013-12-06 09:59
FromTarmo Johannes
Subject[Csnd] pnacl tryouts
Hi,

I studied  abit javascript and Victor's pnacl examples and wrote some tryouts 
that are up on:

http://tarmo.uuu.ee/varia/failid/cs/nacl/
(work only in google chrome 31 and later, no csound installation needed)

1) name2music - this an online port of a soundgame I created for kindergarden 
children - enter your name and play with it. Originally I used arduino and two 
proximity controllers, so children could move their hands in the air and 
change the sound. Here replaced with a canvas.

http://tarmo.uuu.ee/varia/failid/cs/nacl/name2music.html


2) server-sent-messages-test: more simple, but potentially more interesting: 
This a rudimentary test for network based but synced csound music.
Here the sounds are played when server send a message (as described in server-
sent-test.php). The php sends a midi note number on every 2nd second, synced 
to the system clock of the server. So all people loading page 
http://tarmo.uuu.ee/varia/failid/cs/nacl/server-sent-test.html
should hear the same sound (almost) on the same time.

The idea is: streaming audio and doing all the buffering is heavy and slow. 
Why not to send just messages to all clients that compile and play the changes 
almost instantly (well, there is is the network latency, but this is still 
relatively small).

I don't know the html5 technologies much, I tried server sent event as it was 
relativley easy, there are also websockets that are much more powerful and 
probably the right way to go. But  I will not start learning it right now.

Still -- there is VAST potential, the nacl module is just awesome!

Thank you, if you can try it out and tell your ideas or feedback!

greetings,
tarmo


PS in the server-sent-test you get every now and then error "Serve sent event 
failed". I saw the logs on the server that a php script is allowed to run max 
30 seconds, I guess it is because of the restart of the script. There must be 
ways to solve it, but I will not do it now.


Date2013-12-06 10:28
FromOeyvind Brandtsegg
SubjectRe: [Csnd] pnacl tryouts
Nice ideas. Thanks for inspiring examples.
best,
Oeyvind

2013/12/6 Tarmo Johannes :
> Hi,
>
> I studied  abit javascript and Victor's pnacl examples and wrote some tryouts
> that are up on:
>
> http://tarmo.uuu.ee/varia/failid/cs/nacl/
> (work only in google chrome 31 and later, no csound installation needed)
>
> 1) name2music - this an online port of a soundgame I created for kindergarden
> children - enter your name and play with it. Originally I used arduino and two
> proximity controllers, so children could move their hands in the air and
> change the sound. Here replaced with a canvas.
>
> http://tarmo.uuu.ee/varia/failid/cs/nacl/name2music.html
>
>
> 2) server-sent-messages-test: more simple, but potentially more interesting:
> This a rudimentary test for network based but synced csound music.
> Here the sounds are played when server send a message (as described in server-
> sent-test.php). The php sends a midi note number on every 2nd second, synced
> to the system clock of the server. So all people loading page
> http://tarmo.uuu.ee/varia/failid/cs/nacl/server-sent-test.html
> should hear the same sound (almost) on the same time.
>
> The idea is: streaming audio and doing all the buffering is heavy and slow.
> Why not to send just messages to all clients that compile and play the changes
> almost instantly (well, there is is the network latency, but this is still
> relatively small).
>
> I don't know the html5 technologies much, I tried server sent event as it was
> relativley easy, there are also websockets that are much more powerful and
> probably the right way to go. But  I will not start learning it right now.
>
> Still -- there is VAST potential, the nacl module is just awesome!
>
> Thank you, if you can try it out and tell your ideas or feedback!
>
> greetings,
> tarmo
>
>
> PS in the server-sent-test you get every now and then error "Serve sent event
> failed". I saw the logs on the server that a php script is allowed to run max
> 30 seconds, I guess it is because of the restart of the script. There must be
> ways to solve it, but I will not do it now.
>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

Date2013-12-06 11:22
FromVictor Lazzarini
SubjectRe: [Csnd] pnacl tryouts
This is wonderful, thanks for sharing.
On 6 Dec 2013, at 09:59, Tarmo Johannes  wrote:

> Hi,
> 
> I studied  abit javascript and Victor's pnacl examples and wrote some tryouts 
> that are up on:
> 
> http://tarmo.uuu.ee/varia/failid/cs/nacl/
> (work only in google chrome 31 and later, no csound installation needed)
> 
> 1) name2music - this an online port of a soundgame I created for kindergarden 
> children - enter your name and play with it. Originally I used arduino and two 
> proximity controllers, so children could move their hands in the air and 
> change the sound. Here replaced with a canvas.
> 
> http://tarmo.uuu.ee/varia/failid/cs/nacl/name2music.html
> 
> 
> 2) server-sent-messages-test: more simple, but potentially more interesting: 
> This a rudimentary test for network based but synced csound music.
> Here the sounds are played when server send a message (as described in server-
> sent-test.php). The php sends a midi note number on every 2nd second, synced 
> to the system clock of the server. So all people loading page 
> http://tarmo.uuu.ee/varia/failid/cs/nacl/server-sent-test.html
> should hear the same sound (almost) on the same time.
> 
> The idea is: streaming audio and doing all the buffering is heavy and slow. 
> Why not to send just messages to all clients that compile and play the changes 
> almost instantly (well, there is is the network latency, but this is still 
> relatively small).
> 
> I don't know the html5 technologies much, I tried server sent event as it was 
> relativley easy, there are also websockets that are much more powerful and 
> probably the right way to go. But  I will not start learning it right now.
> 
> Still -- there is VAST potential, the nacl module is just awesome!
> 
> Thank you, if you can try it out and tell your ideas or feedback!
> 
> greetings,
> tarmo
> 
> 
> PS in the server-sent-test you get every now and then error "Serve sent event 
> failed". I saw the logs on the server that a php script is allowed to run max 
> 30 seconds, I guess it is because of the restart of the script. There must be 
> ways to solve it, but I will not do it now.
> 
> 
> 
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 



Date2013-12-18 17:56
FromJustin Smith
SubjectRe: [Csnd] pnacl tryouts
some widgets that could be useful in combination with csound pnacl:
(includes some knobs and draggables with a nice fluid momentum to them)


On Fri, Dec 6, 2013 at 3:22 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
This is wonderful, thanks for sharing.
On 6 Dec 2013, at 09:59, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote:

> Hi,
>
> I studied  abit javascript and Victor's pnacl examples and wrote some tryouts
> that are up on:
>
> http://tarmo.uuu.ee/varia/failid/cs/nacl/
> (work only in google chrome 31 and later, no csound installation needed)
>
> 1) name2music - this an online port of a soundgame I created for kindergarden
> children - enter your name and play with it. Originally I used arduino and two
> proximity controllers, so children could move their hands in the air and
> change the sound. Here replaced with a canvas.
>
> http://tarmo.uuu.ee/varia/failid/cs/nacl/name2music.html
>
>
> 2) server-sent-messages-test: more simple, but potentially more interesting:
> This a rudimentary test for network based but synced csound music.
> Here the sounds are played when server send a message (as described in server-
> sent-test.php). The php sends a midi note number on every 2nd second, synced
> to the system clock of the server. So all people loading page
> http://tarmo.uuu.ee/varia/failid/cs/nacl/server-sent-test.html
> should hear the same sound (almost) on the same time.
>
> The idea is: streaming audio and doing all the buffering is heavy and slow.
> Why not to send just messages to all clients that compile and play the changes
> almost instantly (well, there is is the network latency, but this is still
> relatively small).
>
> I don't know the html5 technologies much, I tried server sent event as it was
> relativley easy, there are also websockets that are much more powerful and
> probably the right way to go. But  I will not start learning it right now.
>
> Still -- there is VAST potential, the nacl module is just awesome!
>
> Thank you, if you can try it out and tell your ideas or feedback!
>
> greetings,
> tarmo
>
>
> PS in the server-sent-test you get every now and then error "Serve sent event
> failed". I saw the logs on the server that a php script is allowed to run max
> 30 seconds, I guess it is because of the restart of the script. There must be
> ways to solve it, but I will not do it now.
>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>



Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2013-12-18 18:14
FromRory Walsh
SubjectRe: [Csnd] pnacl tryouts
And don't forget all the JQuery UI stuff. There also exists a lot of plugins.
http://jqueryui.com/widget/

On 18 December 2013 17:56, Justin Smith  wrote:
> some widgets that could be useful in combination with csound pnacl:
> (includes some knobs and draggables with a nice fluid momentum to them)
> http://www.greensock.com/draggable/
>
>
> On Fri, Dec 6, 2013 at 3:22 AM, Victor Lazzarini 
> wrote:
>>
>> This is wonderful, thanks for sharing.
>> On 6 Dec 2013, at 09:59, Tarmo Johannes 
>> wrote:
>>
>> > Hi,
>> >
>> > I studied  abit javascript and Victor's pnacl examples and wrote some
>> > tryouts
>> > that are up on:
>> >
>> > http://tarmo.uuu.ee/varia/failid/cs/nacl/
>> > (work only in google chrome 31 and later, no csound installation needed)
>> >
>> > 1) name2music - this an online port of a soundgame I created for
>> > kindergarden
>> > children - enter your name and play with it. Originally I used arduino
>> > and two
>> > proximity controllers, so children could move their hands in the air and
>> > change the sound. Here replaced with a canvas.
>> >
>> > http://tarmo.uuu.ee/varia/failid/cs/nacl/name2music.html
>> >
>> >
>> > 2) server-sent-messages-test: more simple, but potentially more
>> > interesting:
>> > This a rudimentary test for network based but synced csound music.
>> > Here the sounds are played when server send a message (as described in
>> > server-
>> > sent-test.php). The php sends a midi note number on every 2nd second,
>> > synced
>> > to the system clock of the server. So all people loading page
>> > http://tarmo.uuu.ee/varia/failid/cs/nacl/server-sent-test.html
>> > should hear the same sound (almost) on the same time.
>> >
>> > The idea is: streaming audio and doing all the buffering is heavy and
>> > slow.
>> > Why not to send just messages to all clients that compile and play the
>> > changes
>> > almost instantly (well, there is is the network latency, but this is
>> > still
>> > relatively small).
>> >
>> > I don't know the html5 technologies much, I tried server sent event as
>> > it was
>> > relativley easy, there are also websockets that are much more powerful
>> > and
>> > probably the right way to go. But  I will not start learning it right
>> > now.
>> >
>> > Still -- there is VAST potential, the nacl module is just awesome!
>> >
>> > Thank you, if you can try it out and tell your ideas or feedback!
>> >
>> > greetings,
>> > tarmo
>> >
>> >
>> > PS in the server-sent-test you get every now and then error "Serve sent
>> > event
>> > failed". I saw the logs on the server that a php script is allowed to
>> > run max
>> > 30 seconds, I guess it is because of the restart of the script. There
>> > must be
>> > ways to solve it, but I will not do it now.
>> >
>> >
>> >
>> > Send bugs reports to the Sourceforge bug trackers
>> > csound6:
>> >            https://sourceforge.net/p/csound/tickets/
>> > csound5:
>> >            https://sourceforge.net/p/csound/bugs/
>> > Discussions of bugs and features can be posted here
>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> > csound"
>> >
>> >
>>
>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>             https://sourceforge.net/p/csound/tickets/
>> csound5:
>>             https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>