         }
         
         
-        result = MIDISourceCreate(midiClient, midiClientName, &virtOutput);
+        result = MIDISourceCreate(midiClient, midiClientName, &virtualOutput);
         if result == OSStatus(noErr) {
             print("Created virt source: \(midiClientName)")
             MIDIObjectSetIntegerProperty(virtualInput, kMIDIPropertyUniqueID, uniqueId + 1)
         }
         else {
-            print("Error creating virtual source: \(midiClientName) -- \(virtOutput)")
+            print("Error creating virtual source: \(midiClientName) -- \(virtualOutput)")
         }
 
     

    public var midiOutPort = MIDIPortRef()

    // virtual midi source (output)
    public var virtOutput = MIDIPortRef()

    
    /// Array of MIDI Endpoints

        }

        if virtualInput != 0 {
            MIDIEndpointDispose(virtualOutput)
            virtualInput = 0
        }
    }
