Mixing intensity by using Layer 2? | Intech Studio
💬 general Grid

Mixing intensity by using Layer 2?

Guillaume
Guillaume · · 15 replies

Like the color mixing (using layer 2),_ can we use the mixing on intensity_?

I want to be able to make all LEDs 30% of their current intensity (and keeping current colors)

Replies (15)

Guillaume Guillaume ·

This code does not produce the expected effect of dimming the led at index 0

Guillaume Guillaume ·

https://docs.intech.studio/wiki/actions/led/led-intensity mention mixing layers, but by speaking again about colors, so I'm not sure if this is really supported or a copy/paste in the doc'

Guillaume Guillaume ·
image.png
kkerti kkerti ·

I think only colors are mixed, the intensity is not

Guillaume Guillaume ·

Either the doc should get cleaned up to avoid the confusion.
Or (which I would prefer): it would become possible. Please, pretty please ?

Guillaume Guillaume ·

Hey @user Following up on this. Can we now mix layers to affect intensity?

Guillaume Guillaume ·

Also, I can't get the mix of color to work.

Here, with hard coded values, I'm expecting a cyan redish.
And I actually get only the first color.

Any idea what I'm missing?

image.png
Hybrid Hybrid ·

What do you have in the Setup tab? Also, what is the LED intensity you've set for each of the layers?

kkerti kkerti ·

In button, potentiometers and faders, there is only one layer available.

kkerti kkerti ·

Under encoder and endless are 2 layers.

Guillaume Guillaume ·

ok. good to know, thank you

kkerti kkerti ·

The layers are for element events, to mix a button press and encoder rotation

Guillaume Guillaume ·

I have one button that is labeled FREEZE.

I'm trying to turn off all LEDs when this FREEZE button is toggled to ON, and back to normal configuration when it is back to OFF

As there is no layers, I'm thinking I will prefix all my button with

if freeze_button_is_OFF -> set led of current button to off
else -> normal configuration

and in the FREEZE button ~> immediate_send to all other button

Guillaume Guillaume ·

do you see any other better way?

kkerti kkerti ·

Maybe I don't fully get what you are after, but when I wanted to have only one led active at a time I did this:

  • get the index of the led which will be active
  • in a for loop reset all led to 0 or something
  • after the for loop set the desired led to "on" intensity
Discord

View on Discord

This post is from the Intech Studio Discord community.

Open thread →