Song progression
This commit is contained in:
+26
-1
@@ -10,6 +10,25 @@ struct Step {
|
||||
bool tie;
|
||||
};
|
||||
|
||||
struct ChordStep {
|
||||
int8_t rootOffset; // Semitones relative to key
|
||||
int8_t scaleType; // Scale type index
|
||||
uint8_t repeats; // Number of repetitions
|
||||
};
|
||||
|
||||
#define MAX_PROG_STEPS 12
|
||||
|
||||
struct ChordProgression {
|
||||
const char* name;
|
||||
int length;
|
||||
ChordStep steps[MAX_PROG_STEPS]; // Max 12 steps
|
||||
};
|
||||
|
||||
enum ProgressionOrder {
|
||||
PROG_ORDER_SEQUENCE,
|
||||
PROG_ORDER_RANDOM
|
||||
};
|
||||
|
||||
enum PlayMode {
|
||||
MODE_MONO,
|
||||
MODE_POLY
|
||||
@@ -24,7 +43,13 @@ enum UIState {
|
||||
UI_EDIT_INTENSITY,
|
||||
UI_SETUP_PLAYMODE_EDIT,
|
||||
UI_RANDOMIZE_TRACK_EDIT,
|
||||
UI_EDIT_ROOT
|
||||
UI_EDIT_ROOT,
|
||||
UI_EDIT_PROG_ORDER,
|
||||
UI_EDIT_PROG_TEMPLATE,
|
||||
UI_EDIT_PROG_LENGTH,
|
||||
UI_EDIT_PROG_STEP_ROOT,
|
||||
UI_EDIT_PROG_STEP_TYPE,
|
||||
UI_EDIT_PROG_STEP_REPS
|
||||
};
|
||||
|
||||
inline void sortArray(int arr[], int size) {
|
||||
|
||||
Reference in New Issue
Block a user