Skip to content

Instantly share code, notes, and snippets.

View madskjeldgaard's full-sized avatar

Mads Kjeldgaard madskjeldgaard

View GitHub Profile
@salkin-mada
salkin-mada / TEENSY3_USB_DESCRIPTIONS.md
Last active May 11, 2021 00:34
You want Keyboard+Midi or Keyboard+Midi+Serial USB mode in platformio?
  • add these lines
    "USB_KEYBOARD_MIDI",
    "USB_KEYBOARD_MIDI_SERIAL",

to the BUILTIN_USB_FLAGS list in /home/$USER/.platformio/platforms/teensy/builder/frameworks/arduino.py

  • and add the following two elifs to /home/$USER/.platformio/packages/framework-arduinoteensy/cores/teensy3/usb_desc.h
#elif defined(USB_KEYBOARD_MIDI)
#!/bin/env bash
set -uoe pipefail
echo "This script will do the following:"
echo "- install or update gcc, cmake, and make"
echo "- clone the llvm project to ./llvm-project"
echo "- install clang-format to /usr/local/clang-format-8"
echo "- leave ./llvm-project intact when done"
echo ""
@timClicks
timClicks / Cargo.toml
Created June 25, 2020 09:55
Implementating Circle Packing in Rust
[package]
name = "circle-packing"
version = "0.1.0"
authors = ["Tim McNamara <paperless@timmcnamara.co.nz>"]
edition = "2018"
[dependencies]
nannou = "0.14"
(
///////////////////////////////////
// "Forked" event stream trick
Ndef(\sound, { DC.ar([0,0]) }).play;
// A base pattern.....
Pdef(\basePattern, Pbind(
// Point to my ndef
\group, Ndef(\sound).group,
@mimetaur
mimetaur / !norns_on_mac.md
Last active June 18, 2023 13:45
Norns Engine Development on MacOS - quick guide
  1. Pull the norns repository

  2. Make symbolic links from norns sc folders -> SuperCollider Extensions folder:

    • ln -s ~/Developer/monome/norns/sc/core ~/Library/Application\ Support/SuperCollider/Extensions/monome-norns-core
    • ln -s ~/Developer/monome/norns/sc/engines ~/Library/Application\ Support/SuperCollider/Extensions/monome-norns-engines
    • ln -s ~/Developer/monome/norns/sc/ugens ~/Library/Application\ Support/SuperCollider/Extensions/monome-norns-ugens
  3. Make symlinks to Norns community repos e.g. ln -s ~/Developer/monome/we/ ~/Library/Application\ Support/SuperCollider/Extensions/monome-we

  4. Make symlinks for custom engine development

@eirikblekesaune
eirikblekesaune / Notam Studio 3 ATK Decoder.md
Last active November 9, 2018 20:13
This is code plays sound files using the different decoders that were set up for Studio 3 at Notam

###Requirements This setup has been made for Mac using macOS 10.13.5. Untested on other versions of macOS. It assumes that you are installing SuperCollider and packages from scratch.

###Setup and install

  1. Download this folder: https://www.dropbox.com/sh/gbidyq2gxd3j2mq/AABeopzZvTJ6eZZsRyqhN9yta?dl=0
  2. Install the version of SuperCollider found in this folder:
    • Unzip SuperCollider3_10beta2.zip
  3. Install the RME MADI face driver for macOS:
s.boot;
(
SynthDef(\simple, { |freq=440, pos=0, amp=0.5|
Pan2.ar(SinOsc.ar(freq), pos, amp);
}).add
;
SynthDef(\simple_rev, { |sig, mix=0.5, room=0.5, damp=0.1|
FreeVerb.ar(sig, mix, room, damp);
}).add
@catfact
catfact / Engine_SimplePassThru.sc
Last active April 25, 2022 10:53
norns passthru example
Engine_SimplePassThru : CroneEngine {
var amp=0;
var <synth;
// this is your constructor. the 'context' arg is a CroneAudioContext.
// it provides input and output busses and groups.
// see its implementation for details.
*new { arg context, doneCallback;
^super.new(context, doneCallback);
@reed-jones
reed-jones / kitty.sh
Created May 14, 2018 04:49
Kitty Terminal Build Script for a fresh Ubuntu 18.04
#!/bin/sh
# installs requirements and builds kitty from source
# on a fresh Ubuntu 18.04 install
#
# https://github.com/kovidgoyal/kitty
sudo apt install python3-dev git gcc build-essential pkg-config libharfbuzz-dev libpng-dev libfontconfig1-dev libgl1-mesa-dev libxkbcommon-x11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev
cd /opt
sudo git clone https://github.com/kovidgoyal/kitty
@ednisley
ednisley / Proto Board Holder.scad
Created November 19, 2017 23:56
OpenSCAD source code: Prototype board holder with mounting holes and selectable board sizes
// Test support frame for proto boards
// Ed Nisley KE4ZNU - Jan 2017
// June 2017 - Add side-mount bracket, inserts into bottom
// 2017-11 - Selectable board sizes, chassis mounting holes
/* [Options] */
PCBSelect = "ArdUno"; // ["20x80","40x60","30x70","50x70","70x90","80x120","ArdDuemil","ArdMega","ArdPro","ArdUno","ProtoneerCNC"]
Layout = "Frame"; // [Frame, Bracket]