     }
   }
 
-  if((t - prevBeatTime) >= beatInterval) // Next beat?
+  if((t - prevBeatTime) >= beatInterval[playing_grid_set]) // Next beat?
   {
     // don't draw the progress bar on the performance layer
     if (layer != LAYERS - 1)

                temp = GRID_WIDTH;
              }
              grid_width[visible_grid_set] = temp;
              
              // adjust encoder ranges to match
              if (layer != LAYERS -1 )
              {

// add an SD card reader to load and save multiple sets and larger sets and remove some of the restrictions that we have for the EEPROM saving
// switch grids on measure bars so you you can change earlier than at the end of a grid, less waiting.
// Add some multi colored LED underneath to dance to the music
// add eeprom write progress bar

#include <Wire.h>
#include <EEPROM.h>
