It'd be great if it was just OSX's aqua (which, regardless does take up CPU :P), but I am seeing some situations where the keyboard will take up CPU on Linux as well. It's been hard for me to find, but the attached testMidi.csd will always eat up CPU with the FLTK keyboard regardless if an fltk graph display is visible or not. Still trying to get to the bottom of this... steven On 10/27/06, Victor Lazzarini wrote: > yes, you can bet it's OSX's Acqua, which uses up > a heck of a lot of CPU. It's a disgrace. I am > sure X-Windows Linux is better that way. > > Victor > > > > > Dear Steven, Victor, and Other Developers, > > > > I have been testing the virtual keyboard here at OLPC. > > (Not on the OLPC machine yet, but on my Macintosh > > running osX10.4 from the terminal.) > > > > It's great. So happy to have this utility. > > > > 1. I might like to suggest that if -M0 is selected in the > > command-line, but no MIDI controller is plugged into the > > computer, that rather than exiting out of Csound (giving > > the appearance of a crash) it might be nice for the > > default behavior to start up the fltk virtual keyboard > > (without required that I add the coomandline option - > > rtmidi=virtual) > > > > Also, when I run %top and look at the cpu load. > > I see that an actual midi keyboard performing > > DirectHamondV2.csd uses 20% of the machine > > and the virtual keyboard performing DirectHamondV2.csd > > uses about 80% of the machine. > > > > Any thoughts on this? Is it because of the implementation > > of FLTK on the Mac? > > > > -dB > > On Oct 27, 2006, at 12:45 PM, Steven Yi wrote: > > > > > Hi Victor, > > > > > > Thanks for your feedback! I've been racking by brain > > > trying to debug this thing to make it run reliably but > > > have to say that I'm not all that versed in FLTK as well > > > as C calling C++ code, so any help in those regards from > > anyone would be very much appreciated. > > > > I do occasionally get hung notes too, but I haven't > > > figured out what in the code is causing that, as to me > > > the code looks like it's doing the right thing. The > > > keyboard itself only records the note-on when it turns > > on as well as note-offs, and the MIDI driver part reads > > > and clears back to zero after using it. Perhaps there's > > > a threading issue somewhere though, I'll keep looking. > > > > > > As for unstable, could you describe it a bit? Is it > > > window redrawing issues, notes not playing? (Any info > > > here would help to diagnose what's going on). > > > > > > I was also running this with valgrind and it seems there > > > is a memory leak somewhere, but for the life of me I > > > can't see where it'd possibly leak memory. It reports > > > something going on in sensMIDI and the midi reading > > function, but even with everything compiled to debug it > > > has ????'s in the stack trace it gives, so it's been > > > very hard for me to find. > > > > > > Thanks though for your time to check it out! I'll keep > > > on with it to see if I can make any more progress. > > > > > > Thanks! > > > steven > > > > > > > > > On 10/27/06, Victor Lazzarini > > wrote: >> actually I got it working on OSX 10.3 here.But > > it seems a little >> unstable. > > >> > > >> At 17:07 27/10/2006, you wrote: > > >>> working here on Linux. But some of the lower notes > > seem to >>> be hanging (might be my own isntrument though) > > >>> > > >>> At 16:54 27/10/2006, you wrote: > > >>>> Hi All, > > >>>> > > >>>> I've just checked in a project I was working on which > > is an FLTK >>>> virtual keyboard midi driver. It's > > written as a plugin midi driver >>>> and if you run csound > > using: >>>> > > >>>> -+rtmidi=virtual -M0 > > >>>> > > >>>> as your MIDI flags, a keyboard window will pop up > > that looks like a >>>> piano keyboard. Using the keyboard > > with mouse downs, drags, and up >>>> will fire off MIDI > > notes. This should be useful in situations >>>> where > > >>>> you don't have a real MIDI device available (testing > > an orch, when >>>> you're on the road, etc.) > > >>>> > > >>>> I'd appreciate it if others here can update from CVS > > and give it a >>>> try. There is one bug in particular > > which I have been having a >>>> hard > > >>>> time diagnosing. It seems that if you run the > > keyboard either with >>>> --displays or not and the CSD > > has no FLTK widgets, the keyboard >>>> window > > >>>> will eat up CPU (on Linux here, the xorg process > > takes up a lot of >>>> it). Any help with that would be > > greatly appreciated. >>>> > > >>>> Also, I haven't had a chance to run on OSX or Windows > > myself, so >>>> any > > >>>> reports on that would be great. > > >>>> > > >>>> Thanks! > > >>>> steven > > >>>> > > >>>> > > ---------------------------------------------------------- > > --------- >>>> ------ > > >>>> Using Tomcat but need to do more? Need to support web > > services, >>>> security? > > >>>> Get stuff done quickly with pre-integrated technology > > to make >>>> your job > > >>> easier > > >>>> Download IBM WebSphere Application Server v.1.0.1 > > based on >>>> Apache Geronimo > > >>>> http://sel.as-us.falkag.net/sel? > > >>>> cmd=lnk&kid=120709&bid=263057&dat=121642 > > >>>> _______________________________________________ > > >>>> Csound-devel mailing list > > >>>> Csound-devel@lists.sourceforge.net > > >>>> > > https://lists.sourceforge.net/lists/listinfo/csound-devel > > >>> >>> Victor Lazzarini > > >>> Music Technology Laboratory > > >>> Music Department > > >>> National University of Ireland, Maynooth > > >>> > > >>> > > >>> > > ---------------------------------------------------------- > > ---------- >>> ----- > > >>> Using Tomcat but need to do more? Need to support web > > services, >>> security? > > >>> Get stuff done quickly with pre-integrated technology > > to make >>> your job easier > > >>> Download IBM WebSphere Application Server v.1.0.1 > > based on Apache >>> Geronimo > > >>> http://sel.as-us.falkag.net/sel? > > >>> cmd=lnk&kid=120709&bid=263057&dat=121642 > > >>> _______________________________________________ > > >>> Csound-devel mailing list > > >>> Csound-devel@lists.sourceforge.net > > >>> > > https://lists.sourceforge.net/lists/listinfo/csound-devel > > >> >> Victor Lazzarini > > >> Music Technology Laboratory > > >> Music Department > > >> National University of Ireland, Maynooth > > >> > > >> > > >> > > ---------------------------------------------------------- > > ----------- >> ---- > > >> Using Tomcat but need to do more? Need to support web > > services, >> security? > > >> Get stuff done quickly with pre-integrated technology > > to make your >> job easier > > >> Download IBM WebSphere Application Server v.1.0.1 based > > on Apache >> Geronimo > > >> http://sel.as-us.falkag.net/sel? > > >> cmd=lnk&kid=120709&bid=263057&dat=121642 > > >> _______________________________________________ > > >> Csound-devel mailing list > > >> Csound-devel@lists.sourceforge.net > > >> > > https://lists.sourceforge.net/lists/listinfo/csound-devel > > >> > > > > > > ---------------------------------------------------------- > > > ------------ --- > > > Using Tomcat but need to do more? Need to support web > > > services, security? > > > Get stuff done quickly with pre-integrated technology to > > > make your job easier > > > Download IBM WebSphere Application Server v.1.0.1 based > > > on Apache Geronimo > > > http://sel.as-us.falkag.net/sel? > > > cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > Csound-devel mailing list > > > Csound-devel@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/csound-devel > > > > > > ---------------------------------------------------------- > > --------------- Using Tomcat but need to do more? Need to > > support web services, security? Get stuff done quickly > > with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on > > Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Csound-devel mailing list > > Csound-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/csound-devel > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel >