13
0
livetrax/share/scripts/s_import_files.lua

15 lines
479 B
Lua
Raw Permalink 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 = Temporal.timepos_t(0)
2017-01-21 14:18:04 -05:00
Editor:do_import (files,
Editing.ImportDistinctFiles, Editing.ImportAsTrack, ARDOUR.SrcQuality.SrcBest,
ARDOUR.MidiTrackNameSource.SMFFileAndTrackName, ARDOUR.MidiTempoMapDisposition.SMFTempoIgnore,
pos, ARDOUR.PluginInfo(), ARDOUR.Track(), false)
2017-01-21 14:18:04 -05:00
end end