Skip to content

Instantly share code, notes, and snippets.

Avatar

Birch-san

View GitHub Profile
@Birch-san
Birch-san / pluck.js
Created May 6, 2019 — forked from kevincennis/pluck.js
Karplus-Strong with Web Audio API
View pluck.js
function Pluck( ctx ) {
this.sr = ctx.sampleRate;
this.pro = ctx.createScriptProcessor( 512, 0, 1 );
this.pro.connect( ctx.destination );
}
Pluck.prototype.play = function( freq ) {
var N = Math.round( this.sr / freq ),
impulse = this.sr / 1000,
y = new Float32Array( N ),
@Birch-san
Birch-san / update_ungoogled_chromium_extensions.sh
Created May 30, 2018 — forked from pjv/update_ungoogled_chromium_extensions.sh
get latest version of installed ungoogled chromium extensions
View update_ungoogled_chromium_extensions.sh
#!/usr/bin/env bash
# dependencies:
# https://www.npmjs.com/package/chrome-web-store-item-property-cli
# https://stedolan.github.io/jq/
# curl
# Ascertain directory in which script lives; compatible with all UNIX
# Thanks to kenorb
# http://stackoverflow.com/a/17744637/5257399
You can’t perform that action at this time.