Skip to content

Instantly share code, notes, and snippets.

View spencersalazar's full-sized avatar

Spencer Salazar spencersalazar

View GitHub Profile
@spencersalazar
spencersalazar / juce-yum-install.sh
Created March 5, 2024 00:30
JUCE yum install dependencies
sudo yum install alsa-lib-devel jack-audio-connection-kit-devel ladspa-devel libcurl-devel freetype-devel libX11-devel libXcomposite-devel libXcursor-devel libXext-devel libXinerama-devel libXrandr-devel libXrender-devel webkit2gtk3-devel mesa-libGLU-devel mesa-libGL-devel
@spencersalazar
spencersalazar / script.sh
Created October 30, 2023 01:29
Xcode custom build rule (.proto file)
#
# Xcode custom build rule (protobuf .proto source file)
#
# add custom build rule to process "Protobuf source files"
# set to this script
# add to Output Files: $(DERIVED_FILE_DIR)/protobuf/$(INPUT_FILE_BASE).pb.cc
#
set -eu
@spencersalazar
spencersalazar / Korg35Filter.ck
Created September 20, 2021 04:43
Virtual Analog filters in ChucK
// ChucK implementation of Pirkle's Korg35 filter digitization
// see https://www.willpirkle.com/app-notes/virtual-analog-korg35-lpf/
// Virtual Analog one-pole filter
class VAOnePole extends Chugen
{
1 => float a;
1 => float b;
0 => float z1;
1 => int isLPF;
@spencersalazar
spencersalazar / easeInOut.h
Created January 27, 2020 05:09
Generic easing function with tweakable power and midpoint.
/** Ease in/out function with settable power and midpoint.
Use p parameter to adjust speed at endpoints (cubic: p=3, quartic: p=4)
Midpoint is point at which speed is fastest and uneased.
@param t time or independent variable in range [0,1]. Input should be scaled to this range from whatever source range is expected.
@param p power, e.g. quadratic=2, cubic=3. Non-integral powers can be used to fine-tune the curve.
@param mid midpoint of curve, where it is "most linear".
@return output value in range [0,1]. Can be multiplied to scale to desired range.
@spencersalazar
spencersalazar / ff-arp.ck
Last active September 23, 2024 13:42
Final Fantasy prelude
164 => float bpm;
(60/bpm)::second => dur quarter;
quarter/2 => dur eighth;
[0.0, 2, 4, 7] @=> float maj[];
[0.0, 3, 8, 10] @=> float majInv[];
[0.0, 2, 3, 7] @=> float min[];
[0.0, 4, 7, 11] @=> float mod[];
@spencersalazar
spencersalazar / Satellite CCRMA + wifi notes
Last active August 29, 2015 14:20
Satellite CCRMA + wifi
See https://wiki.archlinux.org/index.php/WPA_supplicant
http://www.cs.upc.edu/lclsi/Manuales/wireless/files/wpa_supplicant.conf
https://wiki.debian.org/WiFi/HowToUse#Command_Line
edit these files:
avahi-daemon.conf
/etc/default/avahi-daemon (set thing to 0)
/etc/network/interfaces
/etc/wpa_supplicant/wpa_supplicant.conf
@spencersalazar
spencersalazar / omni.bib
Last active August 29, 2015 13:56
My "everything" bibtex file.
--- My Stuff ---
@inproceedings{wang2009smule,
title={{S}mule= Sonic Media: {A}n Intersection of the Mobile, Musical, and Social},
author={Wang, Ge and Essl, Georg and Smith, Jeff and Salazar, Spencer and Cook, P and Hamilton, Rob and Fiebrink, Rebecca and Berger, Jonathan and Zhu, David and Ljungstrom, Mattias and others},
booktitle={Proceedings of the International Computer Music Conference},
pages={16--21},
year={2009}
}