             midiIn = 0
         }
     }
-
+    
+    func showVirtualMIDIPort(){
+        MIDIObjectSetIntegerProperty(midiIn, kMIDIPropertyPrivate, 0)
+    }
+    func hideVirtualMIDIPort(){
+        MIDIObjectSetIntegerProperty(midiIn, kMIDIPropertyPrivate, 1)
+    }
 }

            self.samplerUnit.stopNote(noteNumber, onChannel: channel)
        }
    }

    /// Discard all virtual ports
    open func destroyEndpoint() {
        if midiIn != 0 {

    public init(midiOutputName: String? = nil) {
        super.init()
        enableMIDI(name: midiOutputName ?? name)
        hideVirtualMIDIPort()
    }

    /// Enable MIDI input from a given MIDI client
