test
authorDan White <dan@whiteaudio.com>
Mon, 29 Jul 2013 21:27:20 +0000 (16:27 -0500)
committerDan White <dan@whiteaudio.com>
Mon, 29 Jul 2013 21:27:20 +0000 (16:27 -0500)
python-lib/sine-int.py

index 0af730ebf382c7be23274fc9d98fa92940324b79..e225bbdf11e67e8bcce954119520db9e699afe03 100644 (file)
@@ -213,6 +213,9 @@ for ph in phase:
         #save data only if in range
         dur = tend - tstart
         print '.',
+        ratio = dur / (Nperiods / f0)
+        if ratio < 1.2:
+            print ratio,
     print
 
     vout.append(out)