Skip to content

Instantly share code, notes, and snippets.

@rsms
rsms / macos-distribution.md
Last active January 7, 2026 17:16
macOS distribution — code signing, notarization, quarantine, distribution vehicles
@redconfetti
redconfetti / access-virus-ti-firmware.md
Last active January 31, 2026 22:28
Access Virus TI Firmware

Access Virus TI Firmware

Download the "Virus TI Installer 5.1.7.00 for macOS" from Virus.info. The file should save as "Virus TI Software Suite 5.1.7.00.pkg". Rename the file as "virus.pkg".

Open a terminal and run the following command to copy the firmware binary to your local path:

$ pkgutil --expand-full virus.pkg virus_pkg
@dhilowitz
dhilowitz / DS Export.lua
Last active September 7, 2025 18:08
Kontakt 6 Creator Tools Export to Decent Sampler format
-- Check for valid instrument
if not instrument then
print("The following error message informs you that the Creator Tools are not "..
"focused on a Kontakt instrument. To solve this, load an instrument in "..
"Kontakt and select it from the instrument dropdown menu on top.")
return
end
print('<?xml version="1.0" encoding="UTF-8"?>')
print("<!-- DS file for Kontakt 6 instrument " .. instrument.name .. " -->")
@tomhodgins
tomhodgins / css-overlay.js
Last active September 21, 2018 00:34
Paste this into your console for an easy-to-edit, live-updating CSS overlay. Demo: http://i.imgur.com/VWcK8RA.gif
// CSS Overlay
var overlay_styles = document.createElement('style')
var virtual_stylesheet = document.createElement('style')
var textarea = document.createElement('textarea');
overlay_styles.textContent = `
[data-css=overlay] {
box-sizing: border-box;
margin: 0;
padding: 1em;
@Enkerli
Enkerli / spi-ctl-bpf.rb
Last active September 15, 2023 02:27
A Sonic Pi script (spi-ctl-bpf.rb) and a Processing one (spi_ctl_bpf.pde) to control a band pass filter using the mouse. Been having performance issues with the sound lagging behind. Setting `set_sched_ahead_time!` in Sonic Pi sounds like it helps, but not enough. Original code from Robin Newman: https://gist.github.com/rbnpi/ca5e80258c0c1296b1c…
set_sched_ahead_time! 0 # Setting that one to a negative value makes Sonic Pi complain, it sounds like.
with_fx :bpf do |s| # Setting up the fx to be controlled internally
synth :square, note: 32,release: 400 # Long release as the control will affect a single note
live_loop :ctl do # The loop is inside the fx as this is where the action will be.
ctl=sync "/ctl" # The OSC message which Processing sends, based on mouse coordinates.
rz=ctl[:args][0] # Assigning the first argument to resonance.
ct=ctl[:args][1] # Assigning the second argument to centre.
control s, res: rz, centre: ct # The actual control of the fx.
set_sched_ahead_time! -2 # Sounds like setting this again every time actually helps.
@TomWhitwell
TomWhitwell / compose.py
Created November 20, 2016 17:51
Python script to generate random scores for modular synth
import random
import string
# -*- coding: utf-8 -*-
def randomname(length = 6):
vowels = ['a','e','i','o','u','']
consonants = ['b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','y','z']
a = random.sample(consonants,length/2)
x = 1
use_bpm 12
use_synth :mod_saw
128.times do
play scale([:F1,:Eb1,:F2,:Eb2].choose, [:minor,:major].choose).choose,
attack: ([0.5,1,2,4].choose) /[2.0,4.0].choose,
release: ([1,2,4,8,16,32].choose) /[2.0,4.0].choose,
mod_range: [0,1,2,4,6,8].choose,
mod_phase: [0.5,1,2,4,8].choose,
mod_phase_slide: [1,2,4,8].choose + rrand(-0.1,0.1),
mod_phase_offset: rrand(0,0.333),
@TomWhitwell
TomWhitwell / clouds.cc
Created May 30, 2016 16:57
Clouds firmware - simple 1 second audio delay
// Copyright 2014 Olivier Gillet.
//
// Author: Olivier Gillet ([email protected])
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@rtsho
rtsho / AmbientExperiment2
Last active April 7, 2016 01:31
My 1st sonic pi experiment
#sonic pi
#a piece inspired from Ambien Experiment code by Darin Wilson
#a is the array, i is the previous index. returns a new index in a, in probability close to i.
#The distance is abs(i - j)
#never mind...it just help me remember what the function does
def perlin(a, i)
#create array with probabilities as a function of distance
#the indexes of this new array represent distances from i
a2 = Array.new(a.length){|index| Math.exp(a.length - index)}