Ejemplo n.º 1
0
        public BmpMidiEntry(string filename, int track = -1)
        {
            if (track == -1)
            {
                track = 0;

                Match m = Regex.Match(filename, @"(^[^;\n\r]+)(?:;?(\d+)?)");
                if (m.Success && m.Groups.Count == 3)
                {
                    filename = m.Groups[1].Value;
                    if (!string.IsNullOrEmpty(m.Groups[2].Value))
                    {
                        track = int.Parse(m.Groups[2].Value);
                    }
                }
            }

            midiFilePath = new BmpMidiEntryPath(filename);
            midiTrack    = new BmpMidiEntryTrack(track);
        }
Ejemplo n.º 2
0
 public BmpMidiEntry()
 {
     midiFilePath = new BmpMidiEntryPath();
     midiTrack    = new BmpMidiEntryTrack();
 }