     public var midiIn = MIDIEndpointRef()
     
     /// Name of the instrument
-    public var name = "AKMIDIInstrument"
+    public var name = "AKMIDINode"
     
     internal var internalNode: AKPolyphonicNode
     

    // MARK: - Handling MIDI Data
    
    // Send MIDI data to the audio unit
    func handleMIDI(data1: UInt32, data2: UInt32, data3: UInt32) {
        let status = data1 >> 4
        let channel = data1 & 0xF
        if(Int(status) == AKMIDIStatus.NoteOn.rawValue && data3 > 0) {
            internalNode.play(note: Int(data2), velocity: Int(data3))
        } else if Int(status) == AKMIDIStatus.NoteOn.rawValue && data3 == 0 {
            internalNode.stop(note: Int(data2))
        } else if Int(status) == AKMIDIStatus.NoteOff.rawValue {
            internalNode.stop(note: Int(data2))
        }
    }
    

    private func MyMIDIReadBlock(
        packetList: UnsafePointer<MIDIPacketList>,
        srcConnRefCon: UnsafeMutablePointer<Void>) -> Void {
        
        let packetCount = Int(packetList.memory.numPackets)
        let packet = packetList.memory.packet as MIDIPacket
        var packetPointer: UnsafeMutablePointer<MIDIPacket> = UnsafeMutablePointer.alloc(1)
        packetPointer.initialize(packet)

        for _ in 0 ..< packetCount {
            let event = AKMIDIEvent(packet: packetPointer.memory)

            handleMIDI(data1: UInt32(event.internalData[0]),
                       data2: UInt32(event.internalData[1]),
                       data3: UInt32(event.internalData[2]))
            packetPointer = MIDIPacketNext(packetPointer)
        }
    }
