 // Note scheduling array,
 volatile MidiNote active_notes[TIMER_COUNT];
 
-void set_note(int i, byte channel, byte pitch, byte velocity){
+void set_note(int i, byte channel, byte pitch, byte velocity)
+{
   active_notes[i].channel = channel;
   active_notes[i].pitch = pitch;
   active_notes[i].velocity = velocity;

  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;


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

