add lua script to test channel-mapping, update doc
authorRobin Gareus <robin@gareus.org>
Sat, 26 Mar 2016 00:06:33 +0000 (01:06 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 26 Mar 2016 00:06:33 +0000 (01:06 +0100)
doc/ardourapi.json.gz
doc/luadoc.json.gz
gtk2_ardour/arluadoc
scripts/s_chanmap.lua [new file with mode: 0644]
tools/doxy2json/ardourdoc.sh

index abdfc8667d34023a917c59aa2639ae7bf7d0496d..4cc1cd3782765c9382c02da36c811bd677bb2beb 100644 (file)
Binary files a/doc/ardourapi.json.gz and b/doc/ardourapi.json.gz differ
index f2ded47e0eab6f64e040d7f19c50a5ed8729a859..9d69fa89a8aece26b65961507d22ba45e27e691f 100644 (file)
Binary files a/doc/luadoc.json.gz and b/doc/luadoc.json.gz differ
index 6509e8b1efcd1b588c26eedce14e5c47b9148238..21909585e4f863c15b242f0526a806dc5d1687a0 100755 (executable)
@@ -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 (file)
index 0000000..82e9bb0
--- /dev/null
@@ -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
index 616e70343fe9688942db26dff55715b31cc8594f..b1bacd530a00be59c6fbf37a1c2c5350a1bbfab7 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
+cd `dirname $0`
 set -e
 make
 cd ../..