 
 extension MIDIDevice: MIDIEventReceiver {
     
-    public func receive(_ event: MIDIEvent) {
+    public func receive(_ packet: MIDIPacket) {
         for entity in entities {
-            entity.receive(event)
+            entity.receive(packet)
         }
     }
     


extension MIDIDevice: MIDIEventSender {
    
    public func send(_ event: MIDIEvent, via output: MIDIOutput) {
        for entity in entities {
            entity.send(event, via: output)
        }
    }
    


extension MIDISource: MIDIEventReceiver {
    
    public func receive(_ packet: MIDIPacket) {
        do {
            try received(packet)
        } catch let error {
            print(error)
        }
    }
    
