Ingreso rápido:  

Forum: Old versions

Tema: Mapping question for the Akai APC20

Este tópico es antiguo y puede contener información incorrecta para la nueva versión.

I'm very slow at mapping Midi Controllers... But what I want to ask is how could the below 4 lines be combined into one??
Cheers...

<map value="BUTTON 2-4" action="sampler_pad 26" />
<map value="SLIDER 2" action="sampler_volume 26" />
<map value="LED BUTTON 2-4 G" action="sampler_pad 26 ? blink : on" />
<map value="LED BUTTON 2-4 R" action="blink" />

Ps... I know even the above code is not correct, because when I first turn on the controller I have a solid RED button, when I press it, I get a RED blinking button and not Green. (I'm still working that part out)
 

Mensajes Sun 21 Jun 15 @ 2:35 am
What do you mean "combined into one" ?
These 4 lines are for 4 different "elements". Even if you as a human being understand only one (e.g. 1 pad button) programmatically it's still 4 (if not more)
So basically you can't just combine them.
As for the leds, you need to determine exactly when you want each color to turn on and then use the same code on both leds and assign "on/off/blink" accordingly:

"sampler_pad 26 ? blink : off"
"sampler_pad 26 ? off : on"
 

Mensajes Mon 22 Jun 15 @ 1:09 am
Thanks for the reply.

The more I looked into it, I understood I cant combine all the lines together.

My goal was to have "If a sample is present, then light up the button RED, when pressed activate sample and blink the button green while using the correspondent volume control beneath" all on one line.

 

Mensajes Mon 22 Jun 15 @ 1:29 am


(Los tópicos y foros antiguos son automáticamente cerrados)