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
[EDIT mcallegari] WRONG
Code: Select all
export PATH=$PATH:/users/admin/Qt/5.5/clang_64/bin
cd qlcplus
qmake -spec macx-g++
make
7. install
8. make dmg