 {
   // if we find a timer free, start a note with pitch/velocity specified
   int idx = find_first_empty_note_index();
-  if (idx == -1){
+  if (idx == -1)
+  {
     return;
   }
 

  active_notes[i].phase_us = micros() % active_notes[i].period_us;
}

void clear_note(int i) {
  active_notes[i].velocity = 0;
  active_notes[i].pitch = 255;
  active_notes[i].channel = 0;

  active_notes[i].phase_us = 0;
}

int find_first_empty_note_index()
{
  for (int i = 0; i < TIMER_COUNT; i++)
  {
    if (active_notes[i].pitch == 255)
    {
      return i;
    }
  }
  return -1;
}

float bent_value_cents = 0;

