Learn function? | Intech Studio
💬 general Grid

Learn function?

BryanR
BryanR · · 8 replies

I probably already know the answer to this, but figured I’d ask anyway; without a computer, would it be possible to setup on-the-fly solo and/or mute groups? Eg on the right grid, select and hold one of the 4 blue buttons, then select the channels you’d like in that mute group. Also, press-and-hold a channels mute (bottom row) and have the other channels mute until toggled off.

Long-shot, I know, but you guys are fancy 😁

Replies (8)

narayb narayb ·

It's possible, but you can't save it into the configuration. Meaning you would have to learn the CCs every time you boot Grid.

BryanR BryanR ·

Would you happen to have an example config on the cloud that one might be able to dissect, learn and use…?

narayb narayb ·

Not really, but I could just make one tomorrow.

narayb narayb ·

I made some very basic mute groups, but it would take me a bunch of time to make this into a real config.

narayb narayb ·

The gist of it is to create an array that stores mute group information which then you can fill and read with button presses.

narayb narayb ·

It's made of 3 parts (using a tek2 so only buttons 0-7 are used here):

group = {} --creates the array
for i = 1, 8 do
    group[i] = {}
    for j = 1, 8 do
        group[i][j] = 0
    end
end

add_to_group = function(num, cc) --adds the pressed button to the mute group
    for i = 0, 7 do
        if element[i]:button_value() > 0 and i ~= num then
            print(i .. " " .. num)
            group[i + 1][num + 1] = cc
            print(group[i + 1][num + 1])
        end
    end
end

The above are on system init and I call the functions like so on each button:

if self:button_state() > 0 then
    midi_send(ch, 176, note, val) --sending out its own mute
    add_to_group(num, note)
    for i = 1, 8 do --sending out the mutes of te mute group
        if group[num + 1][i] > 0 then
            midi_send(ch, 176, group[num + 1][i], val)
        end
    end
else
end
narayb narayb ·

Of course this implementation has a billion problems, it doesn't differentiate between multiple buttons being pressed and trying to add to a mute group.

narayb narayb ·

It could be made into a config, but it would need an idea for implementation.

Discord

View on Discord

This post is from the Intech Studio Discord community.

Open thread →