Skip to content

Instantly share code, notes, and snippets.

View kybr's full-sized avatar

karl yerkes kybr

  • University of California
  • Goleta, California
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env perl6
# i'm trying to make a grammar for this file format:
# https://puredata.info/docs/developer/PdFileFormat
my regex statement { '#' <( [ A | N | X ] .*? )> ';' \n }
#$_ = slurp("a-pd-patch.pd");
$_ = Q {
#N canvas 166 0 1426 857 10;
#X obj 254 310 phasor~;
#X connect 20 0 0 0;
This file has been truncated, but you can view the full file.
# 1 "<built-in>" 1
# 1 "/Users/sphere/Desktop/mat201b2018/clean/AlloSystem/allocore/src/graphics/al_Graphics.cpp" 1
#if 0 /* expanded by -frewrite-includes */
#include <map>
#endif /* expanded by -frewrite-includes */
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map" 1 3
// -*- C++ -*-
//===----------------------------- map ------------------------------------===//
//
// The LLVM Compiler Infrastructure
Script started on Thu Mar 15 14:28:53 2018
bash-3.2$ ./run.sh allocore/examples/graphics/renderDepthToTexture.cpp
RUN SCRIPT: Building file allocore/examples/graphics/renderDepthToTexture.cpp.
Alloaudio: Gamma not found. Not building Alloaudio.
Cuttlebone required to build AlloSphere. Not found!
Using AlloSystem Run facilties.
----Building /Users/sphere/Desktop/mat201b2018/clean/AlloSystem/allocore/examples/graphics/renderDepthToTexture.cpp
Not building GAMMA and no usable GAMMA binary found. Not linking application to GAMMA
Not building Cuttlebone and no usable Cuttlebone binary found. Not linking application to Cuttlebone
Not building alloaudio and no usable alloaudio binary found. Not linking application to alloauadio
Script started on Thu Mar 15 13:17:34 2018
bash-3.2$ sh build-sims
RUN SCRIPT: Building file mat201b/student/cy.xu/final/simulator.cpp.
USING GLUT
Using AlloSystem Run facilties.
----Building /Users/sphere/Desktop/mat201b2018/AlloSystem/mat201b/student/cy.xu/final/simulator.cpp
Not building allocv and no usable allocv binary found. Not linking application to allocv
Scanning dependencies of target Gamma
Scanning dependencies of target GLV
[ 2%] Built target cuttlebone
@kybr
kybr / crash.txt
Created February 27, 2018 12:46
Vbap example crashes
ix $ ./run.sh allocore/examples/sound/vbap.cpp
RUN SCRIPT: Building file allocore/examples/sound/vbap.cpp.
Allosystem: GLV Library NOT found. Not building alloGLV.
Cuttlebone required to build AlloSphere. Not found!
Using AlloSystem Run facilties.
----Building /Users/ky/Teaching/MAT/201B/AlloSystem/allocore/examples/sound/vbap.cpp
Not building GLV and no usable GLV binary found. Not linking application to GLV
Not building alloGLV and no usable alloGLV binary found. Not linking application to alloGLV
Not building allocv and no usable allocv binary found. Not linking application to allocv
Not building allosphere and no usable allosphere binary found. Not linking application to allosphere
#include <iostream>
#include <vector>
using namespace std;
struct Grain {
vector<float> data;
unsigned size;
void setGrain(unsigned start, unsigned end, vector<float>& sound,
vector<float>& window) {
size = end - start;
#include <iostream>
#include <vector>
using namespace std;
struct Grain {
vector<float> data;
unsigned size;
void setGrain(unsigned start, unsigned end, vector<float>& sound,
vector<float>& window) {
size = end - start;
#include <iostream>
#include <vector>
using namespace std;
struct Grain {
vector<float> data;
unsigned size;
void setGrain(unsigned start, unsigned end, vector<float>& sound,
vector<float>& window) {
size = end - start;
#include "allocore/io/al_App.hpp"
using namespace al;
using namespace std;
struct MyApp : App, osc::PacketHandler {
MyApp() {
initWindow();
initAudio();
// I listen on 60777
oscRecv().open(60777, "", 0.016, Socket::UDP);