 }
 
 void loop() {
+  AudioNoInterrupts();
   Looper::instance()->loop();
+  AudioInterrupts();
 }

  Serial.flush();
  delay(1000);

  //AudioMemory(10);

  //sgtl5000.enable();
  //sgtl5000.inputSelect(AUDIO_INPUT_MIC);
  //sgtl5000.volume(0.5);

  //AudioMemory(30);
  //audioShield.enable();
  //audioShield.inputSelect(AUDIO_INPUT_MIC);
  //audioShield.micGain(50);
  //note.begin(.75);

  //input = new AudioShieldInput(&peak, &note);
  //input = new AudioShieldLevelInput(&sgtl5000);
  input = new WaveInput(3);

  viz = new RippleVisualization(input, 165, 1);

  anim1 = new CurtainAnimation(viz, leds1);
  anim2 = new CurtainAnimation(viz, leds2);

TriangleAnimation* anim6;

// Audio shield setup
AudioInputI2S audio;
AudioAnalyzePeak peak;
AudioAnalyzeNoteFrequency note;
AudioConnection patchCord1(audio, peak);
AudioConnection patchCord2(audio, note);
AudioControlSGTL5000 audioShield;

void setup() {
  Log.Init(LOGLEVEL, 9600);
