Csound Csound-dev Csound-tekno Search About

[Cs-dev] Sensekey/Linux/OLPC Issue

Date2008-12-31 22:36
From"Art Hunkins"
Subject[Cs-dev] Sensekey/Linux/OLPC Issue
I've finally gotten a little into Linux through the OLPC, and have 
encountered a significant problem with sensekey. Sensekey doesn't work the 
same in Windows as on the OLPC, in console/terminal mode. Here's what 
happens:

1) In Windows, sensekey intercepts all ASCII input and doesn't print 
anything to the console. The result is no significant computing time lost 
that can cause audio glitches. It handles Return/Enter (ASC13) just like 
other input. Result: no problems.

2) In Linux (at least the OLPC), sensekey, while doing generally as expected 
with input, also prints it to the terminal. This takes additional time and 
causes audio glitches. In addition, it does an actual CR/LF for Enter, and 
does not intercept it as ASC13 for Csound. In Csound it's like ASC13 wasn't 
pressed.

A complicating factor is that every half-second I am printing a single 
refreshing line to the console that displays the off/on state of all 
ASCII-key triggers. The printing of keystrokes to the screen of course 
completely muddles my refreshing line.

I've the feeling that if the OLPC simply didn't print to the screen, 
everything would be OK (with the possible exception of the Enter/Return key 
issue?)

Right now this is making all my composition variants that use the ASCII 
keyboard as controller unworkable on Linux (affecting 6 or so pieces of 
mine). I've been completely unaware of this inconsistency until now.

Perhaps someone could advise me as to how sensekey behaves on the Mac too. 
(Hopefully, like Windows?)

In my view, sensekey behavior should be the same on all platforms.

I'd appreciate all the developer help I can get on this - and/or show me 
what I don't understand. Perhaps there's a workaround; but frankly I hope 
this one can be *fixed* - i.e., made consistent one way or the other.

BTW, this issue is mentioned in the Csound Journal article I've just 
submitted, having to do with live Csound, "ideal" MIDI controllers, and 
(incidentally) the ASCII keyboard as controller.

Thanks as always - and Happy New Year,

Art Hunkins 


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net