Skip to content

Instantly share code, notes, and snippets.

Avatar

magdesign magdesign

View GitHub Profile
@magdesign
magdesign / Processing_Countdown
Created Nov 30, 2020
Countdown which triggers scrit at 0
View Processing_Countdown
/*countdown, t- from data.txt file,
when finished trigger a trigger.sh (make sure to declare exact path when compiling)
and destroy itself
2020*/
///load time from a file, decalred as data ( you don't need an array, as there is just one value to pick )
int timer;
/// declare the String Array to store the data from the txt file
String[] txtFile;
View countdown_02
/* 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;
View processing_readout_file
/* 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())
View make_check_v0.10
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 Nov 5, 2020
make check error of ola https://github.com/shenghaoyang/ola mitigate-drift branch
View make check error
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;
View DMX_OLA_testfile
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 Nov 2, 2020
sudo nano /etc/systemd/system/olad.service
View Olad_Service
[Unit]
Description=OLA Daemon
After=network.target
[Service]
User=olad
ExecStart=/usr/local/bin/olad
Restart=always
View DMX_lag_fix
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:
View TU_Dresden
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
View LPMT compile error
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++;
^
You can’t perform that action at this time.