Skip to content

Instantly share code, notes, and snippets.

View jlmitch5's full-sized avatar

John Mitchell jlmitch5

  • Red Hat
  • Garner, NC
View GitHub Profile
@jlmitch5
jlmitch5 / cleanUpSampleDir.sh
Created November 20, 2025 03:10
For loading samples into octatrack. This script crawls a dir and updates all alias files to their actual files, as well as deletes any sort of macos metadata files
#!/bin/sh
################################################################################
# cleanUpSampleDir.sh
#
# Description:
# Cleans up audio sample directories by:
# 1. Removing macOS metadata files (.DS_Store, ._* resource forks, etc.)
# 2. Replacing macOS alias files with their original source files
#
// pulled from https://llllllll.co/tags/c/library/18/norns, scrolled down all the way
// [...new Set([...document.getElementsByClassName("title raw-link raw-topic-link")].map(h => h.innerHTML.toString().toLowerCase().replace(/ |:|\[|\]|\(|\)|\-|\{|\}|\~|\—|\.|_|,|!|\\|\/|\&|\;/g, "") + ` -!- [${h.innerText}](${h.href})`).sort())]
const library = [
"13angels -!- [13 angels](https://llllllll.co/t/13-angels/41671/4)",
"3dpurelua3dlibfornorns -!- [3d: pure Lua 3d lib for norns](https://llllllll.co/t/3d-pure-lua-3d-lib-for-norns/39622)",
"4bigknobs -!- [4 Big Knobs](https://llllllll.co/t/4-big-knobs/42190/2)",
"abacus -!- [Abacus](https://llllllll.co/t/abacus/37871/2)",
"amen -!- [Amen](https://llllllll.co/t/amen/43746/2)",
"animator -!- [Animator](https://llllllll.co/t/animator/28242/18)",
@jlmitch5
jlmitch5 / mm_nye.lua
Created January 1, 2021 05:49
midcentury modular new years eve livestream crow script
--- midcentury modular nye livestream
-- in1: clock
-- out1: blades 1 v/oct
-- out2: blades 2 v/oct
-- out3: ripples v/oct
function init()
input[1]{ mode = 'change'
, direction = 'rising'
}
@jlmitch5
jlmitch5 / coast_is_moving.lua
Created June 20, 2020 03:28
crow script for fm cloud from just friends
--- coast_is_moving ~ fm cloud inspired by N KRAMER's ENDLESS
-- in 1: change jf minimum octave (0 - 5v offset knob)
-- in 2: change jf maximum octave (0 - 5v offset knob)
-- elements is a rubbery whistle tone
-- 1st voice is warps, which FM's elements
-- out 1: cv 1
-- out 2: gate 1
-- 2nd voice is elements
-- out 3: cv 2
-- out 4: gate 2
@jlmitch5
jlmitch5 / m18s_mm_5920.lua
Created May 10, 2020 00:25
m18s, midcentury modular 5/9/20 livestream version
--- m18s, midcentury modular 5/9/20 livestream version
-- in 1: clock
-- in 2: 0-5 offset, 8 position sequence selector
-- out 1: cv 1
-- out 2: gate 1
-- out 3: cv 2
-- out 4: gate 2
function shouldGateFire (stage, numStages, gateMode)
if stage <= numStages then
@jlmitch5
jlmitch5 / this_afternoon.lua
Last active May 3, 2020 20:05
this_afternoon for monome crow: a somewhat-linked dual arpeggiator for warps and mangrove
--- this_afternoon is a somewhat-linked dual arpeggiator for warps and mangrove
-- warps is a self-patched complex oscillator (channel 1 is on-board osc, aux out to in 2)
-- output 1 goes to warps algorithm attenuated to taste
-- output 2 goes to warps pitch (channel 1)
-- output 3 goes to mangrove formant attenuated to taste
-- output 4 goes to mangrove pitch
-- mix and put into three sisters all
-- control 3 sisters cut off with some of the output 1/3 control signals
-- use additional 3 sisters outs for feeding back into the oscillators
-- delay and reverb for maximum vibes
@jlmitch5
jlmitch5 / tonight.lua
Last active December 19, 2022 01:47
tonight for monome crow: a wandering and loose(/lost?) arpeggiator for mangrove
--- tonight is a wandering and loose(/lost?) arpeggiator for mangrove
-- output 1 goes to mangrove's formant attenuated to taste (constant wave mode)
-- output 2 goes to mangrove' pitch
-- mangrove's out to delay and reverb for maximum vibes
seq = { 0, 4, 5, 7, 9 }
step = 1
switch = 1
a = math.random(1,10)
b = math.random(1,10)
@jlmitch5
jlmitch5 / midcenturymodular_livestream1.lua
Created March 30, 2020 01:49
braided generative pattern sequencer ~ midcentury modular livestream 1 ~ 3/29/20 1pm EDT ~ twitch.tv/midcenturymodular
--- braided generative pattern sequencer ~ midcentury modular livestream 1 ~ 3/29/20 1pm EDT ~ twitch.tv/midcenturymodular
-- originally inspired by bowery/shiftregister.lua and mudlogger - kubota
-- input 1: performance...plugged in lfo
-- 0 - 1.66v = slow down mangrove, 1.67v - 3.33v 3rd speed up mangrove, 3.34v - 5v 3rd octave up jf
-- input 2: clock
-- output 2: mangrove pitch cv
-- ii: 6 stages of ASR via just friends
reg = {}
scale = { 0,2,4,5,7,9,11,16,21 }
--- boing_two - a bouncing ball app
--- with saved states
--- originally by declutter
--- Heavily based on flin
--- by artfwo
--- Press a grid key in columns 1-12 to
--- start a bouncing ball
--- and the bottom key to stop
--- columns 13-16 allow you to select
-- seaaaaa with no screen
--
-- subtractive polysynth with 5 patterns
-- controlled by midi or grid
--
-- grid pattern player:
-- 1 1 record toggle
-- 1 2 play toggle
-- 1 3-7 pattern selectors
-- 1 8 transpose mode