new mappings for Friday sep 20 video shoot
[SugarCubes.git] / Audio.pde
index 06390bc6f1ca874f45fc816e47e82b855e13ba49..4547a746cf9b3edb3617ee296f779ff188bd1524 100644 (file)
--- a/Audio.pde
+++ b/Audio.pde
@@ -35,7 +35,7 @@ public static class GraphicEQ {
     numBands = this.fft.avgSize();
     bandVals = new LinearEnvelope[numBands];
     for (int i = 0; i < bandVals.length; ++i) {
-      bandVals[i] = new LinearEnvelope(0, 0, 500).trigger();
+      (bandVals[i] = new LinearEnvelope(0, 0, 500)).trigger();
     }
   }
   
@@ -57,7 +57,7 @@ public static class GraphicEQ {
     return avg;
   }
   
-  public void run(int deltaMs) {
+  public void run(double deltaMs) {
     fft.forward(lx.audioInput().mix);
     float zeroDBReference = pow(10, 100*(1-level.getValuef())/20.);
     float decibelRange = 12 + range.getValuef() * 60;