Subversion Repositories svn.mios32

Rev

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

Rev 1261 Rev 2635
Line 1... Line 1...
1
// $Id: seq_midimp.c 1261 2011-07-17 18:21:45Z tk $
1
// $Id: seq_midimp.c 2635 2019-01-06 17:14:01Z tk $
2
/*
2
/*
3
 * MIDI File Importer
3
 * MIDI File Importer
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 229... Line 229...
229
    int i, j;
229
    int i, j;
230
    for(i=0; i<seq_midimp_num_layers; ++i)
230
    for(i=0; i<seq_midimp_num_layers; ++i)
231
      for(j=0; j<num_steps; ++j)
231
      for(j=0; j<num_steps; ++j)
232
        SEQ_PAR_Set(track, j, 0, i, 100);
232
        SEQ_PAR_Set(track, j, 0, i, 100);
233
233
234
    for(i=0; i<16; ++i)
234
    for(i=0; i<16; ++i) {
-
 
235
      u8 note = 36;
235
      SEQ_LABEL_CopyPresetDrum(i, (char *)&seq_core_trk[track].name[5*i]);
236
      SEQ_LABEL_CopyPresetDrum(i, (char *)&seq_core_trk[track].name[5*i], &note);
-
 
237
      SEQ_LAYER_PresetDrumNoteSet(ui_edit_preset_num_drum, note); // define new default value for drum
-
 
238
    }
236
      } else {
239
      } else {
237
    SEQ_PAR_TrackInit(track, num_steps, seq_midimp_num_layers, 1);
240
    SEQ_PAR_TrackInit(track, num_steps, seq_midimp_num_layers, 1);
238
    SEQ_TRG_TrackInit(track, num_steps, seq_midimp_num_layers, 1);
241
    SEQ_TRG_TrackInit(track, num_steps, seq_midimp_num_layers, 1);
239
    SEQ_CC_Set(track, SEQ_CC_MIDI_EVENT_MODE, SEQ_EVENT_MODE_Note);
242
    SEQ_CC_Set(track, SEQ_CC_MIDI_EVENT_MODE, SEQ_EVENT_MODE_Note);
240
243