Skip to content

Instantly share code, notes, and snippets.

@sophaskins
Created March 1, 2014 19:48
Show Gist options
  • Save sophaskins/9296060 to your computer and use it in GitHub Desktop.
Save sophaskins/9296060 to your computer and use it in GitHub Desktop.
diff --git a/assets/js/app.js b/assets/js/app.js
index 7362f95..89d7635 100644
--- a/assets/js/app.js
+++ b/assets/js/app.js
@@ -9,25 +9,26 @@ $("aside a").on("click", function (e) {
$("body").addClass(next_interval);
}
+ $("section .span").text(scales[next_interval]);
current_interval = next_interval;
});
var scales = {
- "minorsecond": "15:16",
- "majorsecond": "8:9",
- "minorthird": "5:6",
- "majorthird": "4:5",
- "perfectfourth": "3:4",
- "augfourthdimfifth": "1:√2",
- "perfectfifth": "2:3",
- "minorsixth": "5:8",
- "goldensection": "1:1.618",
- "majorsixth": "3:5",
- "minorseventh": "9:16",
- "majorseventh": "8:15",
- "octave": "1:2",
- "majortenth": "2:5",
- "majoreleventh": "3:8",
- "majortwelfth": "1:3",
- "doubleoctave": "1:4"
+ minorsecond: "15:16",
+ majorsecond: "8:9",
+ minorthird: "5:6",
+ majorthird: "4:5",
+ perfectfourth: "3:4",
+ augfourthdimfifth: "1:√2",
+ perfectfifth: "2:3",
+ minorsixth: "5:8",
+ goldensection: "1:1.618",
+ majorsixth: "3:5",
+ minorseventh: "9:16",
+ majorseventh: "8:15",
+ octave: "1:2",
+ majortenth: "2:5",
+ majoreleventh: "3:8",
+ majortwelfth: "1:3",
+ doubleoctave: "1:4"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment