Skip to content

Instantly share code, notes, and snippets.

jsimon@merapi:~/build-supercollider$ sh build-supercollider.sh
Hit:1 http://gb.archive.ubuntu.com/ubuntu eoan InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu eoan-updates InRelease
Hit:3 http://gb.archive.ubuntu.com/ubuntu eoan-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu eoan-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up-to-date.
Reading package lists...
@tedthetrumpet
tedthetrumpet / clean.css
Last active June 30, 2020 10:39 — forked from jmakeig/clean.css
BBEdit Markdown stylesheet (~/Library/Application Support/BBEdit/Preview CSS/clean.css)
body {
font-family: "Helvetica Neue", Helvetica, sans-serif;
font-size: 12pt;
line-height: 1.45;
padding: 0 1rem;
max-width: 60em;
}
a {
color: rgba(0, 122, 255, 1);
}
29 mar
x << saw (100 ~~ 400 $ sqr [2,3,5,7]) * (-28) db;
x >> audio; -- direct audio output...
delay 0.01 0.8 x >> audio; -- and delayed audio output by 0.1 seconds
delay 0.2 0.7 x >> audio; -- and delayed audio output by 0.1 seconds
delay 0.05 0.7 x >> audio -- and delayed audio output by 0.1 seconds
struct (ascii "gh") $ n "2 1 5 3 6 2 5" # s "barung"
struct (ascii "<gh ij gh qw>") $ n "2 1 5 3 6 2 5" # s "barung"
Pieces
Heather
-- !setbpm 120
-- starting point
stack [n " 2 3 ~ 2 ~ 3 2 ~ " # s "saron" # cut 1, n " ~ 3 2 ~ 5 3 ~ 3 " # s "peking" # cut 2]
-- roulette evolution 11 Mar
Kath's piece
improvisation 2021-04-01
-- https://www.youtube.com/watch?v=CWfISV3rWIo&t=1960s
-- source material for pick 'n mix
stack [
cat [
n " 0 1 0 1 0 1 0 1" # s "peri" # gain 0.7,
slow 1.5 $ n " 0 1 0 1 0 1 0 1" # s "peri" # gain 0.7],
n "9/4" # s "gong",
Install https://github.com/ExistentialAudio/BlackHole
Set the mac sound output to 'BlackHole 16ch' using the widget in the menu bar
Boot or reboot the server in SuperCollider – this is a key step, the SC server will *not* pick up a change of audio device without a reboot
After boot, check that the SC post window says '"BlackHole 16ch" Output Device'
In OBS > Settings > Audio > Devices > Mic/Auxillary Audio select 'BlackHole 16ch'
@tedthetrumpet
tedthetrumpet / wander.sc
Created January 22, 2023 07:57
Stuck on implementing constrained random walk with rests in SuperCollider
Pjsline2 : Pattern {
var <>lo, <>hi, <>step, <>length;
*new { arg lo=0, hi=12, step=[2,3], length=inf;
^super.newCopyArgs(lo, hi, step, length)
}
storeArgs { ^[lo,hi,step,length] }
embedInStream { arg inval;
Installing collected packages: wcwidth, PyQt5-Qt5, pure-eval, pickleshare, parsy, LinkPython, executing, backcall, traitlets, PyQt5-sip, prompt-toolkit, parso, decorator, cython, asttokens, stack-data, PyQt5, pyliblo3, matplotlib-inline, jedi, QScintilla, ipython, tidalvortex
WARNING: The scripts cygdb, cython and cythonize are installed in '/home/jsimon/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts pylupdate5, pyrcc5 and pyuic5 are installed in '/home/jsimon/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts ipython and ipython3 are installed in '/home/jsimon/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script vortex is installed in '/home/jsim
@tedthetrumpet
tedthetrumpet / jsvdwpatternuary2023.txt
Last active February 4, 2023 13:19
Code and links for JSvdW 'patternuary' January 2023
//////////////////////////////////////////////////////////////////////
// @tedthetrumpet@post.lurk.org #patternuary 2023-01-01
// thanks to froos for 'run' :)
await samples('github:tidalcycles/Dirt-Samples/master/');
const run = (n) => saw.range(0,n).floor().segment(n)
n(run("<6 12>")).s("brakedrum").slow(2).gain(2).sometimes(x=>x.ply(2)).speed(0.5)
https://strudel.tidalcycles.org?Tdhv3pfdx6bc
clang -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -D__RTMIDI_SILENCE_WARNINGS__ -D__MACOSX_CORE__ -Isrc/rtmidi -I/Users/jsimon/.pyenv/versions/3.11.3/include/python3.11 -c src/_rtmidi.cpp -o build/temp.macosx-13.1-arm64-cpython-311/src/_rtmidi.o -frtti
src/_rtmidi.cpp:243:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"
^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure