Skip to content

Instantly share code, notes, and snippets.

View madskjeldgaard's full-sized avatar

Mads Kjeldgaard madskjeldgaard

View GitHub Profile
@madskjeldgaard
madskjeldgaard / meetup-notam-sc.txt
Created June 8, 2020 18:43
meetup chat supercollider notam june 2020
Welcome to this virtual Notam meetup!
This is a space for sharing ideas, inspiration, workflow, projects, tips and tricks and just hanging out with like minded people.
It's nice to get to know each other so when/if it's your turn to speak for the first time, please tell us your name and a bit about yourself.
Feel free to post a link in the chat to your website/soundcloud/bandcamp/github or whichever page we could visit to learn a bit more about you and your work.
Thanks for joining!
@madskjeldgaard
madskjeldgaard / raspiaudiotune.sh
Last active February 1, 2024 12:28
Tune Raspberry Pi for audio
#!/usr/bin/env sh
# Install utils for cpu freq
sudo apt-get install cpufrequtils
sudo cpufreq-set -r -g performance
sudo echo "ENABLE="true"
GOVERNOR="performance"
MAX_SPEED="0"
MIN_SPEED="0" " | sudo tee -a /etc/default/cpufrequtils
@madskjeldgaard
madskjeldgaard / captain-midi.desc.scd
Last active May 23, 2020 14:06
captain midi description for modality toolkit

/****

SAVE THIS FILE HERE: MKtlDesc.userFolder.openOS;

This is a simple description file for the Ornament and Crime eurorack module, which is a Teensy DAC.

It is specifically for the alternative firmware Hemisphere OS which contains a midi-cv-converter called Captain Midi.

The module has:

  • four trigger inputs
@madskjeldgaard
madskjeldgaard / a-stereo-delay.scd
Created May 20, 2020 15:39
A stereo delay for SuperCollider
(
~numchans = 2;
~delay = {|in, delay=0.1, delayfb=0.33, decaytime=0.5, delaywidth=0.1, modFreq=0.1, modAmount=0.25, fblowcut=0.5|
var localIn = LocalIn.ar(numChannels: ~numchans, default: 0.0);
var output = Array.fill(~numchans, {|cNum|
var sig, fb;
// Random scalar to add variation
var randScale = Rand(0.95,1.0);
@madskjeldgaard
madskjeldgaard / alt-nodeproxygui.scd
Created May 15, 2020 21:07
Alternative, more modern and responsive auto gui for NodeProxy in SuperCollider
// Test Ndef
(
Ndef(\yo, {|freq, amp, pan, what|
var sig = SinOsc.ar(freq) * amp;
what;
Pan2.ar(sig, pan)
}).play
)
@madskjeldgaard
madskjeldgaard / notam-spatial-audio-meetup-may-2020-chat.txt
Created May 13, 2020 18:57
Chat log from the spatial audio meetup at Notam May 2020
Hello and welcome to this virtual Notam meetup.
This is a space for sharing ideas, inspiration, workflow, projects, tips and tricks and just hanging out with likeminded people.
It's nice to get to know each other so when/if it's your turn to speak, please tell us your name and a bit about yourself.
Feel free to post a link to your website/soundcloud/bandcamp/github or whichever page we could visit to learn a bit more about you and your work.
Thanks for joining!
@madskjeldgaard
madskjeldgaard / notam-sc-meetup-may-2020.txt
Last active May 11, 2020 18:56
Notam SuperCollider meetup 11th of May 2020
# 2020-05-11
Gaspar
Hii
18:40
salkin
helloo
will be back in 20
18:41
Gaspar
@madskjeldgaard
madskjeldgaard / njstart
Created May 3, 2020 13:56
A startup script that sets up a zita-njbridge source and transmits a sine wave using SuperCollider and Tmux
#!/bin/bash
#
# This script makes it easy to setup a source in a networked audio connection
# It uses the 'zita-j2n' (jack to network) command to send audio to the network
# (to be received using 'zita-n2j' on the other end)
#
# Usage
# njstart <target_ip> <target_port> <scfile (optional)>
# Dependencies: jack, zita-njbridge, SuperCollider, tmux
#
@madskjeldgaard
madskjeldgaard / build-sc3-plugins-pi.sh
Last active August 10, 2023 01:20
Notes and scripts for headless raspbian setup for pro audio (Raspbian Lite + Raspberry Pi 4)
#!/bin/sh
# Taken from: https://github.com/lvm/build-supercollider
###
#
# Variables
#
INSTALL_DIR=/tmp
SUPERCOLLIDER_VER=3.10
SC3PLUGINS_DIR=$INSTALL_DIR/sc3-plugins
@madskjeldgaard
madskjeldgaard / ndef-setter.scd
Last active April 22, 2020 14:22
Set Ndef using custom event

( // Create new Ndef setter event type Event.addEventType(\ndset, {|server| ~type = \set; ~id = Ndef(~key).group; ~args = Ndef(~key).controlKeys(except: ~exceptArgs);

	currentEnvironment.play;
})

)