Subversion Repositories svn.mios32

Rev

Rev 2628 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2628 Rev 2632
Line 1... Line 1...
1
// $Id: seq_ui_edit.c 2628 2018-12-30 21:14:09Z tk $
1
// $Id: seq_ui_edit.c 2632 2019-01-02 19:42:34Z tk $
2
/*
2
/*
3
 * Edit page
3
 * Edit page
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 467... Line 467...
467
    // change value of all selected steps
467
    // change value of all selected steps
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));
-
 
473
    u16 first_step = seq_ui_options.ALL_FOR_STEP_VIEW_ONLY ? (ui_selected_step_view * 16) : 0;
472
    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
    u16 last_step  = seq_ui_options.ALL_FOR_STEP_VIEW_ONLY ? (first_step + 15) : (num_steps-1);
-
 
474
    u16 trg_step = (changed_step & ~(num_steps-1)) + first_step;
475
475
476
    u16 par_step;
476
    u16 par_step;
477
    for(par_step=first_step; (par_step <= last_step) && (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) {
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))) ) {
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))) ) {
479
        change_gate = trg_step == changed_step;
479
        change_gate = trg_step == changed_step;