Skip to content

Instantly share code, notes, and snippets.

View stephanschulz's full-sized avatar

Stephan Schulz stephanschulz

View GitHub Profile
33128
1000000101101000
10000001011010
1011010
positionData 90
33128
1000000101101000
10000001011010
1011010
positionData 90
2019-12-06 09:47:16.434497-0500 AU_input_X_FDBK[90916:2160901] MessageTracer: load_domain_whitelist_search_tree:73: Search tree file's format version number (0) is not supported
2019-12-06 09:47:16.434523-0500 AU_input_X_FDBK[90916:2160901] MessageTracer: Falling back to default whitelist
[notice ] ofxSoundUtils::printOutputSoundDevices:
------- SOUND OUTPUT DEVICES ---------
[ 0 ] Apple Inc.: MacBook Pro Speakers
API: Unkown API
ID: 1
Outputs :2
[ 1 ] LogMeIn Inc.: LogMeIn Remote Sound
API: Unkown API
Stephan:emsdk stephanschulz$ source ./emsdk_env.sh
Adding directories to PATH:
PATH += /Users/stephanschulz/emsdk
PATH += /Users/stephanschulz/emsdk/clang/e1.38.9_64bit
PATH += /Users/stephanschulz/emsdk/node/8.9.1_64bit/bin
PATH += /Users/stephanschulz/emsdk/emscripten/1.38.9
Setting environment variables:
EMSDK = /Users/stephanschulz/emsdk
EM_CONFIG = /Users/stephanschulz/.emscripten
#include <Arduino.h>
#include <SPI.h>
#define CLOCK_SPEED 2'000'000 // 2.5 MHz SSI Clock
#define CS_PIN 10
#define SCK_PIN 13 // SSI CLK line
#define SCK_PIN_13_INDEX 0
//#define SCK_PIN_14_INDEX 1
//#define SCK_PIN_27_INDEX 2
#include <Arduino.h>
#include <SPI.h>
#define CLOCK_SPEED 2'000'000 // 2.5 MHz SSI Clock
#define SCK_PIN 13 // SSI CLK line
#define SCK_PIN_13_INDEX 0
//#define SCK_PIN_14_INDEX 1
//#define SCK_PIN_27_INDEX 2
#include "threadedPing.h"
threadedPing pingTest;
bool checkInternet(){
string serverIP = "www.google.com";
// string result = ofSystem("ping -c1 www.google.com");
// return result.find("received",0) != string::npos;
#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main( ){
ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
#include "ofApp.h"
//it's this addo version https://github.com/nariakiiwatani/ofxNDI
//readme to set dependencies https://github.com/2bbb/ofxNDI/tree/48616bf6a51dd1abfe2a30608390b95dc97e5132
using namespace std;
//--------------------------------------------------------------
void ofApp::setup(){
auto findSource = [](const std::string &name_or_url) {
//
// customDefines.h
// voice_array
//
// Created by Stephan Schulz on 2018-03-07.
//
#ifndef customDefines_h
#define customDefines_h
#include "ofApp.h"
#define EPS 1.0E-10
//--------------------------------------------------------------
void ofApp::setup(){
}
//--------------------------------------------------------------
void ofApp::update(){