13
0
livetrax/scripts/s_import_files.lua

15 lines
430 B
Lua
Raw Normal View History

2017-01-21 14:18:04 -05:00
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 = -1
Editor:do_import (files,
Editing.ImportDistinctFiles, Editing.ImportAsTrack, ARDOUR.SrcQuality.SrcBest,
ARDOUR.MidiTrackNameSource.SMFTrackName, ARDOUR.MidiTempoMapDisposition.SMFTempoIgnore,
pos, ARDOUR.PluginInfo())
end end