Rev 2628 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2628 | Rev 2633 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | // $Id: seq_ui_opt.c |
1 | // $Id: seq_ui_opt.c 2633 2019-01-04 11:10:04Z tk $
|
2 | /*
|
2 | /*
|
3 | * Options page
|
3 | * Options page
|
4 | *
|
4 | *
|
5 | * ==========================================================================
|
5 | * ==========================================================================
|
6 | *
|
6 | *
|
Line 47... | Line 47... | ||
47 | #define ITEM_PATTERN_RESEND_PC 3
|
47 | #define ITEM_PATTERN_RESEND_PC 3
|
48 | #define ITEM_RATOPC 4
|
48 | #define ITEM_RATOPC 4
|
49 | #define ITEM_PATTERN_MIXER_MAP_COUPLING 5
|
49 | #define ITEM_PATTERN_MIXER_MAP_COUPLING 5
|
50 | #define ITEM_SYNC_MUTE 6
|
50 | #define ITEM_SYNC_MUTE 6
|
51 | #define ITEM_SYNC_UNMUTE 7
|
51 | #define ITEM_SYNC_UNMUTE 7
|
- | 52 | #define ITEM_UNMUTE_ON_PATTERN_CHANGE 8
|
|
52 | #define ITEM_SELECT_UNMUTED_TRACK |
53 | #define ITEM_SELECT_UNMUTED_TRACK 9
|
53 | #define ITEM_PASTE_CLR_ALL |
54 | #define ITEM_PASTE_CLR_ALL 10
|
54 | #define ITEM_RESTORE_TRACK_SELECTIONS |
55 | #define ITEM_RESTORE_TRACK_SELECTIONS 11
|
55 | #define ITEM_MODIFY_PATTERN_BANKS |
56 | #define ITEM_MODIFY_PATTERN_BANKS 12
|
56 | #define ITEM_ALL_FOR_STEP_VIEW_ONLY |
57 | #define ITEM_ALL_FOR_STEP_VIEW_ONLY 13
|
57 | #define ITEM_PRINT_AND_MODIFY_WITHOUT_GATES |
58 | #define ITEM_PRINT_AND_MODIFY_WITHOUT_GATES 14
|
58 | #define ITEM_PRINT_TRANSPOSED_NOTES |
59 | #define ITEM_PRINT_TRANSPOSED_NOTES 15
|
59 | #define ITEM_METRONOME |
60 | #define ITEM_METRONOME 16
|
60 | #define ITEM_SHADOW_OUT |
61 | #define ITEM_SHADOW_OUT 17
|
61 | #define ITEM_MIDI_REMOTE |
62 | #define ITEM_MIDI_REMOTE 18
|
62 | #define ITEM_TRACK_CC |
63 | #define ITEM_TRACK_CC 19
|
63 | #define ITEM_RUNTIME_STATUS_OPTIMIZATION |
64 | #define ITEM_RUNTIME_STATUS_OPTIMIZATION 20
|
64 | #define ITEM_LIVE_LAYER_MUTE |
65 | #define ITEM_LIVE_LAYER_MUTE 21
|
65 | #define ITEM_INIT_WITH_TRIGGERS |
66 | #define ITEM_INIT_WITH_TRIGGERS 22
|
66 | #define ITEM_INIT_CC |
67 | #define ITEM_INIT_CC 23
|
67 | #define ITEM_DRUM_CC |
68 | #define ITEM_DRUM_CC 24
|
68 | #define ITEM_TPD_MODE |
69 | #define ITEM_TPD_MODE 25
|
69 | #define ITEM_SWAP_GP_LED_COLOURS |
70 | #define ITEM_SWAP_GP_LED_COLOURS 26
|
70 | #define ITEM_INVERT_MUTE_LEDS |
71 | #define ITEM_INVERT_MUTE_LEDS 27
|
71 | #define ITEM_BLM_ALWAYS_USE_FTS |
72 | #define ITEM_BLM_ALWAYS_USE_FTS 28
|
72 | #define ITEM_BLM_FADERS |
73 | #define ITEM_BLM_FADERS 29
|
73 | #define ITEM_MIXER_CC1234 |
74 | #define ITEM_MIXER_CC1234 30
|
74 | #define ITEM_MENU_SHORTCUTS |
75 | #define ITEM_MENU_SHORTCUTS 31
|
75 | #define ITEM_SCREEN_SAVER |
76 | #define ITEM_SCREEN_SAVER 32
|
76 | 77 | ||
77 | #define NUM_OF_ITEMS |
78 | #define NUM_OF_ITEMS 33
|
78 | 79 | ||
79 | 80 | ||
80 | static const char *item_text[NUM_OF_ITEMS][2] = { |
81 | static const char *item_text[NUM_OF_ITEMS][2] = { |
81 | 82 | ||
82 | {//<--------------------------------------> |
83 | {//<--------------------------------------> |
Line 114... | Line 115... | ||
114 | NULL, // enabled/disabled |
115 | NULL, // enabled/disabled |
115 | }, |
116 | }, |
116 | 117 | ||
117 | {//<--------------------------------------> |
118 | {//<--------------------------------------> |
118 | "Synchronize UNMUTE to Measure", |
119 | "Synchronize UNMUTE to Measure", |
- | 120 | NULL, // enabled/disabled |
|
- | 121 | }, |
|
- | 122 | ||
- | 123 | {//<--------------------------------------> |
|
- | 124 | "Unmute tracks on pattern change", |
|
119 | NULL, // enabled/disabled |
125 | NULL, // enabled/disabled |
120 | }, |
126 | }, |
121 | 127 | ||
122 | {//<--------------------------------------> |
128 | {//<--------------------------------------> |
123 | "Auto-Select unmuted Track", |
129 | "Auto-Select unmuted Track", |
Line 373... | Line 379... | ||
373 | case ITEM_SYNC_UNMUTE: { |
379 | case ITEM_SYNC_UNMUTE: { |
374 | if( incrementer ) |
380 | if( incrementer ) |
375 | seq_core_options.SYNCHED_UNMUTE = (incrementer > 0) ? 1 : 0; |
381 | seq_core_options.SYNCHED_UNMUTE = (incrementer > 0) ? 1 : 0; |
376 | else
|
382 | else
|
377 | seq_core_options.SYNCHED_UNMUTE ^= 1; |
383 | seq_core_options.SYNCHED_UNMUTE ^= 1; |
- | 384 | ui_store_file_required = 1; |
|
- | 385 | return 1; |
|
- | 386 | } break; |
|
- | 387 | ||
- | 388 | case ITEM_UNMUTE_ON_PATTERN_CHANGE: { |
|
- | 389 | if( incrementer ) |
|
- | 390 | seq_core_options.UNMUTE_ON_PATTERN_CHANGE = (incrementer > 0) ? 1 : 0; |
|
- | 391 | else
|
|
- | 392 | seq_core_options.UNMUTE_ON_PATTERN_CHANGE ^= 1; |
|
378 | ui_store_file_required = 1; |
393 | ui_store_file_required = 1; |
379 | return 1; |
394 | return 1; |
380 | } break; |
395 | } break; |
381 | 396 | ||
382 | case ITEM_SELECT_UNMUTED_TRACK: { |
397 | case ITEM_SELECT_UNMUTED_TRACK: { |
Line 970... | Line 985... | ||
970 | } break; |
985 | } break; |
971 | 986 | ||
972 | ///////////////////////////////////////////////////////////////////////////
|
987 | ///////////////////////////////////////////////////////////////////////////
|
973 | case ITEM_SYNC_UNMUTE: { |
988 | case ITEM_SYNC_UNMUTE: { |
974 | enabled_value = seq_core_options.SYNCHED_UNMUTE; |
989 | enabled_value = seq_core_options.SYNCHED_UNMUTE; |
- | 990 | } break; |
|
- | 991 | ||
- | 992 | ///////////////////////////////////////////////////////////////////////////
|
|
- | 993 | case ITEM_UNMUTE_ON_PATTERN_CHANGE: { |
|
- | 994 | enabled_value = seq_core_options.UNMUTE_ON_PATTERN_CHANGE; |
|
975 | } break; |
995 | } break; |
976 | 996 | ||
977 | ///////////////////////////////////////////////////////////////////////////
|
997 | ///////////////////////////////////////////////////////////////////////////
|
978 | case ITEM_SELECT_UNMUTED_TRACK: { |
998 | case ITEM_SELECT_UNMUTED_TRACK: { |
979 | enabled_value = seq_ui_options.SELECT_UNMUTED_TRACK; |
999 | enabled_value = seq_ui_options.SELECT_UNMUTED_TRACK; |