Button LED behaviour..lua code? | Intech Studio
💬 general GridGeneral

Button LED behaviour..lua code?

Crazeebo
Crazeebo · · 7 replies

Puuuh...i just finished a dedicated 'sound design' track setup with 16 intech rotaries EN1 6 and a classic mixing desk PBF4 in Bitwig 5.3-happy this all works out like i planned=)
I'm using the latest DrivenByMoss flexi generic controller to have this dream setup come alive on every session.

I stumbled upon your Button Momentary LED lua code on here. This now works fine how i like it. Mute, Solo and Input go brigther as i press them.
For the Mute i'd wanted to incorporate an animation on when it's muted. How can this be done? Is there a way.....because i'm getting a code line of 320 chars is exceeded in the grid editor when i try to do it with actions=(

Sorry, complete n00b when it comes to lua 😦

...now know why i never wanted a norns=)

BigUpYourChest Jürgen Mossgraber! Generic Flexi ist so richtig 👍

Replies (7)

Crazeebo Crazeebo ·

Like this❤️

Greg-Orca Greg-Orca ·

Hi, Great job setting up that sound design rig, looks nice!

For adding an animation to the Mute button when it's muted, maybe this documentation on MIDI RX could help you implement it. I think Flexi might be sending back on the same MIDI messages where you assigned it. https://docs.intech.studio/wiki/more/midi-rx/#set-value-and-led-intensity-on-buttons

A quick test: If you toggle the Mute button in Bitwig by clicking it manually, do you receive any MIDI message on the grid? You can check this in the Editor MIDI Monitor (bottom left corner).

Crazeebo Crazeebo ·

Hmmm....i gave up here. there is no way i understand what i'm doing with these code lines. I managed to copy paste a code where my buttons go brighter when pressed. I thought it would be an easy quest to incorporate an animation on top of that code. Experimenting with codes is not possible because i hit that 400Character limit already. Its not even possible to merge codes with this limit...

Crazeebo Crazeebo ·

I managed to have colors on buttons that respond to my Bitwig button colors. I'm asking the button to be either brighter upon press or have an animation...and this should be stopped when pressed again. BUT the two are not possible??

mvdirty mvdirty ·

Just a suggestion: do you have any custom lua function declarations in the button element which you could move into the system element setup? If not, are there any parts of your button action code which could be extracted into new functions and moved into system setup?

mvdirty mvdirty ·

(There are other places things can be moved to as well, but they’re a more involved change so it’s best to start with just the above if you can.)

Crazeebo Crazeebo ·

I‘ll give this a shot. I was under the impresssion that i need to do this on the dedicated button. Thanks

Discord

View on Discord

This post is from the Intech Studio Discord community.

Open thread →