Skip to content

Instantly share code, notes, and snippets.

@david0
david0 / Makefile
Last active August 29, 2015 14:04
alternativer Neo2 Layout Windows treiber
CFLAGS=-std=c99
LD=$(CC)
all: keymapper.exe
keymapper.exe: main.o
$(LD) -o keymapper.exe $<
@david0
david0 / handout.tex
Created August 23, 2014 10:53
Latex Template to create an A4 handout
% Template to create an A4 handout
% input should be a 16:9 PDF presentation
\documentclass[a4paper]{article}
%\documentclass[a4paper]{beamer}
%\documentclass[a4paper]{handoutWithNotes}
%\pgfpagesuselayout{4 on 1 with notes}[a4paper,border shrink=5mm]
\usepackage{pdfpages}
%\AtBeginSection[]
@david0
david0 / Makefile.in.patch
Last active December 7, 2015 08:00
vamp-plugin-sdk makefile patch
--- Makefile.in.orig 2015-12-03 20:56:09.000000000 +0100
+++ Makefile.in 2015-12-04 07:27:19.000000000 +0100
@@ -103,16 +103,20 @@
# public entry point. It's not essential, but makes a tidier library.
PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,--version-script=build/vamp-plugin.map
-
-## For OS/X with g++:
-#DYNAMIC_LDFLAGS = -dynamiclib
-#PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS)
@david0
david0 / compile.log
Last active December 12, 2015 13:06
Ardour 4.4 + libsigc++-2.6.4 nil bug
2015-12-12 13:54:19 +0100
./waf
install
Waf: Entering directory `/private/tmp/ardour201512/ardour-4.4/build'
[ 1/860] cxx: libs/appleutility/AUOutputBL.cpp -> build/libs/appleutility/AUOutputBL.cpp.1.o
[ 2/860] cxx: libs/appleutility/AUParamInfo.cpp -> build/libs/appleutility/AUParamInfo.cpp.1.o
[ 3/860] cxx: libs/appleutility/CAAudioChannelLayout.cpp -> build/libs/appleutility/CAAudioChannelLayout.cpp.1.o
[ 4/860] cxx: libs/appleutility/CAAudioChannelLayoutObject.cpp -> build/libs/appleutility/CAAudioChannelLayoutObject.cpp.1.o
@david0
david0 / ardour_calf_osx.png
Last active December 12, 2015 16:03
Ardour + Calf running on OS X
ardour_calf_osx.png
@david0
david0 / tigcc-atanh-bug.c
Created March 15, 2013 19:00
Bug with TIGCC 0.96: atanh(-0.9) returns 1.4722 instead of -1.4722
#include <math.h>
#include <stdio.h>
#include <tigcclib.h>
#define RETURN_VALUE
void _main() {
push_END_TAG();
push_Float(atanh(-0.9));
}
@david0
david0 / timatrix2csv.py
Created March 21, 2013 15:04
Converts matrices from Texas Instruments Calculators (TI89, TI Voyage 200) to CSV.
#!/usr/bin/python
# Reads matricies files build by the TI Voyage 200/TI82+ (*.v2m-files)
# and outputs csv
#
# Example:
# $ ./timatrix2csv.py main.test.v2p > test.csv
from struct import pack, unpack, calcsize
from collections import namedtuple
from sys import argv, stdout
@david0
david0 / fix-installnames-magic.py
Created December 15, 2015 19:05
magic install name fixing tool
#!/usr/bin/env python3
# Try to fix library names by looking them up
from subprocess import check_output
import re
from os import system
from os.path import basename, exists
from sys import argv
from glob import glob
if len(argv) < 3:
@david0
david0 / ardour-nodelete.patch
Last active December 28, 2015 20:02
ardour patch for emulating nodelete on OS X
diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc
index 20f59b5..b9b382c 100644
--- a/gtk2_ardour/lv2_plugin_ui.cc
+++ b/gtk2_ardour/lv2_plugin_ui.cc
@@ -438,11 +438,6 @@ LV2PluginUI::lv2ui_free()
remove (*_gui_widget);
_gui_widget = NULL;
}
-
- if (_inst) {
@david0
david0 / mkappbundle
Last active August 14, 2016 08:00
Script for creating brewed ardour app bundle
#!/bin/sh
PREFIX=$1
mkdir -p $PREFIX/Ardour5.app/Contents/MacOS
mkdir -p $PREFIX/Ardour5.app/Contents/Resources
sed -e "s?@ENV@??g" \
-e "s?@VERSION@?5?g" \
-e "s?@INFOSTRING@??g" \
-e "s?@IDSUFFIX@?Ardour5?g" \
-e "s?@BUNDLENAME@?Ardour5?g" \
-e "s?@EXECUTABLE@?Ardour5?g" < Info.plist.in > $PREFIX/Ardour5.app/Contents/Info.plist