Skip to content

Instantly share code, notes, and snippets.

View jarmitage's full-sized avatar

Jack Armitage jarmitage

View GitHub Profile
@jarmitage
jarmitage / Compiling-PureData-externals-for-Bela.md
Last active July 5, 2023 08:55
Compiling PureData externals for Bela

Compiling PureData externals for Bela

git clone --recursive https://github.com/pure-data/helloworld.git
  • Follow the instructions in the repository (and perhaps build the test project to familiarise yourself).
@jarmitage
jarmitage / untitled.js
Created June 15, 2019 17:33
untitled for augmented violinist, live coder, singing bowl and PA system (2019)
s0.initCam(0)
src(s0).out(o0)
solid()
.layer(o0)
//.kaleid(3)
.diff(src(o1).scale(1,()=>1+a.fft[1]*0.01,()=>1+a.fft[1]*0.03))
.modulate(noise(10,0.1))
.out(o1)
@jarmitage
jarmitage / fm_import_field_recording.applescript
Last active July 6, 2019 18:15
FuzzMeasure AppleScript import field recording
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
set homePath to (POSIX path of (path to home folder))
set stimulusPath to homePath & "Desktop/stimulus.wav"
set recordingPath to homePath & "Desktop/measurement.wav"
if application "FuzzMeasure" is not running then
tell application "FuzzMeasure" to activate
end if
@jarmitage
jarmitage / bela_startup.scd
Created July 11, 2019 11:04
Bela SuperCollider Printing Sensors
( // connect to the already-running remote belaserver
Server.default = s = Server("belaServer", NetAddr("192.168.7.2", 57110));
s.options.maxLogins = 4; // should match the settings on the Bela
s.initTree;
s.startAliveThread;
);
(
// msgArray = [button, fsr, knob] // every three SendTrig's
@jarmitage
jarmitage / index.svelte
Created July 25, 2019 13:01
Svelte p5 dynamic import example
<script>
import { onMount } from 'svelte';
let p5
let sketch
onMount(async () => {
const module = await import('p5')
p5 = module.default
sketch = new p5 (function (sketch) {
@jarmitage
jarmitage / 2019-06-06_220304_plate_ring.svg
Created July 31, 2019 21:06
2019-06-06_220304_plate_ring.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jarmitage
jarmitage / tidal-multi-stream.hs
Created October 5, 2019 23:31
Multiple Tidal streams to multiple OSCTargets
-- https://tidalcycles.org/index.php/Custom_OSC
:set -XOverloadedStrings
:set prompt ""
:set prompt-cont ""
import Sound.Tidal.Context
superDirt <- startTidal (superdirtTarget {oLatency = 0.1, oAddress = "127.0.0.1", oPort = 57120}) (defaultConfig {cFrameTimespan = 1/20})
@jarmitage
jarmitage / bw_osc_api.hs
Last active February 5, 2024 05:16
TidalCycles Bitwig OSC API (WIP)
:{
let bwAddress = "127.0.0.1"
bwPort = 8000
bwLatency = 0.02
bwPreamble = []
bwTimestamp = BundleStamp
:}
-- TEMPO
:{
@jarmitage
jarmitage / store.js
Created January 8, 2020 21:46
Svelte store pattern
import { writable } from "svelte/store"
const createStore = () => {
let state = {
}
const { subscribe, set, update } = writable(state)
@jarmitage
jarmitage / calibre_to_roam.md
Last active June 14, 2021 03:21
Convert Calibre Library to Roam Research bullets

Convert Calibre Library to Roam Research bullets

Calibre>Convert books>Create a catalogue of the books in your library

Output examples:

  • [[Structure and Interpretation of Classical Mechanics]] by [[Gerald Jay Sussman]], [[Jack Wisdom]] is about #[[Mechanical Engineering]], #Science, and was published by [[MIT Press]] in #2015.
  • [[Mindstorms: Children, Computers, and Powerful Ideas]] by [[Seymour A. Papert]] is about #Education, and was published by [[Basic Books]] in #1993.
  • [[You and Your Research]] by [[Richard W. Hamming]] is about #Learning, #Research, and was published by [[Bell Communications Research]] in #1986.
  • [[Rhythm and Transforms]] by [[William Arthur Sethares]] is about #Music, and was published by [[Springer]] in #2007.