EN16, master encoder (to control the others) | Intech Studio
💬 general Grid

EN16, master encoder (to control the others)

diggi nur
diggi nur · · 6 replies

Hey there,
I use 12 of my EN16 encoders as Macros (modwheel) for the 12 tracks my Syntakt (push behaves as value reset to 0).
Is there a way to use one of the other encoders as a "master encoder"? I would like this one to control all 12 other encoders at the same time and give me the possibility the perform a "reset all" on the push mode.

Replies (6)

kkerti kkerti ·
for i = 1, 16, 1 do
    if self:element_index() ~= i then
        element[i]:encoder_value(self:encoder_value())
        midi_send(0, 176, i, self:encoder_value())
    end
end
kkerti kkerti ·

What this code snippet will do is iterate over all the elements on the module and add set the encoder value of the encoders to the one where this code is running from and send out the midi as well.

kkerti kkerti ·

The CC part of midi_send is just going from cc 1-16, this could be more nuanced when exact CCs are needed

kkerti kkerti ·

With a bit of modification a quick reset can be done with this as well

kkerti kkerti ·

This question becomes more nuanced, if you want to keep the setting of your encoders AND just relative to those settings increment / decrement them based on a master encoder.

kkerti kkerti ·

If you can let me know your level of familiarity / experience on coding, I can guide you further.

Discord

View on Discord

This post is from the Intech Studio Discord community.

Open thread →