Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to set LED level on some other buttons #2

Open
riban-bw opened this issue Oct 9, 2021 · 13 comments
Open

Possible to set LED level on some other buttons #2

riban-bw opened this issue Oct 9, 2021 · 13 comments

Comments

@riban-bw
Copy link

riban-bw commented Oct 9, 2021

There are 4 buttons that can have their white LED turned on at various levels:

  • Launch (CC 104)
  • Stop / Solo / Mute (CC 105)
  • Play (CC 115)
  • Record (CC 117)

Each may be illuminated by sending CC with value parameter defining brightness:

  • 0-31 0% (off)
  • 32-47 25%
  • 48-63 50%
  • 64-95 75%
  • 96-127 100% (full on)
@giezu
Copy link
Owner

giezu commented Oct 9, 2021

Yes! I remember that Stop/Solo/Mute can be colored to yellow/blue/red but I forgot to investigate that further!
I will check that tomorrow, should I add that info and credit you like before or you will make PR?

@riban-bw
Copy link
Author

riban-bw commented Oct 9, 2021

You can just add it. I can't be bothered to fork, edit, PR. I have loads of forks I need to tidy up for simple PRs like this. (There must be a better way!!!)

I haven't figured out how to change colours of the buttons. I notice the 25% illumination looks purple but that might just be how they encode the brightness.

Thanks for investigating and maintaining this repo. It is proving very useful in my integration work hence feedback to you of anything else I find so that other's may also benefit.

@riban-bw
Copy link
Author

riban-bw commented Oct 9, 2021

Colour of launch and stop/solo/mute buttons can be set by sending CC to channel 1. Doesn't seem to work for play or record button.

Setting colour and brightness are mutually exclusive, i.e. setting brightness will change to white and setting colour will change to the corresponding colour / brightness from the colour table.

@giezu
Copy link
Owner

giezu commented Oct 9, 2021

Alright I will update it tomorrow. I will try to find other colors too, just remembered that Ableton changes Stop/Solo/Mute colors, maybe other can be changed too.

I couldn't find info about it online so I decided to do small research and write tutorial for others

@giezu
Copy link
Owner

giezu commented Oct 9, 2021

Colour of launch and stop/solo/mute buttons can be set by sending CC to channel 1. Doesn't seem to work for play or record button.

Setting colour and brightness are mutually exclusive, i.e. setting brightness will change to white and setting colour will change to the corresponding colour / brightness from the colour table.

Alright, are there more colors than yellow, blue and red?

@riban-bw
Copy link
Author

riban-bw commented Oct 9, 2021

All the colours in the colour chart seem to be valid, e.g. sending value 95 will light the button hot pink.

@giezu
Copy link
Owner

giezu commented Oct 9, 2021

Great!

@riban-bw
Copy link
Author

riban-bw commented Oct 9, 2021

Sending colour on channel 2 flashes and on channel 3 pulses, similar to sending note on commands to the 16 pads.

@riban-bw
Copy link
Author

riban-bw commented Oct 9, 2021

Sending brightness to the play and record buttons on channels 0, 1, 2 trigger solid, flashing, pulsing behaviour.
[Edit] There is something odd about the values though. Sending value 1 seems to pulse brighter than sending value 127.

@riban-bw
Copy link
Author

riban-bw commented Oct 9, 2021

Although this is maybe could be regarded a different ticket, whilst in the README it may be worth mentioning that the shift key state is represented by CC 108. When pressed it sends value 127 and when released, value 0. If double pressed it will send value 127 until pressed again when it sends value 0. This allows you to use the shift status including the shift lock - rather useful. I am using it to bank the 8 knobs between two different offsets.

@giezu
Copy link
Owner

giezu commented Oct 10, 2021

Just updated README and added example for changing brightness.
Please check if there are any mistakes.
Thank you for your help as always!

@riban-bw
Copy link
Author

You only show 2 examples for colouring buttons which might confuse as there are 3 modes: solid, pulsing & flashing.

You haven't mentioned being able to set these 3 modes for play / record buttons.

@giezu
Copy link
Owner

giezu commented Oct 10, 2021

Added more examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants