while (1) {
  // follow delay time and blink LED when the effect and delay are enabled
  tapBypass = tapBypass && hw.switches[Terrarium::SWITCH_1].Pressed() ? false : true;
  System::Delay(currentDelay/100); // maths are not quite right here, it does start to drift
  led1.Set(!bypass && tapBypass ? 1 : 0);
}