From 6beb9557d7cda7379d8e2b67e236a802b8a18886 Mon Sep 17 00:00:00 2001 From: amartin Date: Thu, 14 Feb 2008 09:11:42 +0000 Subject: network --- (limited to 'TamTamJam.activity') diff --git a/TamTamJam.activity/Jam/JamMain.py b/TamTamJam.activity/Jam/JamMain.py index 8794a38..9029265 100644 --- a/TamTamJam.activity/Jam/JamMain.py +++ b/TamTamJam.activity/Jam/JamMain.py @@ -1141,7 +1141,6 @@ class JamMain(gtk.EventBox): self.updateSync() - def _setBeat( self, beat ): curTick = self.csnd.loopGetTick( self.heartbeatLoop ) % self.syncTicks curBeat = int(curTick) // Config.TICKS_PER_BEAT @@ -1165,23 +1164,6 @@ class JamMain(gtk.EventBox): self.playbackToolbar.updateBeatWheel( self.curBeat ) return True - def anextHeartbeat( self ): - delta = time.time() - self.heartbeatStart - return self.beatDuration - (delta % self.beatDuration) - - def anextHeartbeatInTicks( self ): - delta = time.time() - self.heartbeatStart - next = self.beatDuration - (delta % self.beatDuration) - return self.ticksPerSecond*next - - def aheartbeatElapsed( self ): - delta = time.time() - self.heartbeatStart - return delta % self.beatDuration - - def aheartbeatElapsedTicks( self ): - delta = time.time() - self.heartbeatStart - return self.ticksPerSecond*(delta % self.beatDuration) - def correctedHeartbeat( self ): elapsedTicks = (time.time() - self.heartbeatStart)*self.ticksPerSecond return (elapsedTicks + self.offsetTicks) % (self.syncTicks*HEARTBEAT_BUFFER) @@ -1213,7 +1195,7 @@ class JamMain(gtk.EventBox): #print "correctSync", curTick, corTick, err, maxTick, self.offsetTicks - if abs(err) > 10*Config.TICKS_PER_BEAT: # we're way off + if abs(err) > 4*Config.TICKS_PER_BEAT: # we're way off for id in self.desktop.getLoopIds() + [ self.heartbeatLoop ]: tick = self.csnd.loopGetTick( id ) maxTick = self.csnd.loopGetNumTicks( id ) diff --git a/TamTamJam.activity/icons/beats.svg b/TamTamJam.activity/icons/beats.svg new file mode 100755 index 0000000..b1592b5 --- /dev/null +++ b/TamTamJam.activity/icons/beats.svg @@ -0,0 +1,10 @@ + + + + + + + + + diff --git a/TamTamJam.activity/icons/mute.svg b/TamTamJam.activity/icons/mute.svg new file mode 100755 index 0000000..425b205 --- /dev/null +++ b/TamTamJam.activity/icons/mute.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + -- cgit v0.9.1