Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Refsum Jensenius alexarje

View GitHub Profile
@alexarje
alexarje / QoM-MoCap.m
Created Jul 5, 2014
Plot Quantity of Motion (QoM) of all mocap markers using the MoCapToolbox
View QoM-MoCap.m
% 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 Jul 2, 2014
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.
View NIME-proceedings-analysis-script
#!/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