DuAEF.Audition

Audition interchange tools

Methods

static createClip(clipName, sourceId, id, layeropt, samplingopt, sourceInPointopt, sourceOutPointopt, startPointopt, endPointopt) → {XML}

Creates an XML clip for an Audition session
Parameters:
Name Type Attributes Default Description
clipName string The clip name
sourceId int The corresponding source file id
id int A unique id for this clip
layer AVLayer <optional>
An After Effects layer to get infos
sampling int <optional>
48000 The audio sampling, in Hz.
sourceInPoint float <optional>
The audio source in point
sourceOutPoint float <optional>
The audio source out point
startPoint float <optional>
The clip start point in the track
endPoint float <optional>
The clip end point in the track
Returns:
XML - The clip

static createMasterTrack(name, id, index, channelTypeopt) → {XML}

Creates an XML master track for an Audition session
Parameters:
Name Type Attributes Default Description
name string The track name
id int A unique id for this track
index int The index of the track
channelType string <optional>
'stereo' The audio chanel type, one of 'mono', 'stereo' or 'fivePointOne'. Default: 'stereo'
Returns:
XML - The track

static createSourceFile(file, id) → {XML}

Creates an XML source file for an Audition session
Parameters:
Name Type Description
file File The audio file
id int A unique id for this file
Returns:
XML - The file

static createTrack(name, id, index, channelTypeopt) → {XML}

Creates an XML track for an Audition session
Parameters:
Name Type Attributes Default Description
name string The track name
id int A unique id for this track
index int The index of the track
channelType string <optional>
'stereo' The audio chanel type, one of 'mono', 'stereo' or 'fivePointOne'. Default: 'stereo'
Returns:
XML - The track

static dBToKeyFrame(dB) → {float}

Converts an audio level in dB to a keyframe value used in .sesx files
Parameters:
Name Type Description
dB float the level in dB
Returns:
float - The volume

static dBToVolume(dB) → {float}

Converts an audio level in dB to a volume used in .sesx files
Parameters:
Name Type Description
dB float the level in dB
Returns:
float - The volume

static exportComp(sesxFile, comp, audioActiveOnlyopt, samplingopt, bitsopt, channelTypeopt, executeopt, transcodeopt)

Imports a .storyboard file with all boards
Parameters:
Name Type Attributes Default Description
sesxFile File The Audition session XML File to save
comp CompItem The composition to export
audioActiveOnly bool <optional>
false Wether to export only layers with the audio enabled, or all layers with audio.
sampling int <optional>
48000 The audio sampling, in Hz.
bits int <optional>
32 The audio definition, in bits. One of: 16, 24 or 32.
channelType string <optional>
'stereo' The audio chanel type, one of 'mono', 'stereo' or 'fivePointOne'.
execute bool <optional>
false Wether to open the exported session in Audition once export is done.
transcode bool <optional>
true Wether to extract and transcore audio from video files.