<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVParameterEvent/init(parameterID:scope:element:value:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVParameterEvent(im)initWithParameterID:scope:element:value:"
  },
  "title" : "init(parameterID:scope:element:value:)"
}
-->

# init(parameterID:scope:element:value:)

Creates an event with a parameter identifier, scope, element, and value for the parameter to set.

```
init(parameterID: UInt32, scope: UInt32, element: UInt32, value: Float)
```

## Parameters

`parameterID`

The identifier of the parameter.

`scope`

The audio unit scope for the parameter.

`element`

The element index in the scope.

`value`

The value of the parameter to set.

## Discussion

For more information about the parameters, see <doc://com.apple.documentation/documentation/AudioToolbox/AudioUnitParameterID>, <doc://com.apple.documentation/documentation/AudioToolbox/AudioUnitScope>, and <doc://com.apple.documentation/documentation/AudioToolbox/AudioUnitElement>. The valid range of values depend on the parameter you set.

---

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)