Skip to content

Instantly share code, notes, and snippets.

@colinsullivan
colinsullivan / prob_divider.lua
Created February 20, 2021 21:14
Dual probabilistic clock divider for Crow
--- two-way probabalistic clock divider
-- This takes a clock input and a -5 to +5 voltage. Both 0 to +5V and 0 to -5V
-- represent 0% to 100% probability of clock outputs. Positive and negative
-- voltage switches between two sets of clock dividers.
--
-- in1: clock input
-- in2: bi-polar probability
-- out1-4: divided outputs
-- when probability input is positive, the output clocks will be at these divisions

Keybase proof

I hereby claim:

  • I am colinsullivan on github.
  • I am colinsullivan (https://keybase.io/colinsullivan) on keybase.
  • I have a public key ASBpuy63LhoN_gbIL4FOa_lF1bEstXhPQfK1vU7hHXxb0Ao

To claim this, I am signing this object:

@colinsullivan
colinsullivan / .env
Last active April 17, 2020 18:44
Fix Create React App warnings when using Mapbox react wrapper
# This causes the CRA builder to honor the local `eslintConfig` in the project's `package.json`
# https://create-react-app.dev/docs/setting-up-your-editor/#experimental-extending-the-eslint-config
EXTEND_ESLINT=true
@colinsullivan
colinsullivan / .gitignore
Last active January 3, 2016 02:19 — forked from adamgit/.gitignore
A .gitignore file for EVERYTHING
#########################
# .gitignore file for EVERYTHING.
#
# Originally a .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
@colinsullivan
colinsullivan / fm-wood-perc.ck
Created February 13, 2012 20:27
FM wood-like percussive sound as described by John Chowning
Step unity => Envelope env => CurveTable attackCurve => Gain vca;
1 => unity.next;
3 => vca.op;
SinOsc carrier => vca => Gain out => dac;
carrier.sync(2);
unity => Envelope modulatorEnv => CurveTable modulatorEnvCurve => Gain modulatorVca;
@colinsullivan
colinsullivan / hyde_tracebacks.log
Created February 7, 2012 21:55
Hyde gen -r traceback when killed
basillamus:colin-sullivan.com 01:20 PM $ hyde gen -r
13:21:01 hyde.engine Reading site configuration from [/Users/colin/Projects/colin-sullivan.com/site.yaml]
13:21:02 hyde Regenerating the site...
13:21:02 hyde.engine Reading site contents
13:21:02 hyde.engine Generating site at [/Users/colin/Projects/colin-sullivan.com]
13:21:02 hyde.engine Configuring the template environment
13:21:03 hyde.engine Generating site to [/Users/colin/Projects/colin-sullivan.com/deploy]
^CTraceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/hyde", line 9, in <module>
load_entry_point('hyde==0.8.5a13', 'console_scripts', 'hyde')()
@colinsullivan
colinsullivan / hyde_error.log
Created February 7, 2012 05:57
Hyde site generation error log
basillamus:colin-sullivan.com 09:54 PM $ hyde gen -r
21:54:34 hyde.engine Reading site configuration from [/Users/colin/Projects/colin-sullivan.com/site.yaml]
21:54:35 hyde Regenerating the site...
21:54:35 hyde.engine Reading site contents
21:54:35 hyde.engine Generating site at [/Users/colin/Projects/colin-sullivan.com]
21:54:35 hyde.engine Configuring the template environment
21:54:36 hyde.engine Generating site to [/Users/colin/Projects/colin-sullivan.com/deploy]
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/hyde-0.8.5a13-py2.6.egg/hyde/generator.py", line 125, in get_dependencies
else self.update_deps(resource)
@colinsullivan
colinsullivan / ViewController.mm
Created January 12, 2012 07:02
Simple Audio and Accelerometer Callbacks that are creating artifacts.
#define SRATE 44100
#define FRAMESIZE 512
#define NUMCHANNELS 2
double g_t;
bool g_sineSwitch;
double g_freq;
@implementation hw1ViewController
@colinsullivan
colinsullivan / EventHandlerTest.ck
Created December 8, 2011 08:59
Trying to get a simple event handler interface in ChucK
/**
My goal is the interface at the bottom of the file:
MyWatcher c;
HappyEvent a;
spork ~ c.watch(a);
When this `watch` method is called, the `MyWatcher` instance `c` should handle the call to
@colinsullivan
colinsullivan / celeryd
Created September 16, 2011 21:32
Celery config file
# Name of nodes to start, here we have a single node
CELERYD_NODES="w1"
# or we could have three nodes:
#CELERYD_NODES="w1 w2 w3"
# Where to chdir at start.
CELERYD_CHDIR="/mnt/hgfs/Concert/concertapp/"
# How to call "manage.py celeryd_multi"
CELERYD_MULTI="$CELERYD_CHDIR/manage.py celeryd_multi"