|
|
|
@ -2,52 +2,54 @@ |
|
|
|
|
uint8_t seq_active_track = 0; |
|
|
|
|
uint8_t seq_menu; |
|
|
|
|
bool seq_button_r = false; |
|
|
|
|
bool seq_noteoffsent = false; |
|
|
|
|
bool seq_noteoffsent[4] = {false,false,false,false}; |
|
|
|
|
elapsedMillis seq_millis_timer; |
|
|
|
|
uint8_t seq_step_timer = 0; |
|
|
|
|
uint8_t seq_step = 0; |
|
|
|
|
uint32_t seq_timer_previous = 0; |
|
|
|
|
bool seq_running = false; |
|
|
|
|
bool seq_recording = false; |
|
|
|
|
uint8_t seq_note_in; |
|
|
|
|
uint8_t seq_note_in_velocity; |
|
|
|
|
int seq_transpose; |
|
|
|
|
uint8_t seq_chain_select_menu; |
|
|
|
|
uint8_t seq_chain_active_menu = 99; |
|
|
|
|
int seq_tempo_ms=147; |
|
|
|
|
int seq_bpm=102; |
|
|
|
|
uint8_t seq_temp_select_menu; |
|
|
|
|
uint8_t seq_temp_active_menu = 99; |
|
|
|
|
uint8_t seq_chain_active_chainstep; |
|
|
|
|
uint8_t seq_chain_lenght=3; // 0=16 steps, 1=32 Steps, 2=46 Steps, 3=64 Steps
|
|
|
|
|
uint8_t seq_chain_active_step=0; |
|
|
|
|
uint8_t seq_prev_note; |
|
|
|
|
uint8_t seq_data[10][16] = {72, 0, 0, 0, 72, 0, 0, 72, 72, 0, 0, 0, 72, 0, 0, 0, |
|
|
|
|
0, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 75, 0, 0, 0, |
|
|
|
|
78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, |
|
|
|
|
45, 45, 57, 57, 45, 45, 57, 57, 45, 45, 57, 57, 45, 45, 57, 57, |
|
|
|
|
41, 41+12, 53, 53, 41+12, 41, 53, 53, 41, 41+12, 53, 53, 41, 41, 53, 53, |
|
|
|
|
43+12, 43, 55, 55, 43, 43, 55+12, 55, 43, 43, 55, 55, 43, 43, 55, 55, |
|
|
|
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68, 48, 88, 48, 78, 48, |
|
|
|
|
55, 45, 87, 27, 2, 6, 5, 37, 7, 45, 33, 37, 5, 35, 2, 27, |
|
|
|
|
55, 45, 77, 27, 12, 6, 15, 37, 7, 45, 43, 27, 15, 35, 2, 17, |
|
|
|
|
55, 75, 87, 27, 2, 16, 5, 37, 7, 45, 33, 37, 5, 35, 2, 27, |
|
|
|
|
65, 75, 87, 27, 2, 16, 5, 37, 7, 45, 33, 37, 5, 35, 2, 27, |
|
|
|
|
44,55,66,55,80,90,90,77,80,90,90,90,80,128,128,128, |
|
|
|
|
55,33,128,55,55,128,11,11,22,33,44,55,55,44,33,22, |
|
|
|
|
80, 0, 0, 0, 80, 0, 0, 33, 80, 0, 0, 0, 80, 0, 0, 0 |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
uint8_t seq_patternchain[4][4] = { 0 ,1 ,6 ,9 ,0 ,1 ,5 ,8 ,0 ,1 ,6 ,9 ,2 ,1 ,5 ,7
|
|
|
|
|
}; |
|
|
|
|
uint8_t seq_content_type[10] = { 0, 0, 0, 0 , 1, 1, 1 , 1 , 1 , 1 }; // 0 = track is Drumtrack, 1= Instrumenttrack
|
|
|
|
|
uint8_t seq_track_type[4] = { 0, 0, 1, 1 }; // 0 = track is Drumtrack, 1= Instrumenttrack
|
|
|
|
|
|
|
|
|
|
//uint8_t seq_reverb[4][16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
// 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 36, 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, 0, 0, 0
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
uint8_t seq_patternchain[4][4] = { 0, 1, 2, 3, |
|
|
|
|
0, 1, 2, 6, |
|
|
|
|
0, 1, 2, 4, |
|
|
|
|
7, 8, 2, 5 |
|
|
|
|
}; |
|
|
|
|