From afe1d2fefd1be49681b4ee5f6ab3899f36ad64f9 Mon Sep 17 00:00:00 2001 From: Rio Date: Sun, 26 Jul 2020 23:36:53 +0200 Subject: [PATCH] Feature: AUTO FAST MODE 2 - needs ENC_AUTO_FAST 2 in hw config file - activates the fast mode for all encoder/pages/par initially --- .../midibox_seq_v4/!!!!!INFO!!!!.txt | 40 ++++++++++++++++++- .../midibox_seq_v4/core/seq_file_hw.c | 7 ++++ apps/sequencers/midibox_seq_v4/core/seq_ui.c | 8 +++- 3 files changed, 52 insertions(+), 3 deletions(-) diff --git a/apps/sequencers/midibox_seq_v4/!!!!!INFO!!!!.txt b/apps/sequencers/midibox_seq_v4/!!!!!INFO!!!!.txt index 581b8515a..3c6228d21 100644 --- a/apps/sequencers/midibox_seq_v4/!!!!!INFO!!!!.txt +++ b/apps/sequencers/midibox_seq_v4/!!!!!INFO!!!!.txt @@ -21,7 +21,7 @@ modified size (with IIC Hack): ----------------------------- arm-none-eabi-size project_build/project.elf text data bss dec hex filename - 420084 960 62888 483932 7625c project_build/project.elf + 420100 960 62888 483948 7626c project_build/project.elf 10000000 B __ram_start 10007ea8 B __ram_end 2007c000 D __ram_start_ahb @@ -5395,7 +5395,43 @@ s32 SEQ_UI_EDIT_LCD_Handler(u8 high_prio, seq_ui_edit_mode_t edit_mode) ----------------------------------------------------------------- -27. Upload via MIOS_STUDIO (mindestens 2.4.5) +27. Auto Fast Mode 2 (always on) + +seq_ui.c --> +s32 SEQ_UI_InitEncSpeed(u32 auto_config) +{ + .. + + default: + //#################################### + //# RIO: AUTO FAST MODE 2 + //#################################### + seq_ui_button_state.FAST_ENCODERS = seq_hwcfg_enc.auto_fast == 2 ? 1 : 0; + //#################################### + //# RIO: END MODIFICATION + //#################################### + } + +seq_file_hw.c --> +s32 SEQ_FILE_HW_Read(void) +{ + .. + + if( strcasecmp(parameter, "AUTO_FAST") == 0 ) { + seq_hwcfg_enc.auto_fast = sr; + //#################################### + //# RIO: AUTO FAST MODE 2 + //#################################### + if (sr == 2) SEQ_UI_InitEncSpeed(1); + //#################################### + //# RIO: END MODIFICATION + //#################################### + continue; + } + +----------------------------------------------------------------- + +28. Upload via MIOS_STUDIO (mindestens 2.4.5) Säubern im verzeichnis in cmd: make clean Kompilieren im verzeichnis in cmd: make diff --git a/apps/sequencers/midibox_seq_v4/core/seq_file_hw.c b/apps/sequencers/midibox_seq_v4/core/seq_file_hw.c index d5e187956..6099d6d5d 100644 --- a/apps/sequencers/midibox_seq_v4/core/seq_file_hw.c +++ b/apps/sequencers/midibox_seq_v4/core/seq_file_hw.c @@ -866,6 +866,13 @@ s32 SEQ_FILE_HW_Read(void) } if( strcasecmp(parameter, "AUTO_FAST") == 0 ) { seq_hwcfg_enc.auto_fast = sr; + //#################################### + //# RIO: AUTO FAST MODE 2 + //#################################### + if (sr == 2) SEQ_UI_InitEncSpeed(1); + //#################################### + //# RIO: END MODIFICATION + //#################################### continue; } diff --git a/apps/sequencers/midibox_seq_v4/core/seq_ui.c b/apps/sequencers/midibox_seq_v4/core/seq_ui.c index 61137bc03..292af53f4 100644 --- a/apps/sequencers/midibox_seq_v4/core/seq_ui.c +++ b/apps/sequencers/midibox_seq_v4/core/seq_ui.c @@ -296,7 +296,13 @@ s32 SEQ_UI_InitEncSpeed(u32 auto_config) break; default: - seq_ui_button_state.FAST_ENCODERS = 0; + //#################################### + //# RIO: AUTO FAST MODE 2 + //#################################### + seq_ui_button_state.FAST_ENCODERS = seq_hwcfg_enc.auto_fast == 2 ? 1 : 0; + //#################################### + //# RIO: END MODIFICATION + //#################################### } }