Subversion Repositories svn.mios32

Rev

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

Rev 1675 Rev 1794
Line 1... Line 1...
1
// $Id: seq_file_c.c 1675 2013-02-01 22:37:50Z tk $
1
// $Id: seq_file_c.c 1794 2013-05-31 19:25:43Z 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 306... Line 306...
306
        seq_core_glb_loop_mode = value;
306
        seq_core_glb_loop_mode = value;
307
      } else if( strcmp(parameter, "LoopOffset") == 0 ) {
307
      } else if( strcmp(parameter, "LoopOffset") == 0 ) {
308
        seq_core_glb_loop_offset = value-1;
308
        seq_core_glb_loop_offset = value-1;
309
      } else if( strcmp(parameter, "LoopSteps") == 0 ) {
309
      } else if( strcmp(parameter, "LoopSteps") == 0 ) {
310
        seq_core_glb_loop_steps = value-1;
310
        seq_core_glb_loop_steps = value-1;
-
 
311
      } else if( strcmp(parameter, "MIDI_OUT_ExtCtrlPort") == 0 ) {
-
 
312
        seq_midi_in_ext_ctrl_out_port = (mios32_midi_port_t)value;
311
      } else if( strcmp(parameter, "QuickSelLength") == 0 ) {
313
      } else if( strcmp(parameter, "QuickSelLength") == 0 ) {
312
        int i;
314
        int i;
313
        for(i=0; i<UI_QUICKSEL_NUM_PRESETS; ++i) {
315
        for(i=0; i<UI_QUICKSEL_NUM_PRESETS; ++i) {
314
          if( i >= 1 ) word = strtok_r(NULL, separators, &brkt);
316
          if( i >= 1 ) word = strtok_r(NULL, separators, &brkt);
315
          int v = get_dec(word);
317
          int v = get_dec(word);
Line 687... Line 689...
687
689
688
  sprintf(line_buffer, "MIDI_IN_ExtCtrlChannel %d\n", seq_midi_in_ext_ctrl_channel);
690
  sprintf(line_buffer, "MIDI_IN_ExtCtrlChannel %d\n", seq_midi_in_ext_ctrl_channel);
689
  FLUSH_BUFFER;
691
  FLUSH_BUFFER;
690
692
691
  sprintf(line_buffer, "MIDI_IN_ExtCtrlPort %d\n", (u8)seq_midi_in_ext_ctrl_port);
693
  sprintf(line_buffer, "MIDI_IN_ExtCtrlPort %d\n", (u8)seq_midi_in_ext_ctrl_port);
-
 
694
  FLUSH_BUFFER;
-
 
695
  sprintf(line_buffer, "MIDI_OUT_ExtCtrlPort %d\n", (u8)seq_midi_in_ext_ctrl_out_port);
692
  FLUSH_BUFFER;
696
  FLUSH_BUFFER;
693
697
694
  sprintf(line_buffer, "MIDI_IN_ExtCtrlCcMorph %d\n", (u8)seq_midi_in_ext_ctrl_asg[SEQ_MIDI_IN_EXT_CTRL_MORPH]); FLUSH_BUFFER;
698
  sprintf(line_buffer, "MIDI_IN_ExtCtrlCcMorph %d\n", (u8)seq_midi_in_ext_ctrl_asg[SEQ_MIDI_IN_EXT_CTRL_MORPH]); FLUSH_BUFFER;
695
  sprintf(line_buffer, "MIDI_IN_ExtCtrlCcScale %d\n", (u8)seq_midi_in_ext_ctrl_asg[SEQ_MIDI_IN_EXT_CTRL_SCALE]); FLUSH_BUFFER;
699
  sprintf(line_buffer, "MIDI_IN_ExtCtrlCcScale %d\n", (u8)seq_midi_in_ext_ctrl_asg[SEQ_MIDI_IN_EXT_CTRL_SCALE]); FLUSH_BUFFER;
696
  sprintf(line_buffer, "MIDI_IN_ExtCtrlCcSong %d\n", (u8)seq_midi_in_ext_ctrl_asg[SEQ_MIDI_IN_EXT_CTRL_SONG]); FLUSH_BUFFER;
700
  sprintf(line_buffer, "MIDI_IN_ExtCtrlCcSong %d\n", (u8)seq_midi_in_ext_ctrl_asg[SEQ_MIDI_IN_EXT_CTRL_SONG]); FLUSH_BUFFER;