The number of decks isn't a fixed value -- a MIDI controller or skin can change it. You shouldn't use a fixed-size array for this purpose because when a deck is added you'll read/write from junk memory and likely segfault. I would switch to a QMap keyed by group.