Subversion Repositories svn.mios32

Rev

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

Rev 1422 Rev 1794
Line 1... Line 1...
1
// $Id: seq_par.c 1422 2012-02-12 11:22:43Z tk $
1
// $Id: seq_par.c 1794 2013-05-31 19:25:43Z tk $
2
/*
2
/*
3
 * Parameter Layer Routines
3
 * Parameter Layer Routines
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 62... Line 62...
62
  0x00, // None
62
  0x00, // None
63
  0x3c, // Note: C-3
63
  0x3c, // Note: C-3
64
  0x40, // Chord: 0
64
  0x40, // Chord: 0
65
  100,  // Velocity
65
  100,  // Velocity
66
  71,   // Length
66
  71,   // Length
67
  64,   // CC
67
  64,   // CC // NEW: overruled via seq_core_options.INIT_CC !!!
68
  64,   // PitchBender
68
  64,   // PitchBender
69
  0,    // Probability (reversed: 100%)
69
  0,    // Probability (reversed: 100%)
70
  0,    // Delay
70
  0,    // Delay
71
  0,    // Roll
71
  0,    // Roll
72
  0,    // Roll2
72
  0,    // Roll2
Line 400... Line 400...
400
  if( par_type >= SEQ_PAR_NUM_TYPES )
400
  if( par_type >= SEQ_PAR_NUM_TYPES )
401
    return 0;
401
    return 0;
402
402
403
  if( par_layer > 0 && (par_type == SEQ_PAR_Type_Note || par_type == SEQ_PAR_Type_Chord) )
403
  if( par_layer > 0 && (par_type == SEQ_PAR_Type_Note || par_type == SEQ_PAR_Type_Chord) )
404
    return 0x00; // Note/Chords are 0 by default if not in Layer A
404
    return 0x00; // Note/Chords are 0 by default if not in Layer A
-
 
405
-
 
406
  // new: variable init value
-
 
407
  if( par_type == SEQ_PAR_Type_CC )
-
 
408
    return seq_core_options.INIT_CC;
405
409
406
  return seq_par_default_value[par_type];
410
  return seq_par_default_value[par_type];
407
}
411
}
408
412
409
413