Skip to content

Instantly share code, notes, and snippets.

View fserb's full-sized avatar

Fernando Serboncini fserb

View GitHub Profile
@fserb
fserb / karplus.strong.js
Created June 16, 2021 17:40
Karplus-Strong with Jaffe-Smith
import {TAU, sampleRate} from "./utils.js";
/*
http://www.music.mcgill.ca/~gary/courses/papers/Karplus-Strong-CMJ-1983.pdf
http://musicweb.ucsd.edu/~trsmyth/papers/KSExtensions.pdf
Simple explanation: http://amid.fish/karplus-strong
+---+ b +---+
x / 0 ------->| B +-+-->| D +--> y
^ +---+ | +---+
@fserb
fserb / package.json
Created July 2, 2021 04:18
Build lit into a single javascript file
{
"name": "lit",
"license": "MIT",
"scripts": {
"build": "npm install && rollup -c"
},
"dependencies": {
"@rollup/plugin-node-resolve": "^13.0.0",
"lit": "^2.0.0-rc.2",
"rollup": "^2.52.7"