Skip to content

Instantly share code, notes, and snippets.

@stuartmemo
stuartmemo / Note to Frequency
Created September 22, 2012 15:00
Convert note to frequency
// Takes string of Note + Octave
// Example:
// var frequency = getFrequency('C3');
var getFrequency = function (note) {
var notes = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#'],
octave,
keyNumber;
if (note.length === 3) {
@stuartmemo
stuartmemo / radiohead.js
Created September 28, 2010 16:37
Street Spirit
$("#street-spirit").fadeOut(function() {
$(this).fadeOut();
});