summaryrefslogtreecommitdiff
path: root/scripts/s_chanmap.lua
blob: 82e9bb003910351d243865194de617f97648d341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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