Skip to content

Instantly share code, notes, and snippets.

View magdesign's full-sized avatar
💭
slow to respond, since I am cycling...

magdesign magdesign

💭
slow to respond, since I am cycling...
View GitHub Profile
/* this is a countdown which takes its time from an input file
but it does not work yet....scratching my head... how the hell could
I make a valueinput when starting the compiled processing programm,
would love to launch with a flag containing the seconds like: sketch_contdown02 -300
*/
///load time from a file, decalred as data
int[] timer;
/* this reads out the number in a file (data.txt) and prints it */
static final String FILE_NAME = "/home/magdesign/Desktop/data.txt";
int[] data;
void setup() {
String[] txtFile = loadStrings(FILE_NAME);
data = new int[txtFile.length];
for (int i = 0; i != data.length; println())
mv -f olad/plugin_api/.deps/olad_plugin_api_UniverseTester-UniverseTest.Tpo olad/plugin_api/.deps/olad_plugin_api_UniverseTester-UniverseTest.Po
/bin/bash ./libtool --tag=CXX --mode=link g++ -I./include -I./include -Wall -Wformat -W -fvisibility-inlines-hidden -pthread -DTEST_SRC_DIR=\".\" -DTEST_BUILD_DIR=\".\" -Werror -Wno-error=deprecated-declarations -g -O2 -std=gnu++11 -pthread -o olad/plugin_api/UniverseTester olad/plugin_api/olad_plugin_api_UniverseTester-UniverseTest.o -lcppunit common/testing/libolatesting.la common/testing/libtestmain.la common/libolacommon.la -lprotobuf -pthread -lpthread olad/plugin_api/libolaserverplugininterface.la common/libolacommon.la -ldns_sd -ldl
libtool: link: g++ -I./include -I./include -Wall -Wformat -W -fvisibility-inlines-hidden -pthread -DTEST_SRC_DIR=\".\" -DTEST_BUILD_DIR=\".\" -Werror -Wno-error=deprecated-declarations -g -O2 -std=gnu++11 -pthread -o olad/plugin_api/.libs/UniverseTester olad/plugin_api/olad_plugin_api_UniverseTester-UniverseTest.o -
@magdesign
magdesign / make check error
Created November 5, 2020 17:36
make check error of ola https://github.com/shenghaoyang/ola mitigate-drift branch
In file included from ./plugins/artnet/ArtNetNode.h:37:0,
from plugins/artnet/ArtNetNodeTest.cpp:45:
./include/ola/rdm/QueueingRDMController.h:68:10: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<RDMCallback> m_callback;
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/cppunit/extensions/HelperMacros.h:16,
from plugins/artnet/ArtNetNodeTest.cpp:22:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
OLA Show
1 253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12
@magdesign
magdesign / Olad_Service
Last active November 2, 2020 23:02
sudo nano /etc/systemd/system/olad.service
[Unit]
Description=OLA Daemon
After=network.target
[Service]
User=olad
ExecStart=/usr/local/bin/olad
Restart=always
Since there is a massive DMX lag, here some approaches to fix it:
*****************************************************************
There is a discussion on this thread:
https://github.com/OpenLightingProject/ola/issues/1677
Latency testing see here:
https://github.com/lemariva/rPI-Tests
1.Use a realtime kernel and do some tests:
Links zum Workshop Facing History an der TU Dresden
Move.Act.Perform von Marc-André Gasser und Franticek Klossner
**************************************************************
https://facinghistory.ch
https://sehnerv.org
https://franticek.com
https://magdesign.ch
https://pocketvj.com
In file included from /opt/OF/libs/openFrameworks/events/ofEventUtils.h:4:0,
from /opt/OF/libs/openFrameworks/events/ofEvents.h:4,
from /opt/OF/libs/openFrameworks/utils/ofURLFileLoader.h:3,
from /opt/OF/libs/openFrameworks/ofMain.h:11,
from /opt/OF/apps/myApps/lpmt/src/timeline/ofxHotKeys.h:36,
from /opt/OF/apps/myApps/lpmt/src/timeline/ofxHotKeys_impl_mac.mm:33:
/opt/OF/libs/openFrameworks/events/ofEvent.h: In constructor ‘of::priv::StdFunctionId::StdFunctionId()’:
/opt/OF/libs/openFrameworks/events/ofEvent.h:54:7: error: expected unqualified-id before ‘=’ token
id = nextId++;
^
home/pvj/openFrameworks/addons/ofxNDI/src/ofxNDIsender.cpp: In member function ‘bool ofxNDIsender::CreateSender(const char*, unsigned int, unsigned int)’:
/home/pvj/openFrameworks/addons/ofxNDI/src/ofxNDIsender.cpp:74:18: error: ‘GL_PIXEL_UNPACK_BUFFER_ARB’ was not declared in this scope
glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, ndiPbo[0]);
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pvj/openFrameworks/addons/ofxNDI/src/ofxNDIsender.cpp:74:55: error: ‘glBindBufferARB’ was not declared in this scope
glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, ndiPbo[0]);
^
/home/pvj/openFrameworks/addons/ofxNDI/src/ofxNDIsender.cpp:75:67: error: ‘GL_STREAM_READ’ was not declared in this scope
glBufferDataARB(GL_PIXEL_UNPACK_BUFFER_ARB, width*height * 4, 0, GL_STREAM_READ);
^~~~~~~~~~~~~~