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")
|
|
|
|
|
2022-09-30 15:28:01 -04:00
|
|
|
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.SMFTrackName, ARDOUR.MidiTempoMapDisposition.SMFTempoIgnore,
|
2022-09-30 15:28:01 -04:00
|
|
|
pos, ARDOUR.PluginInfo(), ARDOUR.Track(), false)
|
2017-01-21 14:18:04 -05:00
|
|
|
|
|
|
|
end end
|