Application is an AnalogRytm. I’d like to use two buttons for sample slot (CC 27). One button to +1, another for -1. Doable?
Something like?
local num = self:ind():
local val = (-1 * (self:pva() + 1)) % (self:pma() + 1)
local ch = (gmy () * 4 + gpe()) % 16
local cc = (32 + gmx () * 16 + self:ind()) % 128
local pst = self:pst()
iT pst < 64 then
gms (12, 176, 23, 256 - val) gms (12, 176, 74, 1) elseit pst > 64 then
gms (12, 176, 23, 127 - val) gms (12, 176, 74, 4)
else
Optional: Handle exactly 64
- gms (12, 176, 23, val)
— gms (12, 176, 74, 2)
end
glp(num, 1, val)



