Skip to content

Instantly share code, notes, and snippets.

@rsms
rsms / macos-distribution.md
Last active July 26, 2024 07:54
macOS distribution — code signing, notarization, quarantine, distribution vehicles
@juanbrujo
juanbrujo / PlayStationBIOSFilesNAEUJP.md
Last active July 24, 2024 21:26
Files for PlayStation BIOS Files NA-EU-JP
@dhilowitz
dhilowitz / DS Export.lua
Last active October 25, 2023 16:12
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 (ol.gillet@gmail.com)
//
// 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)}
@rbnpi
rbnpi / Pentatechno.rb
Created March 26, 2016 12:02
Pentatechno. Explores the use of ring chain functions, and uses the ixi-techo effect. Notes based on pentatonic_minor scale. Hear it at https://soundcloud.com/rbnman/pentatechno
#pentatechno by Roboin Newman, March 2016
#exploring the use of ring chain functions
#works on SP2.9
use_debug false
s=scale(:c4,:minor_pentatonic).reflect.repeat(4)
s2=scale(:c4,:minor_pentatonic).reverse.reflect.repeat(4)
kill=0
with_fx :level do |vol|