Skip to content

Instantly share code, notes, and snippets.

View wrl's full-sized avatar

william light wrl

View GitHub Profile
==10629== Invalid read of size 4
==10629== at 0x54880E3: __pthread_mutex_unlock_usercnt (in /usr/lib/libpthread-2.22.so)
==10629== by 0x242BD8B6: __gthread_mutex_unlock (gthr-default.h:778)
==10629== by 0x242BD8B6: __gthread_recursive_mutex_unlock (gthr-default.h:831)
==10629== by 0x242BD8B6: unlock (mutex:194)
==10629== by 0x242BD8B6: ~lock_guard (mutex:392)
==10629== by 0x242BD8B6: Airwave::Plugin::dispatchProc(AEffect*, int, int, long, void*, float) (plugin.cpp:734)
==10629== by 0xA9CCD8: ??? (in /usr/bin/renoise-3.1.0)
==10629== by 0xAA5CBA: ??? (in /usr/bin/renoise-3.1.0)
==10629== by 0xA63A7B: ??? (in /usr/bin/renoise-3.1.0)
{
"version": 20150319,
"exported": {
"from": "0.3.1-a18ae86",
"on": "2015-07-08T00:54:31+0200"
},
"programs": [
{
"level": -6.0,
"note_logic": "poly",
#!/bin/dash
path=$(readlink -f "$(which "$0")")
prefix=${path%-*}-
program=${0##*-}
default_cflags="-isysroot /home/will/macosx_sdks/SDKs/MacOSX10.8.sdk"
$program -target x86_64-apple-darwin -B "$prefix" $default_cflags $*
#!/bin/dash
path=$(readlink -f "$(which "$0")")
prefix=${path%-*}-
program=${0##*-}
default_cflags="-isysroot /path/to/MacOSX10.<whatever>.sdk"
$program -target x86_64-apple-darwin -B "$prefix" $default_cflags $*
use std::env;
use std::path::Path;
extern crate nix;
use nix::fcntl::{O_RDWR, O_NONBLOCK};
use nix::{fcntl,sys};
extern crate mio;
use mio::{TryRead, TryWrite};
class LameError < RuntimeError
end
ShibeTest::Suite.new('ShibeTest') do
should_pass 'assert true' do |assert|
assert.true { true }
end
should_fail 'fail assert true' do |assert|
assert.true { false }
{"version":20140811,"exported":{"from":"0.2.0-bc918a1","on":"2014-10-14T16:12:51+0200"},"programs":[{"level":-6.0,"note_logic":"poly","glide_time":50.0,"pitch_bend_range":2.0,"uncertainty":0.0,"env":{"amp":{"attack":0.002,"decay":0.3,"sustain":-6.0,"release":0.05},"filter":{"attack":0.001,"decay":0.18,"sustain":-90.0,"release":0.001}},"osc":[{"level":0.0,"octave":0.0,"coarse":0.0,"fine":0.0,"phase_shift":0.0,"stereo_separation":0.0,"lsj_amount":0.5,"lsj_y_mult":1.0},{"level":-90.0,"octave":0.0,"coarse":0.0,"fine":0.0,"phase_shift":0.0,"stereo_separation":0.0,"lsj_amount":0.0,"lsj_y_mult":1.0},{"level":-90.0,"octave":0.0,"coarse":0.0,"fine":0.0,"phase_shift":0.0,"stereo_separation":0.0,"lsj_amount":0.0,"lsj_y_mult":1.0}],"lissajous":{"phase_multiplier":1.0,"theta":2.0,"a":1.0,"b":1.0,"osc":{"x":{"octave":0.0,"coarse":0.0,"fine":0.0,"phase_shift":0.0},"y":{"octave":0.0,"coarse":0.0,"fine":0.0,"phase_shift":0.0}},"smoothing":0.0},"filter":{"type":"LP24","cutoff":24000.0,"resonance":0.0,"drive":1.0,"env_mod":0.0}
class VstFxProgram
STRUCT_FORMAT = [
'l>', # int32 size
'a4', # int32 fx magic
'l>', # format version
'a4', # vst fx unique id
'l>', # vst fx version
'l>', # nparams
@wrl
wrl / libedcast.cpp
Created June 27, 2014 13:00
edcast with better float -> int conversion
#define HAVE_FLAC TRUE
/* it doesn't detect I got flac atleast on my system -drr */
#include <math.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
@wrl
wrl / sine_lut.c
Created April 1, 2014 12:42
sine lookup table
/**
* lut.c: quadrature-optimized sine lookup table
* written in 2014 by william light <wrl@illest.net>
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.