Subversion Repositories svn.mios32

Rev

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

Rev 2250 Rev 2322
Line 1... Line 1...
1
// $Id: seq_file_c.c 2250 2015-12-22 19:30:18Z tk $
1
// $Id: seq_file_c.c 2322 2016-03-15 19:08:38Z tk $
2
/*
2
/*
3
 * Config File access functions
3
 * Config File access functions
4
 *
4
 *
5
 * NOTE: before accessing the SD Card, the upper level function should
5
 * NOTE: before accessing the SD Card, the upper level function should
6
 * synchronize with the SD Card semaphore!
6
 * synchronize with the SD Card semaphore!
Line 322... Line 322...
322
      } else if( strcmp(parameter, "GlobalScale") == 0 ) {
322
      } else if( strcmp(parameter, "GlobalScale") == 0 ) {
323
        s32 value = get_dec_range(word, parameter, 0, 255);
323
        s32 value = get_dec_range(word, parameter, 0, 255);
324
        if( value >= 0 )
324
        if( value >= 0 )
325
          seq_core_global_scale = value;
325
          seq_core_global_scale = value;
326
      } else if( strcmp(parameter, "GlobalScaleCtrl") == 0 ) {
326
      } else if( strcmp(parameter, "GlobalScaleCtrl") == 0 ) {
327
        s32 value = get_dec_range(word, parameter, 0, 255);
-
 
328
        if( value >= 0 )
327
        // obsolete
329
          seq_core_global_scale_ctrl = value;
-
 
330
      } else if( strcmp(parameter, "GlobalScaleRoot") == 0 ) {
328
      } else if( strcmp(parameter, "GlobalScaleRoot") == 0 ) {
331
        s32 value = get_dec_range(word, parameter, 0, 255);
329
        s32 value = get_dec_range(word, parameter, 0, 255);
332
        if( value >= 0 )
330
        if( value >= 0 )
333
          seq_core_global_scale_root_selection = value;
331
          seq_core_global_scale_root_selection = value;
334
      } else if( strcmp(parameter, "LocalGrooveSelection") == 0 ) {
332
      } else if( strcmp(parameter, "LocalGrooveSelection") == 0 ) {
Line 904... Line 902...
904
902
905
  sprintf(line_buffer, "StepsPerPattern %d\n", seq_core_steps_per_pattern);
903
  sprintf(line_buffer, "StepsPerPattern %d\n", seq_core_steps_per_pattern);
906
  FLUSH_BUFFER;
904
  FLUSH_BUFFER;
907
905
908
  sprintf(line_buffer, "GlobalScale %d\n", seq_core_global_scale);
906
  sprintf(line_buffer, "GlobalScale %d\n", seq_core_global_scale);
909
  FLUSH_BUFFER;
-
 
910
-
 
911
  sprintf(line_buffer, "GlobalScaleCtrl %d\n", seq_core_global_scale_ctrl);
-
 
912
  FLUSH_BUFFER;
907
  FLUSH_BUFFER;
913
908
914
  sprintf(line_buffer, "GlobalScaleRoot %d\n", seq_core_global_scale_root_selection);
909
  sprintf(line_buffer, "GlobalScaleRoot %d\n", seq_core_global_scale_root_selection);
915
  FLUSH_BUFFER;
910
  FLUSH_BUFFER;
916
911