---
title: "handleData(for:onChannel:data:)"
framework: coremidi
role: symbol
role_heading: Instance Method
path: "coremidi/midiciprofileresponderdelegate/handledata(for:onchannel:data:)"
---

# handleData(for:onChannel:data:)

Processes MIDI data for a profile and channel.

## Declaration

```swift
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.

## See Also

### Protocol Methods

- [connectInitiator(_:with:)](coremidi/midiciprofileresponderdelegate/connectinitiator(_:with:).md)
- [willSetProfile(_:onChannel:enabled:)](coremidi/midiciprofileresponderdelegate/willsetprofile(_:onchannel:enabled:).md)
- [initiatorDisconnected(_:)](coremidi/midiciprofileresponderdelegate/initiatordisconnected(_:).md)
