summaryrefslogtreecommitdiffstats
path: root/src/sequencer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sequencer.c')
-rw-r--r--src/sequencer.c23
1 files changed, 20 insertions, 3 deletions
diff --git a/src/sequencer.c b/src/sequencer.c
index c83fa5a..6f7dd21 100644
--- a/src/sequencer.c
+++ b/src/sequencer.c
@@ -537,7 +537,6 @@ typedef struct SeqSprite {
537 u16 obj_attr_2; 537 u16 obj_attr_2;
538} SeqSprite; 538} SeqSprite;
539 539
540
541typedef enum { 540typedef enum {
542 SEQ_SELECT_TRIGGER, 541 SEQ_SELECT_TRIGGER,
543 SEQ_SELECT_CHANNEL, 542 SEQ_SELECT_CHANNEL,
@@ -1058,12 +1057,30 @@ update_sequencer_sprites(void) {
1058 int x = SEQ_ENV_POS_X + 8; 1057 int x = SEQ_ENV_POS_X + 8;
1059 int y = SEQ_ENV_POS_Y; 1058 int y = SEQ_ENV_POS_Y;
1060 1059
1060 draw_fill_rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, COLOR_BLACK);
1061
1061 // Clear wave A and draw. 1062 // Clear wave A and draw.
1062 draw_fill_rect(x, y, x + 64, y + 16, COLOR_BLACK); 1063 // draw_fill_rect(x, y, x + 64, y + 16, COLOR_BLACK);
1063 draw_wave_pattern(wave_a, x, y, COLOR_RED); 1064 draw_wave_pattern(wave_a, x, y, COLOR_RED);
1064 1065
1066 // Write wave text.
1067 txt_position(x, y + 20);
1068 txt_printf("%02x%02x%02x%02x %02x%02x%02x%02x",
1069 wave_a[0], wave_a[1], wave_a[2], wave_a[3],
1070 wave_a[4], wave_a[5], wave_a[6], wave_a[7]);
1071 txt_position(x, y + 20 + 8);
1072 txt_printf("%02x%02x%02x%02x %02x%02x%02x%02x",
1073 wave_a[8], wave_a[9], wave_a[10], wave_a[11],
1074 wave_a[12], wave_a[13], wave_a[14], wave_a[15]);
1075 // txt_position(0,y + 20 + 8);
1076 // txt_printf("%02x%02x%02x%02x %02x%02x%02x%02x %02x%02x%02x%02x %02x%02x%02x%02x\n",
1077 // wave_b[0], wave_b[1], wave_b[2], wave_b[3],
1078 // wave_b[4], wave_b[5], wave_b[6], wave_b[7],
1079 // wave_b[8], wave_b[9], wave_b[10], wave_b[11],
1080 // wave_b[12], wave_b[13], wave_b[14], wave_b[15]);
1081
1065 // Clear wave B and draw. 1082 // Clear wave B and draw.
1066 draw_fill_rect(x + 64 + 16, y, x + 64 * 2 + 16, y + 16, COLOR_BLACK); 1083 // draw_fill_rect(x + 64 + 16, y, x + 64 * 2 + 16, y + 16, COLOR_BLACK);
1067 draw_wave_pattern(wave_b, x + 64 + 16, y, COLOR_CYAN); 1084 draw_wave_pattern(wave_b, x + 64 + 16, y, COLOR_CYAN);
1068 } else if ((current_selection == SEQ_SELECT_TRIGGER 1085 } else if ((current_selection == SEQ_SELECT_TRIGGER
1069 || current_selection == SEQ_SELECT_PARAMETER) 1086 || current_selection == SEQ_SELECT_PARAMETER)