Skip to content

Instantly share code, notes, and snippets.

Last login: Tue Apr 25 14:51:07 on console
jsimon@jsairm ~ % cd /Users/jsimon/Library/CloudStorage/Dropbox/github_repositories/sardine
jsimon@jsairm sardine % fishery
zsh: command not found: fishery
jsimon@jsairm sardine % pyenv version
3.11.3 (set by /Users/jsimon/Library/CloudStorage/Dropbox/github_repositories/sardine/.python-version)
jsimon@jsairm sardine % python -m fishery
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
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
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
@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;
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",
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
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"
@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);
}
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'