Skip to content

Instantly share code, notes, and snippets.

View leftaroundabout's full-sized avatar

Justus Sagemüller leftaroundabout

  • KTH Royal Institute of Technology
  • Stockholm
View GitHub Profile
@leftaroundabout
leftaroundabout / JIT-tone-constructions.ipynb
Last active September 9, 2017 08:18
Comparison of the frequencies you get for various just-intonation constructions of the notes C♯ and D♭
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leftaroundabout
leftaroundabout / IntermodSpectrum.hs
Last active September 2, 2017 13:18
Spectrum view of the effect nonlinear distortion has on various sound signals
import Numeric.FFT.Vector.Invertible
import Data.Vector.Unboxed (Vector)
import qualified Data.Vector.Generic as GA
import Data.Complex (magnitude)
import Data.Function ((&))
import Graphics.Dynamic.Plot.R2
main :: IO ()
main = do
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leftaroundabout
leftaroundabout / ExpAlloc-bench.ipynb
Last active April 1, 2017 00:07
Bad (exponential!) performance of layer of MaybeT wrappers
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leftaroundabout
leftaroundabout / downloadfail.ipynb
Created July 17, 2016 20:22
Linker error when using download in IHaskell
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leftaroundabout
leftaroundabout / git-tmp-commit.py
Created March 22, 2016 13:11
Better git stash
#!/usr/bin/env python2
import subprocess
import sys
import datetime
import re
if __name__ == "__main__":
t = datetime.datetime.now()
branchn = subprocess.check_output([ 'git'