Subversion Repositories svn.mios32

Rev

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

Rev 2564 Rev 2628
Line 1... Line 1...
1
// $Id: seq_ui_edit.c 2564 2018-03-03 21:31:17Z tk $
1
// $Id: seq_ui_edit.c 2628 2018-12-30 21:14:09Z tk $
2
/*
2
/*
3
 * Edit page
3
 * Edit page
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 468... Line 468...
468
    u8 track;
468
    u8 track;
469
    for(track=0; track<SEQ_CORE_NUM_TRACKS; ++track) {
469
    for(track=0; track<SEQ_CORE_NUM_TRACKS; ++track) {
470
      if( SEQ_UI_IsSelectedTrack(track) ) {
470
      if( SEQ_UI_IsSelectedTrack(track) ) {
471
    u16 num_steps = SEQ_PAR_NumStepsGet(track);
471
    u16 num_steps = SEQ_PAR_NumStepsGet(track);
472
    u16 trg_step = (changed_step & ~(num_steps-1));
472
    u16 trg_step = (changed_step & ~(num_steps-1));
-
 
473
    u16 first_step = seq_ui_options.ALL_FOR_STEP_VIEW_ONLY ? (ui_selected_step_view * 16) : 0;
-
 
474
    u16 last_step  = seq_ui_options.ALL_FOR_STEP_VIEW_ONLY ? (first_step + 15) : (num_steps-1);
473
475
474
    u16 par_step;
476
    u16 par_step;
475
    for(par_step=0; par_step<num_steps; ++par_step, ++trg_step) {
477
    for(par_step=first_step; (par_step <= last_step) && (par_step < num_steps); ++par_step, ++trg_step) {
476
      if( !(seq_ui_button_state.CHANGE_ALL_STEPS || seq_ui_button_state.CHANGE_ALL_STEPS_SAME_VALUE) || (!edit_ramp && par_step == changed_step) || (selected_steps & (1 << (par_step % 16))) ) {
478
      if( !(seq_ui_button_state.CHANGE_ALL_STEPS || seq_ui_button_state.CHANGE_ALL_STEPS_SAME_VALUE) || (!edit_ramp && par_step == changed_step) || (selected_steps & (1 << (par_step % 16))) ) {
477
        change_gate = trg_step == changed_step;
479
        change_gate = trg_step == changed_step;
478
480
479
        u8 dont_change_gate = par_step != changed_step;
481
        u8 dont_change_gate = par_step != changed_step;
480
        if( change_gate || seq_ui_button_state.CHANGE_ALL_STEPS || seq_ui_button_state.CHANGE_ALL_STEPS_SAME_VALUE ) {
482
        if( change_gate || seq_ui_button_state.CHANGE_ALL_STEPS || seq_ui_button_state.CHANGE_ALL_STEPS_SAME_VALUE ) {