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


extension MIDISource: MIDIEventReceiver {
    
    public func receive(_ event: MIDIEvent) {
        for packet in event.packets {
            do {
                try received(packet)
            } catch let error {
                print(error)
            }
        }
    }
    


extension MIDIDestination: MIDIEventSender {
    
    public func send(_ packet: MIDIPacket, via output: MIDIOutput) {
        do {
            try output.send(packet, to: self)
        } catch let error {
            print(error)
        }
    }
    
