Changeset - b8012dcb714b
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 16 years ago 2009-06-13 21:21:15
drewp@bigasterisk.com
increase curvecalc update frequency 50ms to 20ms
Ignore-this: 15b3ef4d685a0cb8ddba3cca384438c2
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
bin/curvecalc
Show inline comments
 
@@ -243,25 +243,25 @@ class Output:
 
        
 
    def update2(self,t):
 

	
 
        # spot alsa soundcard offset is always 0, we get times about a
 
        # second ahead of what's really getting played
 
        #t = t - .7
 
        
 
        dispatcher.send("update status",
 
                        val="ok: receiving time from music player")
 
        if self.later and not self.later.cancelled and not self.later.called:
 
            self.later.cancel()
 

	
 
        self.later = reactor.callLater(.05, self.update)
 
        self.later = reactor.callLater(.02, self.update)
 

	
 
        self.recent_t = self.recent_t[-50:]+[t]
 
        period = (self.recent_t[-1] - self.recent_t[0]) / len(self.recent_t)
 
        dispatcher.send("update period", val=period)
 
        self.send_dmx(t)
 
        
 
    def send_dmx(self,t):
 
        dispatcher.send("curves to sliders", t=t)
 
        scaledsubs=[]
 
        for st in self.subterms:
 
            scl = st.scaled(t)
 
            scaledsubs.append(scl)
0 comments (0 inline, 0 general)