Skip to content

Instantly share code, notes, and snippets.

View alexarje's full-sized avatar

Alexander Refsum Jensenius alexarje

View GitHub Profile
@alexarje
alexarje / pdf-split.sh
Last active December 31, 2018 14:58
Small shell script (for Ubuntu) that splits up one multi-page PDF to individual PDF files
#!/bin/sh
cd $NAUTILUS_SCRIPT_CURRENT_URI
pdftk $@ burst output $@-%d.pdf
@alexarje
alexarje / QoM-MoCap.m
Created July 5, 2014 16:32
Plot Quantity of Motion (QoM) of all mocap markers using the MoCapToolbox
% Read in C3D file
a=mcread;
% Fill gaps, in case there are holes in trajectories
b=mcfillgaps(a);
% Calculate velocities for all markers
d2v=mctimeder(b);
% Calculate vector length (norm/amplitude) of velocities
@alexarje
alexarje / NIME-proceedings-analysis-script
Created July 2, 2014 08:55
OSX shell script for carrying out a spotlight search on words in all PDFs from the proceedings of the International Conference on New Interfaces for Musical Expression.
#!/bin/sh
clear
echo "Outputting some NIME data"
max=2013
for ((i=2001; i<=$max; ++i )) ;
do
echo "NIME $i"
mdfind -count -onlyin $i music
mdfind -count -onlyin $i gesture
mdfind -count -onlyin $i action