From ee4d906b74397441cc7b3b06f9ed50016e0a93d3 Mon Sep 17 00:00:00 2001 From: Jared DeCook Date: Sat, 11 Mar 2023 14:38:53 -0500 Subject: Sequencer: Create data structure for storing stuff --- HexBoard_V1.1.ino | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'HexBoard_V1.1.ino') diff --git a/HexBoard_V1.1.ino b/HexBoard_V1.1.ino index ccdeee5..aa52ffa 100644 --- a/HexBoard_V1.1.ino +++ b/HexBoard_V1.1.ino @@ -199,6 +199,14 @@ byte activeButtons[elementCount]; // Array to hold current note bu byte previousActiveButtons[elementCount]; // Array to hold previous note button states for comparison unsigned long activeButtonsTime[elementCount]; // Array to track last note button activation time for debounce +// Variables for sequencer mode +typedef struct { + bool steps[32] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; + bool bank = 0; + int state = 0;// TODO: change to enum: normal, mute, solo, mute&solo +} Lane; +Lane lanes[7]; + // MENU SYSTEM SETUP // // Create menu page object of class GEMPage. Menu page holds menu items (GEMItem) and represents menu level. // Menu can have multiple menu pages (linked to each other) with multiple menu items each -- cgit 1.4.1