Subversion Repositories svn.mios32

Rev

Rev 2525 | Rev 2533 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2525 Rev 2532
Line 1... Line 1...
1
// $Id: seq_ui.h 2525 2017-10-07 15:48:19Z tk $
1
// $Id: seq_ui.h 2532 2017-10-12 21:50:45Z tk $
2
/*
2
/*
3
 * Header file for user interface routines
3
 * Header file for user interface routines
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 47... Line 47...
47
    // these button functions will change a page (special "radio button" handling required)
47
    // these button functions will change a page (special "radio button" handling required)
48
    u32 MENU_PRESSED:1;
48
    u32 MENU_PRESSED:1;
49
    u32 STEP_VIEW:1;
49
    u32 STEP_VIEW:1;
50
    u32 PAR_LAYER_SEL:1;
50
    u32 PAR_LAYER_SEL:1;
51
    u32 TRG_LAYER_SEL:1;
51
    u32 TRG_LAYER_SEL:1;
-
 
52
    u32 INS_SEL:1;
52
    u32 TRACK_SEL:1;
53
    u32 TRACK_SEL:1;
53
    u32 TEMPO_PRESET:1;
54
    u32 TEMPO_PRESET:1;
54
    u32 BOOKMARK:1;
55
    u32 BOOKMARK:1;
55
56
56
    // remaining functions
57
    // remaining functions
Line 60... Line 61...
60
    u32 SELECT_PRESSED:1;
61
    u32 SELECT_PRESSED:1;
61
    u32 EDIT_PRESSED:1;
62
    u32 EDIT_PRESSED:1;
62
    u32 MUTE_PRESSED:1;
63
    u32 MUTE_PRESSED:1;
63
    u32 PATTERN_PRESSED:1;
64
    u32 PATTERN_PRESSED:1;
64
    u32 SONG_PRESSED:1;
65
    u32 SONG_PRESSED:1;
-
 
66
    u32 PHRASE_PRESSED:1;
65
    u32 FAST_ENCODERS:1;
67
    u32 FAST_ENCODERS:1;
66
    u32 FAST2_ENCODERS:1;
68
    u32 FAST2_ENCODERS:1;
67
    u32 SOLO:1;
69
    u32 SOLO:1;
68
    u32 SCRUB:1;
70
    u32 SCRUB:1;
69
    u32 REW:1;
71
    u32 REW:1;
Line 172... Line 174...
172
  SEQ_UI_EDIT_DATAWHEEL_MODE_CHANGE_VALUE,
174
  SEQ_UI_EDIT_DATAWHEEL_MODE_CHANGE_VALUE,
173
  SEQ_UI_EDIT_DATAWHEEL_MODE_CHANGE_PARLAYER,
175
  SEQ_UI_EDIT_DATAWHEEL_MODE_CHANGE_PARLAYER,
174
  SEQ_UI_EDIT_DATAWHEEL_MODE_CHANGE_TRGLAYER
176
  SEQ_UI_EDIT_DATAWHEEL_MODE_CHANGE_TRGLAYER
175
} seq_ui_edit_datawheel_mode_t;
177
} seq_ui_edit_datawheel_mode_t;
176
#define SEQ_UI_EDIT_DATAWHEEL_MODE_NUM 5
178
#define SEQ_UI_EDIT_DATAWHEEL_MODE_NUM 5
-
 
179
-
 
180
typedef enum {
-
 
181
  SEQ_UI_SEL_VIEW_NONE = 0,
-
 
182
  SEQ_UI_SEL_VIEW_BOOKMARKS,
-
 
183
  SEQ_UI_SEL_VIEW_STEPS,
-
 
184
  SEQ_UI_SEL_VIEW_TRACKS,
-
 
185
  SEQ_UI_SEL_VIEW_PAR,
-
 
186
  SEQ_UI_SEL_VIEW_TRG,
-
 
187
  SEQ_UI_SEL_VIEW_INS,
-
 
188
  SEQ_UI_SEL_VIEW_MUTE,
-
 
189
  SEQ_UI_SEL_VIEW_PHRASE
-
 
190
} seq_ui_sel_view_t;
-
 
191
177
192
178
typedef union {
193
typedef union {
179
  u8 ALL;
194
  u8 ALL;
180
195
181
  struct {
196
  struct {
Line 313... Line 328...
313
extern s32 SEQ_UI_PMUTE_Init(u32 mode);
328
extern s32 SEQ_UI_PMUTE_Init(u32 mode);
314
extern s32 SEQ_UI_FX_Init(u32 mode);
329
extern s32 SEQ_UI_FX_Init(u32 mode);
315
extern s32 SEQ_UI_STEPSEL_Init(u32 mode);
330
extern s32 SEQ_UI_STEPSEL_Init(u32 mode);
316
extern s32 SEQ_UI_TRGSEL_Init(u32 mode);
331
extern s32 SEQ_UI_TRGSEL_Init(u32 mode);
317
extern s32 SEQ_UI_PARSEL_Init(u32 mode);
332
extern s32 SEQ_UI_PARSEL_Init(u32 mode);
-
 
333
extern s32 SEQ_UI_INSSEL_Init(u32 mode);
318
extern s32 SEQ_UI_TRACKSEL_Init(u32 mode);
334
extern s32 SEQ_UI_TRACKSEL_Init(u32 mode);
319
extern s32 SEQ_UI_BPM_PRESETS_Init(u32 mode);
335
extern s32 SEQ_UI_BPM_PRESETS_Init(u32 mode);
320
extern s32 SEQ_UI_EDIT_Init(u32 mode);
336
extern s32 SEQ_UI_EDIT_Init(u32 mode);
321
extern s32 SEQ_UI_MUTE_Init(u32 mode);
337
extern s32 SEQ_UI_MUTE_Init(u32 mode);
322
extern s32 SEQ_UI_PATTERN_Init(u32 mode);
338
extern s32 SEQ_UI_PATTERN_Init(u32 mode);
Line 422... Line 438...
422
438
423
extern s32 SEQ_UI_Bookmark_Store(u8 bookmark);
439
extern s32 SEQ_UI_Bookmark_Store(u8 bookmark);
424
extern s32 SEQ_UI_Bookmark_Restore(u8 bookmark);
440
extern s32 SEQ_UI_Bookmark_Restore(u8 bookmark);
425
441
426
extern s32 SEQ_UI_BOOKMARKS_Button_Handler(seq_ui_button_t button, s32 depressed);
442
extern s32 SEQ_UI_BOOKMARKS_Button_Handler(seq_ui_button_t button, s32 depressed);
-
 
443
extern s32 SEQ_UI_STEPSEL_Button_Handler(seq_ui_button_t button, s32 depressed);
-
 
444
extern s32 SEQ_UI_PARSEL_Button_Handler(seq_ui_button_t button, s32 depressed);
-
 
445
extern s32 SEQ_UI_TRGSEL_Button_Handler(seq_ui_button_t button, s32 depressed);
-
 
446
extern s32 SEQ_UI_INSSEL_Button_Handler(seq_ui_button_t button, s32 depressed);
427
447
428
448
429
/////////////////////////////////////////////////////////////////////////////
449
/////////////////////////////////////////////////////////////////////////////
430
// Export global variables
450
// Export global variables
431
/////////////////////////////////////////////////////////////////////////////
451
/////////////////////////////////////////////////////////////////////////////
Line 441... Line 461...
441
extern u8 ui_selected_trg_layer;
461
extern u8 ui_selected_trg_layer;
442
extern u8 ui_selected_instrument;
462
extern u8 ui_selected_instrument;
443
extern u8 ui_selected_step_view;
463
extern u8 ui_selected_step_view;
444
extern u8 ui_selected_step;
464
extern u8 ui_selected_step;
445
extern u8 ui_selected_item;
465
extern u8 ui_selected_item;
-
 
466
extern u8 ui_selected_bookmark;
-
 
467
extern u8 ui_selected_phrase;
446
extern u16 ui_selected_gp_buttons;
468
extern u16 ui_selected_gp_buttons;
447
469
448
extern u16 ui_hold_msg_ctr;
470
extern u16 ui_hold_msg_ctr;
449
extern u8  ui_hold_msg_ctr_drum_edit;
471
extern u8  ui_hold_msg_ctr_drum_edit;
450
472
451
extern seq_ui_page_t ui_page;
473
extern seq_ui_page_t ui_page;
452
extern seq_ui_page_t ui_selected_page;
474
extern seq_ui_page_t ui_selected_page;
453
extern seq_ui_page_t ui_stepview_prev_page;
475
extern seq_ui_page_t ui_stepview_prev_page;
454
extern seq_ui_page_t ui_trglayer_prev_page;
476
extern seq_ui_page_t ui_trglayer_prev_page;
455
extern seq_ui_page_t ui_parlayer_prev_page;
477
extern seq_ui_page_t ui_parlayer_prev_page;
-
 
478
extern seq_ui_page_t ui_inssel_prev_page;
-
 
479
extern seq_ui_page_t ui_tracksel_prev_page;
-
 
480
extern seq_ui_page_t ui_bookmarks_prev_page;
-
 
481
extern seq_ui_page_t ui_mute_prev_page;
456
482
457
extern volatile u8 ui_cursor_flash;
483
extern volatile u8 ui_cursor_flash;
458
extern volatile u8 ui_cursor_flash_overrun_ctr;
484
extern volatile u8 ui_cursor_flash_overrun_ctr;
459
extern u16 ui_cursor_flash_ctr;
485
extern u16 ui_cursor_flash_ctr;
460
486
Line 479... Line 505...
479
505
480
extern char ui_global_dir_list[80];
506
extern char ui_global_dir_list[80];
481
507
482
extern seq_ui_edit_view_t seq_ui_edit_view;
508
extern seq_ui_edit_view_t seq_ui_edit_view;
483
extern seq_ui_edit_datawheel_mode_t seq_ui_edit_datawheel_mode;
509
extern seq_ui_edit_datawheel_mode_t seq_ui_edit_datawheel_mode;
-
 
510
-
 
511
extern seq_ui_sel_view_t seq_ui_sel_view;
484
512
485
extern seq_ui_options_t seq_ui_options;
513
extern seq_ui_options_t seq_ui_options;
486
514
487
extern seq_ui_bookmark_t seq_ui_bookmarks[SEQ_UI_BOOKMARKS_NUM];
515
extern seq_ui_bookmark_t seq_ui_bookmarks[SEQ_UI_BOOKMARKS_NUM];
488
516