Fix signal-emission order (first re/set instrument info)
[ardour.git] / scripts / s_group_color.lua
1 ardour { ["type"] = "Snippet", name = "Randomize Group Colors" }
2
3 function factory () return function ()
4         for grb in Session:route_groups ():iter () do
5                 local r = math.random (0, 255)
6                 local g = math.random (0, 255)
7                 local b = math.random (0, 255)
8                 local rgba = bit32.lshift (r, 24) + bit32.lshift (g, 16) + bit32.lshift (b, 8) + 0xff
9                 grp:set_rgba(rgba)
10         end
11 end end