Translation from DAn's MATLAB
Merge branch 'master' of https://github.com/mattmcvicar/death2chroma