     var trackingMIDIObject: MIDIObject?
     var speedOfTrackingMIDIObject: Int = 0
 
+    var midiContext: MIDIContext {
+        ((NSApp.delegate as? AppController)?.midiContext)!
+    }
+
     func captureDestinationsAndExternalDevices() {
         let center = NotificationCenter.default
 

            center.removeObserver(self, name: .midiObjectPropertyChanged, object: externalDevice)
        }

        guard let midiContext = (NSApp.delegate as? AppController)?.midiContext else { fatalError() }
        destinations = CombinationOutputStream.destinationsInContext(midiContext)
        externalDevices = midiContext.externalDevices


                midiObject.maxSysExSpeed = newValue

                // Work around bug where CoreMIDI doesn't pay attention to the new speed
                midiContext.forceCoreMIDIToUseNewSysExSpeed()
            }

