Csound Csound-dev Csound-tekno Search About

[Csnd] Fw: sensekey and Sugar (OLPC)

Date2009-05-05 23:46
From"Art Hunkins"
Subject[Csnd] Fw: sensekey and Sugar (OLPC)
AttachmentsOLPCSensekey.zip  
I didn't see this go through on the dev list, so I'm copying it here.

Art Hunkins

----- Original Message ----- 
From: "Art Hunkins" 
To: 
Sent: Tuesday, May 05, 2009 2:02 PM
Subject: Re: [Csnd] sensekey and Sugar (OLPC)


> There is definately a problem with sensekey being run in Sugar. Apparently
> it has to do with X windows, as this is what the log file indicates.
>
> The attached test csd runs fine from the console on the OLPC, including
> printing out the ASCII characters as struck on the keyboard (which is the
> expected behavior).
>
> In Sugar, however, the run aborts immediately; the log file carries on 
> about
> an X window system error. (The other attached file is the simplest 
> possible
> Python GUI.)
>
> When kasc is initialized to 0, and this line substituted for sensekey 
> (only
> the single line is changed, as indicated in the csd), the 10-second file
> runs fine - except, of course, there is no alternation of pitches when
> pressing ASCII keys. Obviously the problem involves sensekey and X 
> windows.
>
> Can one of the developers investigate (Victor, Brian, Andres, or anyone 
> else
> involved with OLPCsound), or indicate where I should turn?
>
> I've 4 csd's in my current OLPC Activity project; the two using MIDI
> controllers are working fine in Sugar, the two using ASCII keystrokes as a
> control mechanism (through sensekey) are hanging me up completely.
>
> The two attached files are intended to be inserted into Victor's Wave
> activity - in the Waves.activity directory. The attached waves.py replaces
> Victor's of the same name. As mentioned above, the sensekey.csd runs fine
> from the console and command line: csound sensekey.csd (from wherever
> sensekey.csd is located).
>
> I really hope this sensekey issue can be sorted, and made to work in 
> Sugar.
> 50% of my project depends on it.
>
> As always, I much appreciate the help.
>
> Art Hunkins
>
> ----- Original Message ----- 
> From: "Art Hunkins" 
> To: 
> Sent: Friday, May 01, 2009 9:57 PM
> Subject: Re: [Csnd] sensekey and Sugar (OLPC)
>
>
>>A followup:
>>
>> A similar sensekey/ASCII-based csd issues two slightly different error
>> messages (with the same run abort):
>>
>> rainbow-daemon: Fatal IO error 0 (Success) on X server :0.0
>> or
>> rainbow-daemon: Fatal IO error 11 (Resource temporarily unavailable) on X
>> server :0.0
>>
>> Sometimes the run returns to Sugar, sometimes not.
>>
>> The scripting seems to be right, and nearly identical for the two csd's.
>>
>> Art Hunkins
>>
>> ----- Original Message ----- 
>> From: "Art Hunkins" 
>> To: 
>> Sent: Friday, May 01, 2009 9:28 PM
>> Subject: [Csnd] sensekey and Sugar (OLPC)
>>
>>
>>>I have a csd that runs impeccably from the XO console, but fails in Sugar
>>>(a Python script is running as an XO project; I've been making progress).
>>>I'm fairly certain the problem is sensekey, or the way in which Sugar is
>>>(or isn't) dealing with ASCII keystrokes.
>>>
>>> The Sugar error occurs precisely at the first ASCII keystroke (prior to
>>> that, the run is fine). With the keystroke, the run aborts and exits to
>>> Sugar.
>>>
>>> The log shows the error message to be:
>>> rainbow-daemon: Fatal IO error 12 (Cannot allocate memory) on X server
>>> :0.0
>>> then a bit later:
>>> Csound tidy up: Segmentation fault
>>>
>>> What do I need to change?
>>>
>>> Art Hunkins
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>
> 

Date2009-05-06 21:06
FromBrian Redfern
Subject[Csnd] Re: Fw: sensekey and Sugar (OLPC)
I'm wondering if you need to use the channel and send in the ascii interaction from pygtk into your csd instead of using sensekey from csound? I have to look at the csndsugui code and see if it may have its own ascii key handling from pygtk, then you'd send those clicks into your csd via channels from the sugar gui.

On Tue, May 5, 2009 at 3:46 PM, Art Hunkins <abhunkin@uncg.edu> wrote:
I didn't see this go through on the dev list, so I'm copying it here.

Art Hunkins

----- Original Message ----- From: "Art Hunkins" <abhunkin@uncg.edu>
To: <csound-devel@lists.sourceforge.net>
Sent: Tuesday, May 05, 2009 2:02 PM
Subject: Re: [Csnd] sensekey and Sugar (OLPC)


There is definately a problem with sensekey being run in Sugar. Apparently
it has to do with X windows, as this is what the log file indicates.

The attached test csd runs fine from the console on the OLPC, including
printing out the ASCII characters as struck on the keyboard (which is the
expected behavior).

In Sugar, however, the run aborts immediately; the log file carries on about
an X window system error. (The other attached file is the simplest possible
Python GUI.)

When kasc is initialized to 0, and this line substituted for sensekey (only
the single line is changed, as indicated in the csd), the 10-second file
runs fine - except, of course, there is no alternation of pitches when
pressing ASCII keys. Obviously the problem involves sensekey and X windows.

Can one of the developers investigate (Victor, Brian, Andres, or anyone else
involved with OLPCsound), or indicate where I should turn?

I've 4 csd's in my current OLPC Activity project; the two using MIDI
controllers are working fine in Sugar, the two using ASCII keystrokes as a
control mechanism (through sensekey) are hanging me up completely.

The two attached files are intended to be inserted into Victor's Wave
activity - in the Waves.activity directory. The attached waves.py replaces
Victor's of the same name. As mentioned above, the sensekey.csd runs fine
from the console and command line: csound sensekey.csd (from wherever
sensekey.csd is located).

I really hope this sensekey issue can be sorted, and made to work in Sugar.
50% of my project depends on it.

As always, I much appreciate the help.

Art Hunkins

----- Original Message ----- From: "Art Hunkins" <abhunkin@uncg.edu>
To: <csound@lists.bath.ac.uk>
Sent: Friday, May 01, 2009 9:57 PM
Subject: Re: [Csnd] sensekey and Sugar (OLPC)


A followup:

A similar sensekey/ASCII-based csd issues two slightly different error
messages (with the same run abort):

rainbow-daemon: Fatal IO error 0 (Success) on X server :0.0
or
rainbow-daemon: Fatal IO error 11 (Resource temporarily unavailable) on X
server :0.0

Sometimes the run returns to Sugar, sometimes not.

The scripting seems to be right, and nearly identical for the two csd's.

Art Hunkins

----- Original Message ----- From: "Art Hunkins" <abhunkin@uncg.edu>
To: <csound@lists.bath.ac.uk>
Sent: Friday, May 01, 2009 9:28 PM
Subject: [Csnd] sensekey and Sugar (OLPC)


I have a csd that runs impeccably from the XO console, but fails in Sugar
(a Python script is running as an XO project; I've been making progress).
I'm fairly certain the problem is sensekey, or the way in which Sugar is
(or isn't) dealing with ASCII keystrokes.

The Sugar error occurs precisely at the first ASCII keystroke (prior to
that, the run is fine). With the keystroke, the run aborts and exits to
Sugar.

The log shows the error message to be:
rainbow-daemon: Fatal IO error 12 (Cannot allocate memory) on X server
:0.0
then a bit later:
Csound tidy up: Segmentation fault

What do I need to change?

Art Hunkins


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2009-05-06 22:12
FromBrian Redfern
Subject[Csnd] Re: Fw: sensekey and Sugar (OLPC)
Actually csndsugui doesn't include ascii input handling, its just for setting up buttons and sliders, etc... I would look at pygtk and see how it handles ascii and then try to pass those through the csndsugui channels. Or maybe csndsugui can be expanded to include ascii handling.

On Wed, May 6, 2009 at 1:06 PM, Brian Redfern <brianwredfern@gmail.com> wrote:
I'm wondering if you need to use the channel and send in the ascii interaction from pygtk into your csd instead of using sensekey from csound? I have to look at the csndsugui code and see if it may have its own ascii key handling from pygtk, then you'd send those clicks into your csd via channels from the sugar gui.


On Tue, May 5, 2009 at 3:46 PM, Art Hunkins <abhunkin@uncg.edu> wrote:
I didn't see this go through on the dev list, so I'm copying it here.

Art Hunkins

----- Original Message ----- From: "Art Hunkins" <abhunkin@uncg.edu>
To: <csound-devel@lists.sourceforge.net>
Sent: Tuesday, May 05, 2009 2:02 PM
Subject: Re: [Csnd] sensekey and Sugar (OLPC)


There is definately a problem with sensekey being run in Sugar. Apparently
it has to do with X windows, as this is what the log file indicates.

The attached test csd runs fine from the console on the OLPC, including
printing out the ASCII characters as struck on the keyboard (which is the
expected behavior).

In Sugar, however, the run aborts immediately; the log file carries on about
an X window system error. (The other attached file is the simplest possible
Python GUI.)

When kasc is initialized to 0, and this line substituted for sensekey (only
the single line is changed, as indicated in the csd), the 10-second file
runs fine - except, of course, there is no alternation of pitches when
pressing ASCII keys. Obviously the problem involves sensekey and X windows.

Can one of the developers investigate (Victor, Brian, Andres, or anyone else
involved with OLPCsound), or indicate where I should turn?

I've 4 csd's in my current OLPC Activity project; the two using MIDI
controllers are working fine in Sugar, the two using ASCII keystrokes as a
control mechanism (through sensekey) are hanging me up completely.

The two attached files are intended to be inserted into Victor's Wave
activity - in the Waves.activity directory. The attached waves.py replaces
Victor's of the same name. As mentioned above, the sensekey.csd runs fine
from the console and command line: csound sensekey.csd (from wherever
sensekey.csd is located).

I really hope this sensekey issue can be sorted, and made to work in Sugar.
50% of my project depends on it.

As always, I much appreciate the help.

Art Hunkins

----- Original Message ----- From: "Art Hunkins" <abhunkin@uncg.edu>
To: <csound@lists.bath.ac.uk>
Sent: Friday, May 01, 2009 9:57 PM
Subject: Re: [Csnd] sensekey and Sugar (OLPC)


A followup:

A similar sensekey/ASCII-based csd issues two slightly different error
messages (with the same run abort):

rainbow-daemon: Fatal IO error 0 (Success) on X server :0.0
or
rainbow-daemon: Fatal IO error 11 (Resource temporarily unavailable) on X
server :0.0

Sometimes the run returns to Sugar, sometimes not.

The scripting seems to be right, and nearly identical for the two csd's.

Art Hunkins

----- Original Message ----- From: "Art Hunkins" <abhunkin@uncg.edu>
To: <csound@lists.bath.ac.uk>
Sent: Friday, May 01, 2009 9:28 PM
Subject: [Csnd] sensekey and Sugar (OLPC)


I have a csd that runs impeccably from the XO console, but fails in Sugar
(a Python script is running as an XO project; I've been making progress).
I'm fairly certain the problem is sensekey, or the way in which Sugar is
(or isn't) dealing with ASCII keystrokes.

The Sugar error occurs precisely at the first ASCII keystroke (prior to
that, the run is fine). With the keystroke, the run aborts and exits to
Sugar.

The log shows the error message to be:
rainbow-daemon: Fatal IO error 12 (Cannot allocate memory) on X server
:0.0
then a bit later:
Csound tidy up: Segmentation fault

What do I need to change?

Art Hunkins


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"