---
title: gain
framework: phase
role: symbol
role_heading: Instance Property
path: phase/phasegroup/gain
---

# gain

Modifies the volume of the group’s sounds.

## Declaration

```swift
var gain: Double { get set }
```

## Discussion

Discussion This property modifies the volume of all audio in the group. The framework clamps the value to the range between 0 and 1, where 0 silences the audio and 1 doesn’t modify the original volume.

## See Also

### Conrolling Loudness

- [fadeGain(gain:duration:curveType:)](phase/phasegroup/fadegain(gain:duration:curvetype:).md)
