So this works, but I am unable to get it to work within the code that does my buttons and potentiometers.
//Six rows on pins 0, 1, 2, 3, 4, 5
//Seven columns on pins 23, 22, 21, 20, 19, 18, 17,
//Four rotary encoders, pins (33,34) (36,37) (38,39) (40,41)
//Three potentiometers, pins 24, 25, 26...