Hi all,
Had some fun with Duplex tonight - wrote a controller map from scratch (it only has two buttons so far, but hey…it’s a start), and as I couldn’t find the pattern sequence triggering I needed I wrote a small Application to do the work.
It’s hacked together but seems to work, button 1 instantly triggers pattern sequence index 2 and button 2 instantly triggers pattern sequence index 3, which was my goal as a first step.
So, next goal - I want to map a lot more than 2 buttons to instant-trigger various patterns. I’ve created the buttons in build_app individually (see below) but when I come to create 16, 32 or more is there a smarter approach?
function LW_Triggers:_build_app()
local c = UIToggleButton(self.display)
c.group_name = self.mappings.boggle.group_name
c:set_pos(self.mappings.boggle.index)
c.on_change = function(obj)
if not self.active then
return false
end
-- instantly switch position:
renoise.song().transport:trigger_sequence(2)
end
self:_add_component(c)
self._boggle = c
local d = UIToggleButton(self.display)
d.group_name = self.mappings.zoggle.group_name
d:set_pos(self.mappings.zoggle.index)
d.on_change = function(obj)
if not self.active then
return false
end
-- instantly switch position:
renoise.song().transport:trigger_sequence(3)
end
self:_add_component(d)
self._zoggle = d
-- attach to song at first run
self:_attach_to_song()
return true
end