-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
192 lines (175 loc) · 9.87 KB
/
index.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
186
187
188
189
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" name="apple-mobile-web-app-capable" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Polyrhythm Generator</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/stylesheet.css">
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.0.1.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="js/transcompiledscript.js"></script>
<script src="https://code.jquery.com/qunit/qunit-2.0.1.js"></script>
<script src="js/tests.js"></script>
</head>
<body>
<div id="sidebar-black" class="sidebar-nav">
<nav id="navbar-black" class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="visible-xs"><div class="navbar-brand" href="/">POLYRHYTHM GENERATOR</div></span>
</div>
<span class="visible-xs">
<div id="tempoDiv"> bpm: <input id='tempoxs' class="bg" value = '60' type=number min=1 onchange="changeTempo()"/></div>
<button id="generate" onClick="generateSong()">Generate</button>
</span>
<div class="navbar-collapse collapse sidebar-navbar-collapse">
<ul class="nav navbar-nav">
<li class="hidden-xs"><div class="navbar-brand" href="/">POLYRHYTHM GENERATOR</div></li>
<li class="hidden-xs startDiv">
<button id="generate" class="btn" onClick="generateSong()">Generate</button>
<div id="tempoDiv"><span>bpm: </span> <input id='tempo' class="bg" value = '60' type=number min=1 onchange="changeTempo()"/></div>
</li>
<li class="dropdown">
<a href="javascript:void(0);" class="dropdown-toggle"><i class="glyphicon glyphicon-cog"></i> OPTIONS <b class="caret"></b></a>
<ul class="dropdown-menu">
<div id="params">
Time Sig:
<select class="med inline" id="resolution" >
<option value="2">2</option>
<option value="3">3</option>
<option value="4" selected="selected">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
</select> /
<select class="med" id="subdivision">
<option value="2">2</option>
<option value="4" selected="selected">4</option>
<option value="8">8</option>
</select></br></br>
<div class=" tiptext ">Max Length:<div class="description ">Maximum desired length of the resulting pattern. Depending on the parameters chosen, this value can not always be possible. It will be replaced with the absolute minimum in that case.</div></div><input id='maxLength' class="bg" value = '72' type=number min=1 max=120 /></br></br>
<div class=" tiptext">Density:<div class="description">Density codes for the number of notes in each sequences. A high density will produce very dense patterns</div></div>
<select id="density">
<option value="0">0</option>
<option value="1">1</option>
<option value="2" selected="selected">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select></br>
<div class=" tiptext">Nb. of Rhythms:<div class="description">Desired number of different rhythms</div></div>
<select id="nbOfRhythms">
<option value="1">1</option>
<option value="2" selected="selected">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select></br></br>
<div id="leftFootDiv">Left foot : <input id="useLeftFoot" type="checkbox" checked></div>
<div id="orchestrateDiv">Orchestrate : <input id="orchestrate" type="checkbox" checked></div>
<div id="euclideanDiv"><div class=" tiptext">Euclidian Rhythm :<div class="description">If ticked, will try to produce a pattern as evenly distributed as possible, depending on the bar length and the density. If not, the distribution will be random. </div></div><input id="euclidean" type="checkbox"></div>
</div>
</ul>
</li>
<li class="dropdown">
<a href="javascript:void(0);" class="dropdown-toggle" ><i class="glyphicon glyphicon-wrench"></i> ADVANCED <b class="caret"></b></a>
<ul class="dropdown-menu">
<div id="forceDiv">
<div class=" tiptext">Force Length:<div class="description">If checked, length size for each limb must be specified. The max length parameter will then be recalculated</div></div><b></b><input id="forceLength" type="checkbox" onchange="changeForceLength()"></br></br>
Left Hand:
<select id="forceLeftHand" disabled onchange="changeForce()">
<option value="2">2</option>
<option value="3">3</option>
<option value="4" selected="selected">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
</select></br>
Right Hand:
<select id="forceRightHand" disabled onchange="changeForce()">
<option value="2">2</option>
<option value="3">3</option>
<option value="4" selected="selected">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
</select></br>
Left Foot:
<select id="forceLeftFoot" disabled onchange="changeForce()">
<option value="2">2</option>
<option value="3">3</option>
<option value="4" selected="selected">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
</select></br>
Right Foot:
<select id="forceRightFoot" disabled onchange="changeForce()">
<option value="2">2</option>
<option value="3">3</option>
<option value="4" selected="selected">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
</select></br></br>
</div>
</ul>
</li>
<li class="dropdown">
<a href="javascript:void(0);" class="dropdown-toggle" ><i class="glyphicon glyphicon-eye-open"></i> SEED <b class="caret"></b></a>
<ul class="dropdown-menu">
<div id="seedDiv">
<b>Current seed:</b> <div id="seed">-</div>
</br>
<input id='seedInput' type=numberBox size="22" min=1 /></br>
<button id="loadSeed" class="btn" onClick="readSeed()">Load</button>
</div>
</ul>
</li>
<li class="dropdown">
<a href="javascript:void(0);" onClick="randomize()"><i class="glyphicon glyphicon-record"></i> RANDOM <b class=" black caret"></b></a>
</li>
<li class="hidden-xs" id="githubDiv">
<a href="https://github.com/AtActionPark/PolyrhythmGenerator"> <img id="github" src="img/github.png"></a>
</li>
</ul>
</div>
</nav>
</div>
<main id="page-wrapper">
<div id="wrapper">
<div id='canvasDiv'></div>
<div id='controls'>
<div id='loop'></div>
<div id='pauseDiv'></div>
</div>
<div id='limbs'></div></br></br></br></br>
</div>
</main>
</body>
</html>