<!--
{
  "availability" : [
    "iOS: 14.0.0 - 18.0.0",
    "iPadOS: 14.0.0 - 18.0.0",
    "macCatalyst: 14.0.0 - 18.0.0",
    "macOS: 11.0.0 - 15.0.0",
    "visionOS: 1.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/MIDICIProfileResponderDelegate/handleData(for:onChannel:data:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core MIDI"
    ],
    "preciseIdentifier" : "c:objc(pl)MIDICIProfileResponderDelegate(im)handleDataForProfile:onChannel:data:"
  },
  "title" : "handleData(for:onChannel:data:)"
}
-->

# handleData(for:onChannel:data:)

Processes MIDI data for a profile and channel.

```
optional func handleData(for aProfile: MIDICIProfile, onChannel channel: MIDIChannelNumber, data inData: Data)
```

## Parameters

`aProfile`

The MIDI-CI profile.

`channel`

The MIDI channel.

`inData`

The data to process.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)