Skip to content

Instantly share code, notes, and snippets.

View madskjeldgaard's full-sized avatar

Mads Kjeldgaard madskjeldgaard

View GitHub Profile
@madskjeldgaard
madskjeldgaard / supercollider2live.scd
Last active May 3, 2024 18:30
SuperCollider to Ableton Live setup

/*

This small patch is an example of how to nicely send midi to Ableton Live from SuperCollider.

It includes how to set up Ableton Link (don't forget to press the "LINK" button in Live) and play a pattern using Link and midi.

It is assumed that you do this on MacOS and you have created a midi driver called "IAC Driver".

*/ (

@madskjeldgaard
madskjeldgaard / safe-benjolin.scd
Last active April 6, 2024 18:27
A safer version of Alejandro Olartes benjolin

/* Instrument inspired from Rob Hordijk's Benjolin, it requires sc3-plugins (PulseDPW, SVF and DFM1)

outSignal: 1-triangle osc1, 2-square osc1, 3-triangle osc2, 4-pulse osc2, 5-XOR output, 6-Filter output

@madskjeldgaard
madskjeldgaard / raspi_sc_install.sh
Created November 3, 2018 22:40
Raspberry pi 3 SuperCollider installation and setup script
#!/bin/bash
#
# Steps to install and set up a headless raspberry pi (3) for SuperCollider use
# This is primarily copied from https://supercollider.github.io/development/building-raspberrypi
#
#
# Get updated
sudo apt-get update
@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 / sc_ide_conf.yaml
Created October 16, 2018 08:04
SuperCollider IDE color scheme (add this to your sc_ide_conf.yaml file under themes)
NordMads:
built-in: !textFormat
color: "#e5c179"
italic: false
char: !textFormat
color: "#76b3c6"
italic: false
class: !textFormat
color: "#76b3c6"
italic: false
@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 / playbuf.scd
Last active May 16, 2023 15:47
My SuperCollider Buffer player synth

/*

This is the buffer player synth to end all buffer player synths

b = Buffer.read(s, "/Users/mads/test-sounds/Ellen-piano-001.wav")

Synth(\playbuf2, [\buffer, b, \dur, 2.5, \loop, 1, \playrate, 2, \pitchEnvAmount, 0.5, \pitchModAmount, 0.0, \modFreq, 0.1, \modEnvAmount, 0.2, \panModAmount, 1.0, \pan, 0.5, \lowPassFreq, 550, \filterModAmount, 0.9, \filterEnvAmount, 1, \filterEnvScale, 1, \lowPassRes, 0.5, \fmAmount, 0.9, \fmEnvAmount, 1])

TODO:

  • Seperate filter envelope?
@madskjeldgaard
madskjeldgaard / PKGBUILD
Last active February 20, 2023 04:46
Arch linux PKGBUILD for installing the Aalto Sparta Plugins
# Maintainer: Mads Kjeldgaard <mail@madskjeldgaard.dk>
pkgname=sparta-plugins
pkgver=2020_10_09_v1.4.2
pkgrel=1
pkgdesc='AALTO vst plugins for Spatial Audio Real-time Applications'
arch=('x86_64')
url="http://research.spa.aalto.fi/projects/sparta_vsts/"
license=('GPL')
depends=('netcdf' 'hdf5' 'lapack' 'webkit2gtk' 'netcdf-fortran' 'libcurl-gnutls')
provides=()
@madskjeldgaard
madskjeldgaard / double-clouds-nanokorg.scd
Last active January 17, 2023 21:16
Using the mi ugens and Modality toolkit to create a double Clouds granulator synth with a korg Nanokontrol2 as the interface
(
///////////////////////////////
// Korg nanokontrol2 Clouds interface
///////////////////////////////
/*
By Mads Kjeldgaard, 08-11-2020
Dependencies:
- mi ugens: https://github.com/v7b1/mi-UGens
@madskjeldgaard
madskjeldgaard / west.scd
Last active January 14, 2023 20:18
Buchla inspired supercollider synth