Possible? Button press sends +1 CC message on every push | Intech Studio
💬 general Grid

Possible? Button press sends +1 CC message on every push

BryanR
BryanR · · 11 replies

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)

Replies (11)

kkerti kkerti ·

This looks very cryptic. Could you do a screenshot on the config, and use ``` (tripple backtick) wrapping for the code for readibility? I think it's doable, but would rather take your already existing config a twist instead of entering here a very different solution.

BryanR BryanR ·

This was a solution ChatGPT coughed up. Sooo, I don’t think it’s worth anything. Just a conversation starter 😅

kkerti kkerti ·

We should train our own intech ai soon..

kkerti kkerti ·

One button should send 1 every time it is pressed and the other one -1? Does analogrytm need NRPN formatted messages?

BryanR BryanR ·

Was thinking of utilizing CC27

image0.jpg
BryanR BryanR ·

@user wanna tackle this puzzle? 😅

Greg-Orca Greg-Orca ·

how many slots have? 127?

BryanR BryanR ·

Correct. 127 sample slots.

Greg-Orca Greg-Orca ·

on system setup create a global variable

Screenshot_2025-05-05_at_13.02.23.png
Greg-Orca Greg-Orca ·

decrease

Screenshot_2025-05-05_at_13.02.49.png
Greg-Orca Greg-Orca ·

increase

Screenshot_2025-05-05_at_13.03.05.png
Discord

View on Discord

This post is from the Intech Studio Discord community.

Open thread →