Static Multicolors in Pad object?

Discuss problems and solutions.
Post Reply
sersch
Newbie
Posts: 8
Joined: 10 Mar 2013 18:28

Static Multicolors in Pad object?

Post by sersch »

Hi,

I am new to Lemur. 44 years old, located in Germany, and bought the app to replace several mini USB fader and keyboard controllers for use with my Octatrack and a MIDI synthesizer, both of which are connected to an iConnect. I'd like to create a standard monophonic MIDI keyboard using the Pad object. In order to get a better overview of where I am on my virtual keyboard, I'd like to color individual pads to get somewhat akin to the familiar "ebony and ivory" key pattern. I thought using "multicolors" would help me here, but it looks like I am not using/understanding it correctly.

If I enable "Multicolor", the "Color Off" field disappears, and I am still unable to select an individual pad to color it. Please, can you help me understand what I am doing wrong in order to achieve my goal?

Thanks much in advance!
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Static Multicolors in Pad object?

Post by Macciza »

Hi
You need to set the 'colors' via scripting
Add a script under your Pads called init() or similar and set it to execute 'OnLoad'.

decl color_array= {RGB(1,0,0),RGB(0,1,0)};// could also be declared externally
setattribute(Pads,'colors',color_array);

Hope that helps
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
sersch
Newbie
Posts: 8
Joined: 10 Mar 2013 18:28

Re: Static Multicolors in Pad object?

Post by sersch »

Thanks much for your answer, and pardon that I was not able to respond earlier.

I have created a Pad consisting of 2 columns and 1 row (starting small…).
I have checked its "Multicolor" checkbox.
I have set up the script following your advice:

decl color_array={RGB(0,1,0),RGB(1,0,0)};
setattribute(Pads, 'color', color_array);

But this script changes the colors of both pads. I thought that the first RGB value in color_array defines the color of the first pad, and the second RGB value that of the second pad. Please, where is the mistake I am making?
sersch
Newbie
Posts: 8
Joined: 10 Mar 2013 18:28

Re: Static Multicolors in Pad object?

Post by sersch »

I guess I found my mistake: I used 'color' instead 'colors'. I promise to read better in the future!
Post Reply