On Saturday 25 March 2006 07:09, matt ingalls wrote: > On Mar 24, 2006, at 6:14 PM, Steven Yi wrote: > > > I have sensekey listed with csound -z here on my computer, compiling > > from CVS. I imagine it must be there. Do you have OPCODEDIR or > > OPCODEDIR64 set, or if using from the API have you added those > > directories from the host? > > ok thanks steven - i was setting OPCODEDIR wrong! > > so now it compiles, but it STILL doesn't work!!! > > i don't see anywhere in pitch.c where it uses csound->inChar_ > which is what csoundKeyPress assigns the value to.. There are now changes to make csoundKeyPress() work, and also for stdin the same code is used on OS X as on Linux (if __unix is not defined on the Mac, then it was not the case until now, and the generic "default" code with getchar() is not really useful because it reads stdin in buffered and blocking mode). Note: it is recommended to send a null character with csoundKeyPress() after calling csoundCompile(), this will prevent the opcode from trying to fiddle with stdin and will always use the value set through the API. I did not test stdin on Win32 yet, so that may still be buggy. > and while we are at it, i have always wanted to either add a "keyup" > opcode/API function. that way i can write an instrument that > uses the keyboard keys like a piano keyboard... I do not really know why the API needs to be changed for that. It should be easy to write a simple utility that uses FLTK and PortMidi to display a piano keyboard, sense keyboard, and send MIDI events. In fact, I already wrote one earlier, but that used Gtk 1.2 and ALSA which is not portable. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net