diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-23 20:48:02 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-23 20:48:02 +0100 |
commit | 180843f9bd28b191c7404245ba0a121107992511 (patch) | |
tree | c60312dc09f76c2f55ba2383245c427e15c38dea /scripts/s_chanmap.lua | |
parent | bf649cd68ad46c34a656700aa6cb89416d648c64 (diff) |
Also move Lua scripts to share subfolder
Diffstat (limited to 'scripts/s_chanmap.lua')
-rw-r--r-- | scripts/s_chanmap.lua | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/scripts/s_chanmap.lua b/scripts/s_chanmap.lua deleted file mode 100644 index 7bc070c8cc..0000000000 --- a/scripts/s_chanmap.lua +++ /dev/null @@ -1,34 +0,0 @@ -ardour { ["type"] = "Snippet", name = "plugin channel-map dev" } - -function factory () return function () - -- first track needs to be stereo and have a stereo plugin - -- (x42-eq with spectrum display, per channel processing, - -- and pre/post visualization is very handy here) - - function checksetup (r) - -- fail if Route ID 1 is not present or not stereo - assert (r and not r:isnil()) - assert (r:n_inputs():n_audio() == 2) - -- check first Plugin and make sure it is a "Plugin Insert" - if not r:nth_plugin(0):isnil() and not r:nth_plugin(0):to_insert():isnil() then return end - -- insert x42-eq at the top. - local proc = ARDOUR.LuaAPI.new_plugin(Session, "http://gareus.org/oss/lv2/fil4#stereo", ARDOUR.PluginType.LV2, ""); - r:add_processor_by_index(proc, 0, nil, true) - end - - r = Session:get_remote_nth_route(1) - checksetup (r) - pi = r:nth_plugin(0):to_insert() - - pi:set_no_inplace (true) - - cm = ARDOUR.ChanMapping() - --cm:set(ARDOUR.DataType("Audio"), 0, 0) - cm:set(ARDOUR.DataType("Audio"), 1, 0) - pi:set_input_map (0, cm) - - cm = ARDOUR.ChanMapping() - --cm:set(ARDOUR.DataType("Audio"), 0, 0) - cm:set(ARDOUR.DataType("Audio"), 1, 0) - pi:set_output_map (0, cm) -end end |