Re: [Csnd] sensekey + keydown
Date | 2013-07-18 15:18 |
From | "Art Hunkins" |
Subject | Re: [Csnd] sensekey + keydown |
I seem to recall that I dealt with this issue
successfully sometime in the past. I can't remember just what I did (though I'm
sure my solution appears in my realtime projects prior to a year ago or
so).
What occurs to me now is adding code in Csound that
looks for immesdiately repeated keystrokes (sensekey) and discards them if a
minimum of time has not gone by. This is not difficult to do.
Art Hunkins
|
Date | 2013-07-18 16:57 |
From | Justin Smith |
Subject | Re: [Csnd] sensekey + keydown |
A correction to what I said above: terminals only provide the ANSI interface, which does not provide any key release information, even with curses extensions. The best approach if you need key release information is to use a GUI toolkit that interprets input events (QT, TK and GTK are cross platform and work on the 3 big platforms, every platform has a myriad of other options). Accessing the raw input device is also an option, if not a portable or convenient one.
On Thu, Jul 18, 2013 at 7:18 AM, Art Hunkins <abhunkin@uncg.edu> wrote:
|