Subversion Repositories svn.mios32

Rev

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

Rev 2605 Rev 2633
Line 1... Line 1...
1
// $Id: seq_pattern.c 2605 2018-10-28 18:48:34Z tk $
1
// $Id: seq_pattern.c 2633 2019-01-04 11:10:04Z tk $
2
/*
2
/*
3
 * Pattern Routines
3
 * Pattern Routines
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 273... Line 273...
273
  {
273
  {
274
    int i;
274
    int i;
275
    u8 track = group * SEQ_CORE_NUM_TRACKS_PER_GROUP;
275
    u8 track = group * SEQ_CORE_NUM_TRACKS_PER_GROUP;
276
    for(i=0; i<SEQ_CORE_NUM_TRACKS_PER_GROUP; ++i, ++track)
276
    for(i=0; i<SEQ_CORE_NUM_TRACKS_PER_GROUP; ++i, ++track)
277
      SEQ_CORE_CancelSustainedNotes(track);
277
      SEQ_CORE_CancelSustainedNotes(track);
-
 
278
  }
-
 
279
-
 
280
  // optionally unmute loaded tracks
-
 
281
  if( seq_core_options.UNMUTE_ON_PATTERN_CHANGE ) {
-
 
282
    u16 pattern = 0xf << (4*group);
-
 
283
    portENTER_CRITICAL();
-
 
284
    seq_core_trk_muted &= ~pattern;
-
 
285
    seq_core_trk_synched_mute &= ~pattern;
-
 
286
    seq_core_trk_synched_unmute &= ~pattern;
-
 
287
    portEXIT_CRITICAL();
278
  }
288
  }
279
289
280
  // reset latched PB/CC values (because assignments could change)
290
  // reset latched PB/CC values (because assignments could change)
281
  if( !seq_core_options.PATTERN_CHANGE_DONT_RESET_LATCHED_PC ) {
291
  if( !seq_core_options.PATTERN_CHANGE_DONT_RESET_LATCHED_PC ) {
282
    SEQ_LAYER_ResetLatchedValues();
292
    SEQ_LAYER_ResetLatchedValues();