Skip to content

Instantly share code, notes, and snippets.

View abramhindle's full-sized avatar

Abram Hindle abramhindle

View GitHub Profile
@abramhindle
abramhindle / getset-fixed-on-6.13beta.csd
Created October 29, 2018 15:20
getset-fixed-on-6.13beta.csd
<CsoundSynthesizer>
<CsOptions>
-L stdin -odac -iadc ;;;RT audio I/O
;-L stdin -odac -iadc -dm6 -+rtaudio=jack -+jack_client=csoundNN -b 1024 -B 2048 ;;;RT audio I/O
</CsOptions>
<CsInstruments>
;; Bug report:a
;; Goal: save state in memory of FLTK widgets
;;
@abramhindle
abramhindle / getset.csd
Created October 28, 2018 22:02
CSound FLgetsnap bug?
<CsoundSynthesizer>
<CsOptions>
-L stdin -odac -iadc ;;;RT audio I/O
;-L stdin -odac -iadc -dm6 -+rtaudio=jack -+jack_client=csoundNN -b 1024 -B 2048 ;;;RT audio I/O
</CsOptions>
<CsInstruments>
;; Bug report:
;; Goal: save state in memory of FLTK widgets
;;

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@abramhindle
abramhindle / midi-crash.ck
Created June 20, 2017 19:02
How to crash the current release of Chuck
// You should see 3 "Ending" followed by segmentation fault instead of 4
//
// hindle1@st-francis:~/projects/BEAMS-2017-WORKS$ chuck midi-crash.ck
// "Ending" : (string)
// "Ending" : (string)
// "Ending" : (string)
// Segmentation fault (core dumped)
//
//
// hindle1@st-francis:~/projects/BEAMS-2017-WORKS$ chuck --version
@abramhindle
abramhindle / save-dont-work.py
Created August 4, 2015 06:18
Demo of saving not working for theanets commit 33775e7c96adbe2924cadb13f0061fd648a74c46
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Example using the theanets package for learning the XOR relation.'''
import climate
import logging
import numpy as np
import theanets
@abramhindle
abramhindle / gist:22e85dee365271671a21
Created February 15, 2015 18:09
Very loud but pretty dramatic naive flat wave generator
Step s => dac;
100 => int maxsamps;
1000 => int reps;
while(true) {
for( 0 => int samps; samps < maxsamps; samps++ ) {
Std.rand2(-16,16) * 1000.0 => s.next;
samps::samp => now;
}
}
@abramhindle
abramhindle / gist:5385999
Created April 15, 2013 06:01
MakeScalarKR snapshot a kr in supercollider
MakeScalarKR {
var last;
var mbus;
var pf;
var f;
*new { arg sbase,f;
^super.new.init(sbase,f)
}
init {
@abramhindle
abramhindle / gist:5385994
Created April 15, 2013 06:00
Abusing a bus to get a scalar value.
~mkscalarfun = {
arg f={ 0 };
var last = 0.0;
var mbus = Bus.control(s, 1);
var pf = f.play(s,mbus);
var scalarf = {
mbus.get({|v| last = v;});
last;
};
scalarf;