Skip to content

Instantly share code, notes, and snippets.

Jack Armitage jarmitage

Block or report user

Report or block jarmitage

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jarmitage
jarmitage / bw_osc_api.hs
Created Nov 13, 2019
TidalCycles Bitwig OSC API (WIP)
View bw_osc_api.hs
:{
let bwAddress = "127.0.0.1"
bwPort = 8000
bwLatency = 0.02
bwPreamble = []
bwTimestamp = BundleStamp
:}
-- TEMPO
:{
@jarmitage
jarmitage / tidal-multi-stream.hs
Created Oct 5, 2019
Multiple Tidal streams to multiple OSCTargets
View tidal-multi-stream.hs
-- 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 / 2019-06-06_220304_plate_ring.svg
Created Jul 31, 2019
2019-06-06_220304_plate_ring.svg
View 2019-06-06_220304_plate_ring.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jarmitage
jarmitage / index.svelte
Created Jul 25, 2019
Svelte p5 dynamic import example
View index.svelte
<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 / bela_startup.scd
Created Jul 11, 2019
Bela SuperCollider Printing Sensors
View bela_startup.scd
( // 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 / fm_import_field_recording.applescript
Last active Jul 6, 2019
FuzzMeasure AppleScript import field recording
View fm_import_field_recording.applescript
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 / untitled.js
Created Jun 15, 2019
untitled for augmented violinist, live coder, singing bowl and PA system (2019)
View untitled.js
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 / Compiling-PureData-externals-for-Bela.md
Last active May 14, 2019
Compiling PureData externals for Bela
View Compiling-PureData-externals-for-Bela.md

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 / note_utils.cpp
Last active May 9, 2019
Instrument tuning utilities
View note_utils.cpp
std::map<std::string, int> midiNoteNames = { {"a0",21}, {"as0",22}, {"b0",23},
{"c1",24}, {"cs1",25}, {"d1",26}, {"ds1",27}, {"e1",28}, {"f1", 29}, {"fs1",30}, {"g1", 31}, {"gs1",32}, {"a1",33}, {"as1",34}, {"b1",35},
{"c2",36}, {"cs2",37}, {"d2",38}, {"ds2",39}, {"e2",40}, {"f2", 41}, {"fs2",42}, {"g2", 43}, {"gs2",44}, {"a2",45}, {"as2",46}, {"b2",47},
{"c3",48}, {"cs3",49}, {"d3",50}, {"ds3",51}, {"e3",52}, {"f3", 53}, {"fs3",54}, {"g3", 55}, {"gs3",56}, {"a3",57}, {"as3",58}, {"b3",59},
{"c4",60}, {"cs4",61}, {"d4",62}, {"ds4",63}, {"e4",64}, {"f4", 65}, {"fs4",66}, {"g4", 67}, {"gs4",68}, {"a4",69}, {"as4",70}, {"b4",71},
{"c5",72}, {"cs5",73}, {"d5",74}, {"ds5",75}, {"e5",76}, {"f5", 77}, {"fs5",78}, {"g5", 79}, {"gs5",80}, {"a5",81}, {"as5",82}, {"b5",83},
{"c6",84}, {"cs6",85}, {"d6",86}, {"ds6",87}, {"e6",88}, {"f6", 89}, {"fs6",90}, {"g6", 91}, {"gs6",92}, {"a6",93}, {"as6",94}, {"b6",95},
{"c7",96}, {"cs7",9
View 2019-04-04_144701_.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.