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,
|
2024-10-16 00:35:04 -04:00
|
|
|
ARDOUR.MidiTrackNameSource.SMFFileAndTrackName, 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
|