---
title: "init(channel:value:)"
framework: avfaudio
role: symbol
role_heading: Initializer
path: "avfaudio/avmidipitchbendevent/init(channel:value:)"
---

# init(channel:value:)

Creates an event with a channel and pitch bend value.

## Declaration

```swift
init(channel: UInt32, value: UInt32)
```

## Parameters

- `channel`: The MIDI channel for the message, between 0 and 15.
- `value`: The pitch bend value, between 0 and 16383.
