public void SwitchSection(int trackIndex, MidiTrack.Section section, float offset)
{
if ((trackIndex != trackNumber) || (trackSection != section)) {
trackNumber = trackIndex;
eventIndex = section.EventIndex;
sampleTime = (int)section.StartSample;
trackSection = section;
SeekToFirstNote();
SilentProcess(SynthHelper.getSampleFromTime(synth.SampleRate, (_MidiFile.MicroSecondsPerQuarterNote / 1000000f) * offset * 4));
synth.NoteOffAll(false);
}
}