-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
146 lines (142 loc) · 5.58 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
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>HarmoScale</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/template7/1.4.1/template7.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vexflow/3.0.9/vexflow-min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/meenie/band.js@8244081578e5d4711102b7b2cf574774de17be1b/dist/band.min.js"></script>
<script src="./js/scale.js"></script>
<script src="./js/harmo.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/spectre.css/0.5.9/spectre.min.css" media="print" onload="this.media='all'; this.onload = null;" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/spectre.css/0.5.9/spectre-exp.min.css" media="print" onload="this.media='all'; this.onload = null;" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/spectre.css/0.5.9/spectre-icons.min.css" media="print" onload="this.media='all'; this.onload = null;" />
<link rel="stylesheet" href="./css/style.css" media="print" onload="this.media='all'; this.onload = null;">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="header">
<div class="column col-12 ">
<div class="card my-2 ">
<div class="card-header">
<div class="columns card-title">
<div class="column">
<h1>HarmoScale</h1>
</div>
<div class="column">
<a href="#modal-about">A propos</a>
<div class="modal" id="modal-about">
<a href="#close" class="modal-overlay" aria-label="Close"></a>
<div class="modal-container">
<div class="modal-header">
<a href="#close" class="btn btn-clear float-right" aria-label="Close"></a>
<div class="modal-title h5">A propos</div>
</div>
<div class="modal-body">
<div class="content">
<p>Harmo Scale est un outil de visualisation des différentes gammes utilisées en Jazz et des modes dérivés.</p>
<span>Il est possible de :</span>
<ul>
<li>définir la note de départ de la gamme.</li>
<li>basculer entre les différents modes.</li>
<li>chercher une gamme et un mode à partir d'un accord.</li>
<li>jouer la gamme pour un instrument donné (UT, Bb, Eb).</li>
</ul>
</div>
</div>
<div class="modal-footer">
<p>Développé par Maxime Ohayon</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card-body px-2 py-2">
<div class="input-group">
<span class="input-group-addon">Tune </span>
<select id="selectTune" class="form-select column">
<option value="-2">Bb (Trumpet) -2</option>
<option value="0">Normal</option>
<option value="+3">Eb (Sax) +3</option>
</select>
</div>
<div class="columns mt-2 mx-0 border">
<div class="column bg-gray col-auto text-center">
<span class=""><i class="icon icon-search"></i>
<br>Find a chord</span>
</div>
<div id="chordsFinderContainer" class="column form-group py-2 text-tiny">
<label class="form-radio form-inline">
<input type="radio" name="chordToFind" checked="checked"><i class="form-icon"></i> Aucun
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="scalesContainer" class="container col-gapless">
</div>
<script id="templateChordsFinder" type="text/template7">
<label class="form-radio form-inline">
<input type="radio" name="chordToFind" value="{{chord}}"><i class="form-icon"></i> <span class="badge" data-badge="{{used}}">{{chord}}</span>
</label>
</script>
<script id="templateScale" type="text/template7">
<div id="scale-{{scaleKey}}" class="scale col-12 my-2">
<div class="card">
<div class="card-header bg-gray">
<div class="columns card-title">
<div class="form-group">
<select class="form-select" id="selectStartNote-{{scaleKey}}">
{{#each chromaticNotes}}
<option value="{{this}}">{{this}}</option>
{{/each}}
</select>
</div>
<div class="h3 px-1">{{scaleName}}</div>
</div>
<dl class="text-large">
<dt class="schema-interval-space pr-2">Schéma</dt>
<dd id="schema-note-{{scaleKey}}-0" class="schema-interval-space">-</dd>
{{# each scaleSchema}}
<dt class="schema-interval schema-{{this}}"></dt>
<dd id="schema-note-{{../scaleKey}}-{{js "this.@index + 1"}}" class="schema-interval-space">-</dd>
{{/each}}
</dl>
</div>
<div class="card-image">
</div>
<div class="card-body">
<div class="columns">
<div class="column col-lg-12 col-6">
<div id="score-{{scaleKey}}" class="score">
</div>
</div>
<div class="column col-lg-12 col-6">
<div class="scale-versions">
{{#each versions}}
<div data-version-index="{{vIndex}}" class="scale-version-{{vScaleKey}} scale-version tile tile-centered c-hand {{#js_if "this.vIndex === this.vActiveVersion"}}activeMode{{/js_if}}">
<div class="tile-content">
{{vIndex}}. {{vName}}
</div>
<div class="tile-actions">
{{#each vChords}}
<span class="label label-secondary" data-chord="{{this}}">{{this}}</span>
{{/each}}
</div>
</div>
{{/each}}
</div>
</div>
</div>
<div class="card-footer">
<button id="play-{{scaleKey}}" class="play btn">Play</button>
<label id="currentPlayedNote-{{scaleKey}}">-</label>
</div>
</div>
</div>
</script>
</body>
</html>