---
title: "init(parameterID:scope:element:value:)"
framework: avfaudio
role: symbol
role_heading: Initializer
path: "avfaudio/avparameterevent/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.

## Declaration

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

Discussion For more information about the parameters, see AudioUnitParameterID, AudioUnitScope, and AudioUnitElement. The valid range of values depend on the parameter you set.
