Piano-LED-Visualizer icon indicating copy to clipboard operation
Piano-LED-Visualizer copied to clipboard

How to set color on a key by key basis with Sequences

Open mrdjnash opened this issue 4 years ago • 4 comments

I'm trying to set the color for each key on a key by key basis (I'm using code to generate the xml content). How do I structure the sequence setting to tell the system which key is which colour?

Thanks in advance.

mrdjnash avatar Feb 21 '21 14:02 mrdjnash

Mrdjnash, did you ever figure out how to do this? I also would like to change the color for each key on a key by key basis and do not know how.

EX8F22 avatar Aug 10 '21 19:08 EX8F22

Hi there,

Yes I did I think. You do it as a multicolor type and set the RGB color for each key as a separate range. I've attached an XML file with each key from 21 to 108, and you just put in the RGB color you want. It was a while ago that I did it, but let me know if you have any issues and I'll do what I can to help.

Cheers,

Derek

On Tue, 10 Aug 2021 at 20:21, EX8F22 @.***> wrote:

Mrdjnash, did you ever figure out how to do this? I also would like to change the color for each key on a key by key basis and do not know how.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/onlaj/Piano-LED-Visualizer/issues/195#issuecomment-896253486, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTQ7W2JAXVJMWCM3WMZVG3T4F34BANCNFSM4X7AKJGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

mrdjnash avatar Aug 13 '21 11:08 mrdjnash

Just realised that the file I attached to my email didn't come through. Hopefully the XML below will illustrate what I mean:

<sequence_1> <control_number>0</control_number> <next_step>1</next_step> <sequence_name>Setting Name</sequence_name> <step_1> Multicolor <color_1>0, 0 , 255</color_1> <color_range_1>21, 21</color_range_1> <color_2>0, 0 , 255</color_2> <color_range_2>22, 22</color_range_2> ...

</step_1> </sequence_1>

On Tue, 10 Aug 2021 at 20:21, EX8F22 @.***> wrote:

Mrdjnash, did you ever figure out how to do this? I also would like to change the color for each key on a key by key basis and do not know how.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/onlaj/Piano-LED-Visualizer/issues/195#issuecomment-896253486, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTQ7W2JAXVJMWCM3WMZVG3T4F34BANCNFSM4X7AKJGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

mrdjnash avatar Aug 13 '21 11:08 mrdjnash

Thank you, Derek! Is this XML something that I can copy & paste into the software somehow? I have a very limited understanding of this...

On Fri, Aug 13, 2021 at 7:03 AM mrdjnash @.***> wrote:

Just realised that the file I attached to my email didn't come through. Hopefully the XML below will illustrate what I mean:

<sequence_1> <control_number>0</control_number> <next_step>1</next_step> <sequence_name>Setting Name</sequence_name> <step_1> Multicolor <color_1>0, 0 , 255</color_1> <color_range_1>21, 21</color_range_1> <color_2>0, 0 , 255</color_2> <color_range_2>22, 22</color_range_2> ...

</step_1> </sequence_1>

On Tue, 10 Aug 2021 at 20:21, EX8F22 @.***> wrote:

Mrdjnash, did you ever figure out how to do this? I also would like to change the color for each key on a key by key basis and do not know how.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/onlaj/Piano-LED-Visualizer/issues/195#issuecomment-896253486 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AFTQ7W2JAXVJMWCM3WMZVG3T4F34BANCNFSM4X7AKJGA

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/onlaj/Piano-LED-Visualizer/issues/195#issuecomment-898377237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT4YIG4FF6E724ST4VJ2YRLT4T3ZRANCNFSM4X7AKJGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

EX8F22 avatar Aug 13 '21 14:08 EX8F22