private void GetAllTimingInformationHelper_GetTempo()
{
for (int i = 0; i < midiEventCollection[0].Count; i++)
{
try
{
i_TempoInBPM = (int)((TempoEvent)midiEventCollection[0][i]).Tempo;
i_TempoInNanoseconds = (int)(1000000 * (60 / (double)i_TempoInBPM));
i_MicrosecondsPerQuarterNote = ((TempoEvent)midiEventCollection[0][i]).MicrosecondsPerQuarterNote;
return;
}
catch (InvalidCastException) { }
}
}