-
Notifications
You must be signed in to change notification settings - Fork 0
/
tonnetz-grid.html
executable file
·103 lines (90 loc) · 4.97 KB
/
tonnetz-grid.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<!--------------------------------->
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<meta charset="utf-8">
<link rel="stylesheet" href="./style/grid.css">
<title>toneZ</title>
</head>
<!--------------------------------->
<body>
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="./index.html">toneZ</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span >Options</span>
</button>
<div class="collapse navbar-collapse text-right" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li>
<label class="navbar-text" for="scales">Scale: </label>
<select name="scales" id="scales" onchange="triggerScaleChange(this);">
<option value="none">none</option>
<option value="C">C</option>
<option value="Cshrp">C#</option>
<option value="D">D</option>
<option value="Dshrp">D#</option>
<option value="E">E</option>
<option value="F">F</option>
<option value="Fshrp">F#</option>
<option value="G">G</option>
<option value="Gshrp">G#</option>
<option value="A">A</option>
<option value="Ashrp">A#</option>
<option value="B">B</option>
</select>
<label class="navbar-text" for="modes">Mode: </label>
<select name="modes" id="modes" onchange="triggerModeChange(this);">
<option value="ionian">Ionian</option>
<option value="dorian">Dorian</option>
<option value="phrygian">Phrygian</option>
<option value="lydian">Lydian</option>
<option value="mixolydian">Mixolydian</option>
<option value="aeolian">Aeolian</option>
<option value="locrian">Locrian</option>
</select>
</li>
<li>
<label for="voicing" class="navbar-text">Show voicings </label>
<input type="checkbox" id="voicing-checkbox" name="voicing" onchange="triggerVoicingChange(this);">
</li>
<li>
<label class="navbar-text" for="oscillators">Oscillator type: </label>
<select name="oscillators" id="oscillators" onchange="triggerOscillatorChange(this);">
<option value="triangle">Triangle</option>
<option value="sine">Sine</option>
<option value="sawtooth">Sawtooth</option>
<option value="square">Square</option>
</select>
</li>
<li class="nav-item">
<a class="nav-link" href="#"><label for="attack">Attack: </label></a>
<input type="range" id="attack" name="attack" min="0.005" max="1" step="0.001" value="0.005" onchange="setAttack(this.value)">
</li>
<li class="nav-item">
<a class="nav-link" href="#"><label for="decay">Decay: </label></a>
<input type="range" id="decay" name="decay" min="0" max="1" step="0.001" value="0" onchange="setDecay(this.value)">
</li>
<li class="nav-item">
<a class="nav-link" href="#"><label for="sustain">Sustain: </label></a>
<input type="range" id="sustain" name="sustain" min="0" max="10" step="0.001" value="5" onchange="setSustain(this.value)">
</li>
<li class="nav-item">
<a class="nav-link" href="#"><label for="release">Release: </label></a>
<input type="range" id="release" name="release" min="0" max="10" step="0.001" value="1" onchange="setRelease(this.value)">
</li>
</ul>
</div>
</nav>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<script src=" https://unpkg.com/tone@latest/build/Tone.js"></script>
<script type="text/javascript" src="./script/p5.js"></script>
<script type="text/javascript" src="./script/classes.js"></script>
<script type="text/javascript" src="./script/global.js"></script>
<script type="text/javascript" src="./script/main.js"></script>
<script type="text/javascript" src="./script/synth.js"></script>
</body>
<!--------------------------------->
</html>