Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (68 sloc) 2.75 KB
<!DOCTYPE html>
<!-- Google Summer of Code 2012: Automagic Music Maker
Primarily written by Myles Borins
Strongly influenced by GSOC Mentor Colin Clark
Using the Infusion framework and Flocking Library
The Automagic Music Maker is distributed under the terms the MIT or GPL2 Licenses.
Choose the license that best suits your project. The text of the MIT and GPL
licenses are at the root of the Piano directory. -->
<html lang="en">
<head>
<!-- This is all so meta -->
<meta charset="utf-8">
<title>Automagic Music Maker</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="The Automagic Music Maker">
<meta name="author" content="Myles Borins">
<!-- Le styles -->
<link href="css/third_party/normalize.css" rel="stylesheet">
</head>
<body>
<div id="instrument">
<div id="piano"></div>
</div>
<script src="js/third_party/jquery-1.7.2.min.js"></script>
<script src="js/third_party/jquery.ui.core.js"></script>
<script src="js/third_party/infusion-framework.min.js"></script>
<script src="js/third_party/flocking.min.js"></script>
<script src="js/third_party/d3/d3.v2.js"></script>
<script src="js/third_party/dat.gui.js"></script>
<script src="js/automm.min.js"></script>
<script type="text/javascript">
/*global jQuery, fluid*/
var automm = automm || {};
var instrument = instrument || {};
(function(){
"use strict";
// Draw a piano based on the below model (Subject to change)
// model: {
// autoPiano: false,
// autoGrid: false,
// autoGui: false,
// columns: 8,
// rows: 8,
// afour: 69, // The note number of A4... this could probably be calculate based on all the other stuff (probably should be)
// afourFreq: 440, // Standard freq for A4, used to calculate all other notes
// firstNote: 60, // Middle C
// octaves: 1,
// octaveNotes: 12,
// padding: 0,
// pattern: ['white', 'black', 'white', 'black', 'white', 'white', 'black', 'white', 'black', 'white', 'black', 'white'],
// keys: {
// white: {
// fill: '#fff000', // Yellow
// stroke: '#000000', // Black
// highlight: '#ffffff' // White
// },
// black: {
// fill: '#ffa400', // Orange
// stroke: '#000000', // Black
// highlight: '#000000' // Klack
// }
// }
// }
instrument = automm.instrument("#instrument");
}());
</script>
</body>
</html>