From: Robin Gareus Date: Sat, 26 Mar 2016 00:06:33 +0000 (+0100) Subject: add lua script to test channel-mapping, update doc X-Git-Tag: 5.0-pre0~1209 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=3f71e669aed2ad6f9d42b02cab886013b418b50e;p=ardour.git add lua script to test channel-mapping, update doc --- diff --git a/doc/ardourapi.json.gz b/doc/ardourapi.json.gz index abdfc8667d..4cc1cd3782 100644 Binary files a/doc/ardourapi.json.gz and b/doc/ardourapi.json.gz differ diff --git a/doc/luadoc.json.gz b/doc/luadoc.json.gz index f2ded47e0e..9d69fa89a8 100644 Binary files a/doc/luadoc.json.gz and b/doc/luadoc.json.gz differ diff --git a/gtk2_ardour/arluadoc b/gtk2_ardour/arluadoc index 6509e8b1ef..21909585e4 100755 --- a/gtk2_ardour/arluadoc +++ b/gtk2_ardour/arluadoc @@ -11,4 +11,5 @@ $TOP/build/gtk2_ardour/luadoc "$@" \ | sed 's/, std::allocator<[^>]*<[^>]*>[ ]*>//g;' \ | sed 's/, std::allocator<[^>]*>//g;' \ | sed 's/ "/"/g;' \ - | gzip -9 + | gzip -9 \ + > $TOP/doc/luadoc.json.gz diff --git a/scripts/s_chanmap.lua b/scripts/s_chanmap.lua new file mode 100644 index 0000000000..82e9bb0039 --- /dev/null +++ b/scripts/s_chanmap.lua @@ -0,0 +1,22 @@ +ardour { ["type"] = "Snippet", name = "plugin channel mapping" } + +function factory () return function () + -- first track needs to be stereo and has a stereo plugin + -- (x42-eq with spectrum display, per channel processing, + -- and pre/post visualization is handy here) + + r = Session:route_by_remote_id(1) + 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 diff --git a/tools/doxy2json/ardourdoc.sh b/tools/doxy2json/ardourdoc.sh index 616e70343f..b1bacd530a 100755 --- a/tools/doxy2json/ardourdoc.sh +++ b/tools/doxy2json/ardourdoc.sh @@ -1,4 +1,5 @@ #!/bin/bash +cd `dirname $0` set -e make cd ../..