AVAudioSequencer playing AVAudioUnitSampler cuts of tail end of midi notes

156 Views Asked by At

I am playing a midi file using AVAudioSequencer and AVAudioUnitSampler. A midi file is being loaded into a MusicSequence object. The notes are being cut off as soon as another note is played essentially making it monophonic.

For example, a crash cymbal on beat 1 should sustain across the measure. However, the crash is cut off as soon as another note plays.

Can this be fixed so that notes will not be cut off?

1

There are 1 best solutions below

0
On

It turns out the that the AUPreset file was not configured properly and the notes were not sustaining.