<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PHASE",
  "identifier" : "/documentation/PHASE/PHASEGeneratorNodeDefinition",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PHASE"
    ],
    "preciseIdentifier" : "c:objc(cs)PHASEGeneratorNodeDefinition"
  },
  "title" : "PHASEGeneratorNodeDefinition"
}
-->

# PHASEGeneratorNodeDefinition

A base class for nodes that provide audio data to generate sound.

```
class PHASEGeneratorNodeDefinition
```

## Overview

This class encapsulates shared logic for subclasses that provide audio data to a mixer for sound output, namely [`PHASESamplerNodeDefinition`](/documentation/PHASE/PHASESamplerNodeDefinition) and [`PHASEPushStreamNodeDefinition`](/documentation/PHASE/PHASEPushStreamNodeDefinition).

## Topics

### Calibrating Loudness

[`-  setCalibrationMode:level:`](/documentation/PHASE/PHASEGeneratorNodeDefinition/setCalibrationMode(calibrationMode:level:))

Selects a loudness correction strategy and reference level.

[`calibrationMode`](/documentation/PHASE/PHASEGeneratorNodeDefinition/calibrationMode)

A sound pressure level strategy for loudness correction.

[`level`](/documentation/PHASE/PHASEGeneratorNodeDefinition/level)

The node’s loudness.

### Defining an Output Strategy

[`mixerDefinition`](/documentation/PHASE/PHASEGeneratorNodeDefinition/mixerDefinition)

An object that combines audio layers for the node’s output.

### Joining a Group

[`group`](/documentation/PHASE/PHASEGeneratorNodeDefinition/group)

A group this node conforms to for gain and rate control.

### Controlling Audio Playback

[`rate`](/documentation/PHASE/PHASEGeneratorNodeDefinition/rate)

A playback speed for the node’s audio.

[`rateMetaParameterDefinition`](/documentation/PHASE/PHASEGeneratorNodeDefinition/rateMetaParameterDefinition)

A meta parameter that dynamically changes the audio’s rate.

[`gainMetaParameterDefinition`](/documentation/PHASE/PHASEGeneratorNodeDefinition/gainMetaParameterDefinition)

A meta parameter that dynamically changes the audio’s loudness.

## Relationships

### Inherited By

[`PHASEPushStreamNodeDefinition`](/documentation/PHASE/PHASEPushStreamNodeDefinition)

[`PHASEPullStreamNodeDefinition`](/documentation/PHASE/PHASEPullStreamNodeDefinition)

[`PHASESamplerNodeDefinition`](/documentation/PHASE/PHASESamplerNodeDefinition)

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`PHASESoundEventNodeDefinition`](/documentation/PHASE/PHASESoundEventNodeDefinition)

---

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)