13
0
livetrax/share/scripts/s_import_files.lua

15 lines
479 B
Lua

ardour { ["type"] = "Snippet", name = "Import File(s) Example" }
function factory (params) return function ()
local files = C.StringVector();
files:push_back("/tmp/test.wav")
local pos = Temporal.timepos_t(0)
Editor:do_import (files,
Editing.ImportDistinctFiles, Editing.ImportAsTrack, ARDOUR.SrcQuality.SrcBest,
ARDOUR.MidiTrackNameSource.SMFFileAndTrackName, ARDOUR.MidiTempoMapDisposition.SMFTempoIgnore,
pos, ARDOUR.PluginInfo(), ARDOUR.Track(), false)
end end