Skip to content

Instantly share code, notes, and snippets.

View caycefischer's full-sized avatar

Cayce caycefischer

  • Toronto
View GitHub Profile
@caycefischer
caycefischer / icons.html
Created June 12, 2013 20:32
A Unified Field Theory of “fav”, “touch” and “tile” icons.
<!-- as per Mathias Bynens: http://mathiasbynens.be/notes/touch-icons#sizes -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144x144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="/apple-touch-icon-120x120-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-precomposed.png"> <!-- this is 57x57 -->
<!-- as per Jonathan Neal: http://www.jonathantneal.com/blog/understand-the-favicon/ -->
<link rel="icon" href="/favicon.png">
<!--[if IE]><link rel="shortcut icon" href="/favicon.ico"><![endif]-->
@caycefischer
caycefischer / copyeditor.js
Created July 13, 2019 02:11
Sketch.app Copyeditor Plugin
// repo here: https://github.com/caycefischer/sketch-copyeditor
var com = {};
com.updatecopy = {
debugLog: function(msg) {
if(this.debug) log(msg);
},
// https://en.wikipedia.org/wiki/Alpha_scale
// http://www.microtonal-synthesis.com/scale_carlos_alpha.html
var notes = [
// the Alpha scale is generated by dividing a perfect fifth into 9 steps
// with a root of A4 (440hz), a perfect fifth is E4 (659.25hz)
// to get a single step in the Alpha scale, we perform (659.25-440)/9 = 24.36hz
// a major third in the alpha scale is 5 steps: 24.36*5 = 121.8hz
// in this way, we can take any ROOT note in hertz and derive an Alpha scale from it