Rev 2539 | Rev 2542 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2539 | Rev 2540 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | // $Id: seq_ui.c |
1 | // $Id: seq_ui.c 2540 2017-11-02 23:17:23Z tk $
|
2 | /*
|
2 | /*
|
3 | * User Interface Routines
|
3 | * User Interface Routines
|
4 | *
|
4 | *
|
5 | * ==========================================================================
|
5 | * ==========================================================================
|
6 | *
|
6 | *
|
Line 1669... | Line 1669... | ||
1669 | u16 mask = 1 << sel_button; |
1669 | u16 mask = 1 << sel_button; |
1670 | u16 *mute_flags = seq_ui_button_state.MUTE_PRESSED ? &seq_core_trk[visible_track].layer_muted : &seq_core_trk_muted; |
1670 | u16 *mute_flags = seq_ui_button_state.MUTE_PRESSED ? &seq_core_trk[visible_track].layer_muted : &seq_core_trk_muted; |
1671 | portENTER_CRITICAL(); |
1671 | portENTER_CRITICAL(); |
1672 | if( *mute_flags & mask ) { |
1672 | if( *mute_flags & mask ) { |
1673 | *mute_flags &= ~mask; |
1673 | *mute_flags &= ~mask; |
- | 1674 | ||
- | 1675 | if( seq_ui_button_state.MUTE_PRESSED ) { |
|
- | 1676 | // simplified usage: select the par layer
|
|
- | 1677 | ui_selected_par_layer = sel_button; |
|
- | 1678 | } else { |
|
- | 1679 | // simplified usage: select the track
|
|
- | 1680 | ui_selected_tracks = 1 << sel_button; |
|
- | 1681 | ui_selected_group = sel_button/4; |
|
- | 1682 | }
|
|
1674 | } else { |
1683 | } else { |
1675 | *mute_flags |= mask; |
1684 | *mute_flags |= mask; |
1676 | }
|
1685 | }
|
1677 | portEXIT_CRITICAL(); |
1686 | portEXIT_CRITICAL(); |
1678 | } break; |
1687 | } break; |