Files @ b9aec3be2b8c
Branch filter:

Location: light9/bin/mpd_timing_test

drewp@bigasterisk.com
hw sliders send events in a way that piles up and we get big delays. this is a simple throttle that stops the pileup but interactivity is still bumpy
Ignore-this: a755c0611adee694bffc6fb08d3f767b
#!/usr/bin/python

"""
records times coming out of ascoltami

for example:

 % mpd_timing_test > timing
 # play some music in ascoltami, then ctrl-c
 % gnuplot
 > plot "timing" with lines

"""

import xmlrpclib, time

s = xmlrpclib.ServerProxy("http://localhost:8040")
start = time.time()
while 1:
    print time.time()-start,s.gettime()
    time.sleep(.01)