-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmock.html
206 lines (177 loc) · 7.8 KB
/
mock.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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!doctype html>
<html lang="en">
<head>
<title>pitchsheep</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/greghub/green-audio-player/dist/css/green-audio-player.min.css">
<style>
.audio {
width: 100%;
}
.green-audio-player {
background: none;
box-shadow: none;
border: none;
padding: 0;
}
.example {
transition: opacity 1000ms;
will-change: opacity;
}
.trans {
opacity: 0.25;
}
</style>
</head>
<body>
<main>
<section class="pt-5 text-center container">
<div class="row py-5">
<div class="col-lg-6 col-md-8 mx-auto">
<h1 class="fw-light">pitch<span class="text-muted">sheep</span></h1>
<p class="lead text-muted">A pitch shifting sheep living in your browser...</p>
<div class="card shadow-sm">
<div class="card-body">
<div class="audio">
<audio id="input" src="" type="audio/wav"></audio>
</div>
</div>
<div class="card-footer text-start">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="origin" checked>
<label class="form-check-label" for="origin">play output</label>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="pb-5 text-center container">
<div class="btn-group">
<button class="btn btn-primary btn-lg" type="button">
Shift pitch
</button>
<button type="button" class="btn btn-lg btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><h6 class="dropdown-header">STFT window size</h6></li>
<li><a class="dropdown-item active" href="#">1k</a></li>
<li><a class="dropdown-item" href="#">2k</a></li>
<li><a class="dropdown-item" href="#">3k</a></li>
<li><a class="dropdown-item" href="#">4k</a></li>
<li><h6 class="dropdown-header">STFT window overlap</h6></li>
<li><a class="dropdown-item" href="#">4</a></li>
<li><a class="dropdown-item" href="#">8</a></li>
<li><a class="dropdown-item" href="#">16</a></li>
<li><a class="dropdown-item active" href="#">32</a></li>
<li><h6 class="dropdown-header">STFT options</h6></li>
<li><a class="dropdown-item active" href="#">normalize</a></li>
</ul>
</div>
</section>
<div class="album py-5 bg-light">
<div id="container" class="container">
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-4 g-4">
<div class="col">
<div class="card shadow-sm">
<div class="card-header">
<div class="form-check form-switch">
<label class="form-check-label" for="pitch1">Pitchshift 1</label>
<input class="form-check-input" type="checkbox" role="switch" id="pitch1" checked>
</div>
</div>
<div class="card-body">
<label class="form-label" for="semi1">
Semitone <span class="badge rounded-pill text-bg-light align-text-top">+12</span>
</label>
<input type="range" class="form-range" id="semi1">
<label class="form-label" for="cent1">
Cent <span class="badge rounded-pill text-bg-light align-text-top">-100</span>
</label>
<input type="range" class="form-range" id="cent1">
</div>
</div>
</div>
<div class="col">
<div class="card shadow-sm">
<div class="card-header">
<div class="form-check form-switch">
<label class="form-check-label" for="pitch2">Pitchshift 2</label>
<input class="form-check-input" type="checkbox" role="switch" id="pitch2" checked>
</div>
</div>
<div class="card-body">
<label class="form-label" for="semi2">
Semitone <span class="badge rounded-pill text-bg-light align-text-top">+12</span>
</label>
<input type="range" class="form-range" id="semi2">
<label class="form-label" for="cent2">
Cent <span class="badge rounded-pill text-bg-light align-text-top">-100</span>
</label>
<input type="range" class="form-range" id="cent2">
</div>
</div>
</div>
<div class="col">
<div class="card shadow-sm">
<div class="card-header">
<div class="form-check form-switch">
<label class="form-check-label" for="pitch3">Pitchshift 3</label>
<input class="form-check-input" type="checkbox" role="switch" id="pitch3" checked>
</div>
</div>
<div class="card-body">
<label class="form-label" for="semi3">
Semitone <span class="badge rounded-pill text-bg-light align-text-top">+12</span>
</label>
<input type="range" class="form-range" id="semi3">
<label class="form-label" for="cent3">
Cent <span class="badge rounded-pill text-bg-light align-text-top">-100</span>
</label>
<input type="range" class="form-range" id="cent3">
</div>
</div>
</div>
<div class="col">
<div class="card shadow-sm">
<div class="card-header">
<div class="form-check form-switch">
<label class="form-check-label" for="timbre">Timbreshift</label>
<input class="form-check-input" type="checkbox" role="switch" id="timbre" checked>
</div>
</div>
<div class="card-body">
<label class="form-label" for="q">
Quefrency <span class="badge rounded-pill text-bg-light align-text-top">1</span>
</label>
<input type="range" class="form-range" id="q">
<label class="form-label" for="d">
Distortion <span class="badge rounded-pill text-bg-light align-text-top">1</span>
</label>
<input type="range" class="form-range" id="d">
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<footer class="text-muted py-5">
<div class="container">
<p>View on <a href="https://github.com/jurihock/stftPitchShift">GitHub</a></p>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/greghub/green-audio-player/dist/js/green-audio-player.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/higuma/wav-audio-encoder-js/lib/WavAudioEncoder.min.js"></script>
<script>
GreenAudioPlayer.init({
selector: '.audio',
stopOthersOnPlay: true
});
</script>
</body>
</html>