I have something along the lines of:
```
private void openFile_Click(object sender, RoutedEventArgs e)
{
Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
Nullable<bool> fileResult = dlg.ShowDialog();
if(fileResult.HasValue && fileResult.Value)
{
MidiFile midiFile = new MidiFile(dlg.FileName);
Debug.WriteLine(midiFile.Tracks); //Always 1
}
}
```
I have checked the midi file in other programs and definitely contains more than one track.
```
private void openFile_Click(object sender, RoutedEventArgs e)
{
Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
Nullable<bool> fileResult = dlg.ShowDialog();
if(fileResult.HasValue && fileResult.Value)
{
MidiFile midiFile = new MidiFile(dlg.FileName);
Debug.WriteLine(midiFile.Tracks); //Always 1
}
}
```
I have checked the midi file in other programs and definitely contains more than one track.