AKAI APC mini - Button-LED

matthe_tp

AKAI APC mini - Button-LED

Post by matthe_tp » Thu Nov 20, 2014 9:15 pm

Hallo, I'm from germany, my english is not so good, sorry.
I have a problem with the Button-LED on AKAI APC MINI. The LEDs turn on but not off. Can anyboby help me?

Maikel Boerebach

AKAI APC mini - Button-LED

Post by Maikel Boerebach » Mon Dec 15, 2014 2:01 pm

I had the exact same issue. See this post for the solution:
http://sourceforge.net/p/qlcplus/discus ... /?limit=25

Maikel Boerebach

AKAI APC mini - Button-LED

Post by Maikel Boerebach » Wed Dec 17, 2014 11:14 am

Since i compile all the qlc versions for myself i could send my working version. However I have OLA disabled, so if you need this particular function, you will have to compile QLC from GIT on your own.

Alessandro Grechi

AKAI APC mini - Button-LED

Post by Alessandro Grechi » Wed Dec 17, 2014 10:15 pm

Hi Maikel,
I read on the other thread you managed to change led colors to APC buttons. Could you please share your work? I would be pleased to try it also on mine!

Thank you!

Maikel Boerebach

AKAI APC mini - Button-LED

Post by Maikel Boerebach » Sun Dec 28, 2014 2:51 pm

Hi Allesandro, sorry for the very late reply.. I forgot to check the thread for a while.
I used Janos' ideas and adapted them to my needs, since I wanted a bi-color-feedback: Red(Off) Green(On).
I managed to do this by editing the lines in the file "midiprotocol.cpp".
This is the part I have changed in lines 138 to 145:

else if (channel >= CHANNEL_OFFSET_NOTE && channel (channel - CHANNEL_OFFSET_NOTE);
*data2 = DMX2MIDI((value==0) ? 3 : value);
}
In the 6th line "3" represents the midi-value for the On state. When you play with these you can change the colors to green,red,amber(orange). And you can choose to let the LEDs flash. In the other thread i have posted a text-file which describes which values you need to get certain colors.
For your convenience i have also attached the midi protocol.cpp file.
If you replace it in your git directory you will just need to recompile.
As i have mentioned, this also works for the launchpad, however the colors are a bit different.
Cheers,
Maikel
Attachments
midiprotocol.cpp
(5.44 KiB) Downloaded 157 times

msccd
Posts: 7
Joined: Sat Jul 25, 2015 10:44 pm
Real Name:

Re: AKAI APC mini - Button-LED

Post by msccd » Sun Dec 28, 2014 2:51 pm

Maikel Boerebach wrote: This is the part I have changed in lines 138 to 145:

else if (channel >= CHANNEL_OFFSET_NOTE && channel (channel - CHANNEL_OFFSET_NOTE);
*data2 = DMX2MIDI((value==0) ? 3 : value);
}
In the 6th line "3" represents the midi-value for the On state. When you play with these you can change the colors to green,red,amber(orange). And you can choose to let the LEDs flash. In the other thread i have posted a text-file which describes which values you need to get certain colors.
For your convenience i have also attached the midi protocol.cpp file.
Hi Maikel,

thank You very much for Your work. I used Your midiprotocol and it worked fine on the mac (to be honest it's a virtual machine I set up for compiling). Now I was up to create the dmg file to install it on my macbook, which will be the machine where I'll work with QLC+.
I followed the HowTo at https://github.com/mcallegari/qlcplus/w ... uild-HOWTO , but I got errors. Some framework-files have been missed. I got em out of the installed QLC+ Version (downloaded the original install-dmg), but there ist still one file missing:

Code: Select all

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: /Users/admin/QLC+.app/Contents/Frameworks/QtSerialPort.framework/Versions/5/QtSerialPort (No such file or directory)
make[1]: *** [install_LIBQTSERIALPORT_ID] Error 1
make: *** [sub-macx-install_subtargets-ordered] Error 2
Installation error. Aborting package creation.
Now I wonder where i can get the missing files from, because even in a "normal" installed QLC+.app is no QtSerialPort included. Could someone help me out please?


Just in case You need to know what I've done, here my HowTo:

1. set up new and clean OS X Yosemite VMware just for the compiling

2. installed latest versions of apple Xcode via appstore, command line tools, QT and MacPorts

3. Port-Update

Code: Select all

sudo port selfupdate
sudo port install libftdi0 pkgconfig libmad libsndfile portaudio liblo fftw-3 ola
4. Download latest QLC+ sources

Code: Select all

git clone git://github.com/mcallegari/qlcplus.git
5. replaced the midiprotocol.cpp with Maikel Boerebach's version

6. building

Code: Select all

export PATH=$PATH:/users/admin/Qt/5.5/clang_64/bin
cd qlcplus
qmake -spec macx-g++
make
7. install

Code: Select all

make install
8. make dmg

Code: Select all

./create-dmg.sh

Alessandro Grechi

AKAI APC mini - Button-LED

Post by Alessandro Grechi » Sun Dec 28, 2014 6:36 pm

Thank you Maikel, I'll try it asap with my APC40 and APC20, they should both work in similar way, I hope.

In my opinion the best result would be to have the button colored in red only if there is a function attached to it, and leave it off otherwise... (this is the behaviour I saw in other software)

Ronnie Roselli

AKAI APC mini - Button-LED

Post by Ronnie Roselli » Mon Dec 29, 2014 6:37 pm

Thank you for your answer, but I can not figure out where to find the file "midiprotocol.cpp" in my computer (windows7 64 bit).
I downloaded your file already modified and thought I replace it with the present in my computer, but I realized that you can not do.
Can you explain exactly how and where I have to replace or edit this file "midiprotocol.cpp"?
Excuse me, but are not as experienced in programming ...

Jano Svitok

AKAI APC mini - Button-LED

Post by Jano Svitok » Mon Dec 29, 2014 11:49 pm

Hi,

you need to follow https://github.com/mcallegari/qlcplus/w ... uild-HOWTO and when it tells you to download sources, do that, and replace file plugins/midi/common/midiprotocol.cpp with the one provided above. Then follow the guide again.

In other words, you need to create your very own installation file from the (modified) sources, which is a bit complicated process.

Ronnie Roselli

AKAI APC mini - Button-LED

Post by Ronnie Roselli » Tue Dec 30, 2014 12:33 am

Thank you but it's really too complicated to solve my problem!

Per Massimo Callegari:
è possibile risolvere il problema ormai noto e a quanto pare risolto con una patch o un aggiornamento? Mi sto pentendo di aver preso l'unico controller che non funziona come dovrebbe!

Post Reply