08-10-2020, 11:09 AM
Hi, my goal is to automate importing and exporting in a session to be able to perform batch import/export on the same template (tracks, busses, DSP, etc.).
Importing works quite well with do_import:
My main struggle is exporting in code.
There is Editor:export_audio(), but that just opens the export dialog.
My question: Is there any function to actually perform the export in scripts?
Or has anyone another approach to achieve that automated import/export idea?
Thanks for all replies! Oyst
Importing works quite well with do_import:
Code:
local files = C.StringVector()
files:push_back("some.wav/mid")
local pos = -1
Editor:do_import (files,
Editing.ImportDistinctFiles, Editing.ImportToTrack, ARDOUR.SrcQuality.SrcBest,
ARDOUR.MidiTrackNameSource.SMFTrackName, ARDOUR.MidiTempoMapDisposition.SMFTempoIgnore,
pos, ARDOUR.PluginInfo())
My main struggle is exporting in code.
There is Editor:export_audio(), but that just opens the export dialog.
My question: Is there any function to actually perform the export in scripts?
Or has anyone another approach to achieve that automated import/export idea?
Thanks for all replies! Oyst