create Document object
I have been reading the documentation and trying out several options to add an AudioClip to a Track in Multitrack project in Audition.
According to the documentation:
I have 2 tracks, track1 with an AudioClip in it and track2 that has no clips.
I can't see how to create a Document to pass into the add function. When doing this:
let path = "/Users/name/Desktop/sound.wav"
let openParameter = new DocumentOpenParameter(path);
app.activeDocument.audioTracks.audioClipTracks[1].audioClips.add(openParameter, 0);
The code runs without complaining, but nothing happens.
I am able to get the "move" part mentioned in the documentation to work by doing this:
let clip = app.activeDocument.audioTracks.audioClipTracks[0].audioClips[0];
app.activeDocument.audioTracks.audioClipTracks[1].audioClips.add(clip);
Any idea how to call .add as explained by this "Add new clip to the track based on the passed in document" in the documentation?
