13
0

add lua script to test channel-mapping, update doc

This commit is contained in:
Robin Gareus 2016-03-26 01:06:33 +01:00
parent 1503db4a28
commit 3f71e669ae
5 changed files with 25 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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

22
scripts/s_chanmap.lua Normal file
View File

@ -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

View File

@ -1,4 +1,5 @@
#!/bin/bash
cd `dirname $0`
set -e
make
cd ../..