---
title: "setProfileState(_:enabledChannelCount:)"
framework: coremidi
role: symbol
role_heading: Instance Method
path: "coremidi/midiumpciprofile/setprofilestate(_:enabledchannelcount:)"
---

# setProfileState(_:enabledChannelCount:)

## Declaration

```swift
func setProfileState(_ isEnabled: Bool, enabledChannelCount: MIDIUInteger14) throws
```
