Skip to content

Instantly share code, notes, and snippets.

View elliotwoods's full-sized avatar

Elliot Woods elliotwoods

View GitHub Profile
#pragma once
#include <stdint.h>
namespace ofxSquashBuddies {
struct Packet {
enum {
PacketSize = 4096,
HeaderSize = 9,
MaxPayloadSize = PacketSize - HeaderSize
#version 150
uniform sampler2DRect tex0;
in vec2 texCoordVarying;
out vec4 outputColor;
uniform float minimum;
uniform float maximum;
#include "SoundEffects.h"
//----------
void SoundEffects::audioOut(ofSoundBuffer & out) {
auto numFrames = out.getNumFrames();
const auto interval = this->getInterval();
const auto intervalFrames = 44100 * interval;
for(int i=0; i<numFrames; i++) {
out[i * 2 + 0] = 0.0f;
#region usings
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using VVVV.PluginInterfaces.V1;
using VVVV.PluginInterfaces.V2;
const int output = 13;
const int highDuration = 50;
const int lowDuration = 30;
void setup() {
pinMode(output, OUTPUT);
Serial.begin(9600);
}
2>..\..\..\openFrameworks\3d\of3dPrimitives.cpp(149): warning C4267: 'argument': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\of3dPrimitives.cpp(153): warning C4267: 'argument': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\ofMesh.cpp(757): warning C4267: 'initializing': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\ofMesh.cpp(1049): warning C4267: 'argument': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\ofMesh.cpp(1064): warning C4267: 'argument': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\ofMesh.cpp(1071): warning C4267: 'argument': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\ofMesh.cpp(1084): warning C4267: 'argument': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\ofMes
@elliotwoods
elliotwoods / MyTestNode.cpp
Created April 20, 2015 13:31
Rulr workshop #1 : example node
#include "MyTestNode.h"
#include "ofxDigitalEmulsion/Item/Board.h"
using namespace ofxDigitalEmulsion;
//----------
MyTestNode::MyTestNode() {
OFXDIGITALEMULSION_NODE_INIT_LISTENER;
}
CREATE DATABASE IF NOT EXISTS `link` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `link`;
-- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86)
--
-- Host: localhost Database: link
-- ------------------------------------------------------
-- Server version 5.6.20
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
#include "ofApp.h"
using namespace ofxAssets;
//--------------------------------------------------------------
void ofApp::setup2(){
ofSetWindowTitle("Digital Emulsion Toolkit v0.1");
ofSetCircleResolution(120);
splashScreen.init("splashScreen.png");
@elliotwoods
elliotwoods / ofApp.cpp
Created October 2, 2014 14:54
findCirclesGrid
#include "ofApp.h"
using namespace ofxCv;
using namespace cv;
//--------------------------------------------------------------
void ofApp::setup(){
this->image.loadImage("/Users/elliot/Desktop/5x7.jpg");
this->paramThreshold = 100;