WaveformDocument class

An arrangement of the source. An export now writes exactly this arrangement.

The document is non-destructive. Nothing here decodes, copies or changes audio. The source stays untouched until an export reads it.

Constructors

WaveformDocument(List<WaveformRegion> regions)
const
WaveformDocument.of(WaveformPeaks peaks)
The whole source, unedited.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
no setter
lengthInSamples int
Length of the result, in samples.
no setter
regions List<WaveformRegion>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applying(WaveformEdit edit) WaveformDocument
Applies edit and returns a new document. This document never changes.
durationIn(WaveformTimeline timeline) Duration
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previewPeaks(WaveformPeaks source) WaveformPeaks
Peaks for the edited result, derived from source with no decode.
sourceOf(int outputSample) int?
Where outputSample came from. Null past the end.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited