-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmultiple_divs.html
185 lines (169 loc) · 6.51 KB
/
multiple_divs.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!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="mosttoppiano"></div>
<div>
<div style="float:left; width:50%;" id="topleftpiano"></div>
<div style="float:left; width:50%;" id="toprightpiano"></div>
</div>
<div>
<div style="float:left; width:50%;" id="bottomleftpiano"></div>
<div style="float:left; width:50%;" id="bottomrightpiano"></div>
</div>
<!-- Place At the end to make things load faster -->
<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.js"></script>
<script src="js/third_party/Flocking/flocking/flocking-core.js"></script>
<script src="js/third_party/Flocking/flocking/flocking-scheduler.js"></script>
<script src="js/third_party/Flocking/flocking/flocking-firefox.js"></script>
<script src="js/third_party/Flocking/flocking/flocking-webaudio.js"></script>
<script src="js/third_party/Flocking/flocking/flocking-parser.js"></script>
<script src="js/third_party/Flocking/flocking/flocking-ugens.js"></script>
<script src="js/third_party/d3/d3.v2.js"></script>
<script src="js/third_party/dat.gui.js"></script>
<script src="js/aria.js"></script>
<script src="js/oscillator.js"></script>
<script src="js/arpeggiator.js"></script>
<script src="js/piano.js"></script>
<script src="js/grid.js"></script>
<script src="js/instrument.js"></script>
<script src="js/gui.js"></script>
<script src="js/highlighter.js"></script>
<script src="js/eventBinder.js"></script>
<script type="text/javascript">
/*global jQuery, fluid*/
var automm = automm || {};
var demo = demo || {};
(function(){
"use strict";
// Draw a piano based on the below model (Subject to change)
// model: {
// firstNote: 60, // Middle C
// octaves: 1,
// octaveNotes: 12,
// afour: 69,
// afourFreq: 440,
// padding: 50,
// pattern: ['white','black','white','black','white','white','black','white','black','white','black','white'],
// keys: {
// white: {width: 50, height: 200, stroke: "black", fill: "white", highlight: "yellow", notes: []},
// black: {width: 30, height: 125, stroke: "black", fill: "black", highlight: "yellow", notes: []}
// }
demo.mosttoppiano = automm.instrument("#mosttoppiano", {
model: {
autoPiano: true,
padding: 50,
firstNote: 60,
octaves: 2,
keys: {
white: {
fill: 'white',
highlight: 'yellow'
},
black: {
fill: 'black',
highlight: 'yellow'
}
}
}
});
demo.topleftpiano = automm.instrument("#topleftpiano", {
model: {
autoPiano: true,
padding: 50,
firstNote: 60,
octaves: 4,
octaveNotes: 10,
keys: {
white: {
fill: 'yellow',
highlight: 'black'
},
black: {
fill: 'orange',
highlight: 'white'
}
}
}
});
demo.toprightpiano = automm.instrument("#toprightpiano", {
model: {
autoPiano: true,
padding: 50,
firstNote: 60,
octaveNotes: 11,
octaves: 4,
keys: {
white: {
fill: 'black',
highlight: 'yellow',
stroke: 'white'
},
black: {
fill: 'white',
highlight: 'orange',
Stroke: 'white'
}
}
}
});
demo.bottomleftpiano = automm.instrument("#bottomleftpiano", {
model: {
autoPiano: true,
padding: 50,
firstNote: 61,
octaveNotes: 8,
octaves: 2,
keys: {
white: {
fill: 'LightSkyBlue',
highlight: 'purple'
},
black: {
fill: 'silver',
highlight: 'hotpink'
}
}
}
});
demo.bottomrightpiano = automm.instrument("#bottomrightpiano", {
model: {
autoPiano: true,
padding: 50,
firstNote: 64,
octaveNotes: 8,
octaves: 2,
keys: {
white: {
fill: 'purple',
highlight: 'LightSkyBlue'
},
black: {
fill: 'hotpink',
highlight: 'silver'
}
}
}
});
}());
</script>
</body>
</html>