Skip to content

Instantly share code, notes, and snippets.

Mark Lentczner mzero

Block or report user

Report or block mzero

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mzero /
Created Oct 29, 2019
digitakt usb audio driver on RaspberryPi

building the linux digitakt usb driver

needed to install

sudo apt install flex bison libssl-dev libncurses5-dev bc

clone kernel sources

mkdir kernel
cd kernel/
mzero /
Created Apr 9, 2019
Convert DDP mastered CDs to Kunaki's CUE format
"""Convert DDP mastered CDs to Kunaki's CUE format.
python my-cool-cd-ddp-dir my-cool-cd-kunaki
This will produce two files:
my-cool-cd-kunaki.CUE <-- the markers
my-cool-cd-kunaki.iso <-- the audio (*not* an ISO format file!)
mzero /
Created Aug 18, 2018
Start SuperCollider script from the Pisound button
. /usr/local/pisound/scripts/common/
log "starting pbj"
flash_leds 1
killall scsynth
killall sclang
rm -f /tmp/sclang-*.log 2>/dev/null || true
View RasberryPi & Pisound minimal

These are instructions for building a stand alone, headless, music computer based on the Pisound audio card and a RaspberryPi 3.

I use this set up in my live performance rig where it does all of the following without breaking a sweat:

  • Audio effects
    • stutter gate (beat sync'd)
mzero /
Last active Aug 29, 2015
Building GHC & HP hermetically using Docker

Building on the NUC under Docker

[hs-base] - a Debian 7 (Wheezy) base environment

[debian:7] + build dev-docker/hs-base/Dockerfile --> [hs-base]

[ghc-boot] - an environment with a bootstrap GHC

mzero /
Created Jul 20, 2014
Root cause of haddock / clang failure

Root cause of haddock / clang failure

Consider this simple .hs file:

module MinHaddockFail where

yo :: String
yo = "yo"
mzero / ghc-clang-wrapper
Created Oct 31, 2013
This wrapper script *should* enable GHC 7.* to work on systems with Xcode 5. To use it, drop this script somewhere, make it executable, and run.... Then follow the instructions it prints out. What it will do is, instruction you to put a copy in /usr/bin, then re-run it sudo. It will then find all your GHC 7 settings files, and patch them to make…
View ghc-clang-wrapper
inPreprocessorMode () {
for arg in "$@"
if [ 'x-E' = "x$arg" ]; then hasE=1; fi
if [ 'x-undef' = "x$arg" ]; then hasU=1; fi
mzero / SequsHorribilis.hs
Created May 11, 2013
Implementation of 4Clojure problem #112 in Haskell See:
View SequsHorribilis.hs
module SequsHorribilis
import Test.HUnit
type Sequs = [Horribilis]
data Horribilis = Atom Int | List Sequs
deriving (Eq, Show)
upThru :: Int -> Sequs -> Sequs
mzero / Posix.IO.hs
Created Feb 15, 2013
This is what the files look like split, but with the instance still with the typeclass
View Posix.IO.hs
Copyright 2012-2013 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
View set.hs
module SetPrime where
-- import qualified Data. as List
-- no need to import List, as the function all is in the Prelude
import Control.Applicative ((<$>), (<*>))
-- prefer explicit imports most of the time
data Shape = Oval | Squiggle | Diamond deriving (Show, Eq, Bounded, Enum, Ord)
data Color = Red | Purple | Green deriving (Show, Eq, Bounded, Enum, Ord)
You can’t perform that action at this time.