---
title: "cutEvents(in:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avmusictrack/cutevents(in:)"
---

# cutEvents(in:)

Splices all events in the beat range from the music track.

## Declaration

```swift
func cutEvents(in range: AVBeatRange)
```

## Parameters

- `range`: The range of beats.

## Discussion

Discussion All events past the end of the range you specify shift backward by the duration of the range.

## See Also

### Cutting and Copying Events

- [copyEvents(in:from:insertAt:)](avfaudio/avmusictrack/copyevents(in:from:insertat:).md)
- [copyAndMergeEvents(in:from:mergeAt:)](avfaudio/avmusictrack/copyandmergeevents(in:from:mergeat:).md)
