[Cs-dev] csoundGetScoreTime();
Date | 2006-05-03 16:13 |
From | Rory Walsh |
Subject | [Cs-dev] csoundGetScoreTime(); |
I would love to use csoundGetScoreTime() in Lettuce but it doesn't seem to be a possibility, at least the way I'm trying it, i.e., ....performance thread.... while((csoundPerformKsmps(p->instance) == 0) { Lettuce->Label1 = csoundGetScoreTime(p-instance); } The problem is that the constant updating to the GUI label1 is causing awful clicks. I have tried putting a test in my performance loop to slow down the drawing but that's worse! Can anyone see a solution. At the moment in Lettuce I have a separate thread running the timer but that could become a problem. Rory. ------------------------------------------------------- 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 |
Date | 2006-05-03 16:25 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] csoundGetScoreTime(); |
I would suggest you to update a variable that holds a score time in the ksmps loop. Then you can put a timer to do the drawing at a leisurely pace, say, every 50ms. Don't run a separate thread, insert the timer in the main GUI loop. Victor At 16:13 03/05/2006, you wrote: >I would love to use csoundGetScoreTime() in Lettuce but it doesn't seem to >be a possibility, at least the way I'm trying it, i.e., > >....performance thread.... >while((csoundPerformKsmps(p->instance) == 0) > { > Lettuce->Label1 = csoundGetScoreTime(p-instance); > } > >The problem is that the constant updating to the GUI label1 is causing >awful clicks. I have tried putting a test in my performance loop to slow >down the drawing but that's worse! Can anyone see a solution. At the >moment in Lettuce I have a separate thread running the timer but that >could become a problem. > >Rory. > > >------------------------------------------------------- >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 |
Date | 2006-05-03 17:25 |
From | Rory Walsh |
Subject | Re: [Cs-dev] csoundGetScoreTime(); |
Cheers, that helped. Rory. Victor Lazzarini wrote: > I would suggest you to update a variable that holds a score time > in the ksmps loop. Then you can put a timer to do the drawing > at a leisurely pace, say, every 50ms. Don't run a separate thread, > insert the timer in the main GUI loop. > > Victor > > At 16:13 03/05/2006, you wrote: >> I would love to use csoundGetScoreTime() in Lettuce but it doesn't >> seem to be a possibility, at least the way I'm trying it, i.e., >> >> ....performance thread.... >> while((csoundPerformKsmps(p->instance) == 0) >> { >> Lettuce->Label1 = csoundGetScoreTime(p-instance); >> } >> >> The problem is that the constant updating to the GUI label1 is causing >> awful clicks. I have tried putting a test in my performance loop to >> slow down the drawing but that's worse! Can anyone see a solution. At >> the moment in Lettuce I have a separate thread running the timer but >> that could become a problem. >> >> Rory. >> >> >> ------------------------------------------------------- >> 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 |