AudioTrack
interface AudioTrack extends Track {
uuid: string
owner: AnyAudioUnit | AnyModulator
audioUnit: Nullable<AnyAudioUnit>
enabled: boolean
excludePianoMode: boolean
index: number
type: 'audio'
regions: readonly AudioRegion[]
clips: readonly AudioClip[]
remove(): void
addRegion(sample: Sample, props?: AudioRegionProps): AudioRegion
addClip(sample: Sample, props?: AudioClipProps): AudioClip
}Track holding audio regions and clips (Tape units)
Hierarchy
Properties
uuid: string
Inherited from uuid
Unique id
owner: AnyAudioUnit | AnyModulator
Inherited from owner
The audio unit or modulator this track belongs to
audioUnit: Nullable<AnyAudioUnit>
Inherited from audioUnit
The audio unit this track belongs to (null for modulator automation lanes)
enabled: boolean
Inherited from enabled
Enable or disable the track
excludePianoMode: boolean
Inherited from excludePianoMode
Keep the track out of piano mode
index: number
Inherited from index
Position within the owner
type: 'audio'
Overrides type
Always "audio"
regions: readonly AudioRegion[]
All regions sorted by position
- See:
clips: readonly AudioClip[]
All clips sorted by slot index
- See:
Methods
remove(): void
Inherited from remove
Remove this track including its regions and clips
Returns
void
addRegion(sample: Sample, props?: AudioRegionProps): AudioRegion
Add an audio region. Default playback is "pitch" when the sample has a tempo, otherwise "no-sync". Default duration is the sample length. Throws if it overlaps an existing region
Parameters
sample(Sample)props(AudioRegionProps, optional)
Returns
Example
const tape = project.addInstrumentUnit("Tape", {label: "Loop"})
tape.audioTracks[0].addRegion(sample, {position: PPQN.Bar, playback: "timestretch"})- See:
addClip(sample: Sample, props?: AudioClipProps): AudioClip
Add an audio clip (default: next free slot)
Parameters
sample(Sample)props(AudioClipProps, optional)
Returns
- See: