Page 1 of 1

Why are my LEDs upside down?

Posted: 26 Jul 2014 23:40
by j5k
I'm working on a mapping for traktor's remix decks. One of the outputs from traktor is the pre-fader volume of a remix deck slot. As best as I can tell, it ranges from 0 (no volume) to 127 (full volume). But when I wire this up to an led object with 1 column and 16 rows, the meter goes from the top down, while I want it to go from the bottom up.

I've tried inverting the value coming out of traktor but that didn't seem to work. I also swapped the on/off colors for the led but that presents a new problem. The meter looks correct as long as there is audio playing, but when I stop the audio, the meter "fills up" instead of emptying.

Anyone have any ideas as to how to solve this?

Re: Why are my LEDs upside down?

Posted: 27 Jul 2014 14:00
by j5k
Solved via script. Easy enough I guess but here's another vote for rotating objects. The trick was to invert the colors as well as invert the midi signal. Basically (I'm not in front of the computer ATM)

setattribute(getobject(),'value', 1- MIDI_ARGS[1]/127);