 #define LED_PIN 5
 #define INIT_DELAY 1000
 
+unsigned long mSensorTime = 0;
 SensorOrchestra* mOrchestra;
 
 // Forward declaration of callback functions

  Midi.setClockTickCallback(&onMidiClockTick);
  Midi.setClockStartCallback(&onMidiClockStart);

  // start orchestra
  mOrchestra->start();
}



void onSensorValue(uint16_t pValue) {
  unsigned long t = millis();
  if(t - mSensorTime > 200) {
    Serial.printf("sensor value: %i\n", pValue);
    mSensorTime = t;
  }
}


