Skip to content

Commit 17628a9

Browse files
time and amp zoom sliders, names
1 parent 6736d00 commit 17628a9

4 files changed

Lines changed: 74 additions & 10 deletions

File tree

all-panels/index.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,18 @@
1515
<script src="../waves.js"></script>
1616
<script src="../widget.js"></script>
1717
<script src="../interaction.js"></script>
18+
<title>Digital Audio Workbench</title>
1819
</head>
1920
<body>
2021
<main>
2122
<div class="timeline">
23+
24+
<h1>Digital Audio Workbench</h1>
25+
26+
<h2>By Arden Butterfield, Josh Rohs, Travis J. West & Marcelo M. Wanderley
27+
with contributions by Eduardo Meneses, Christian Frisson, Erivan Duarte, Laurent Tarabout, and Maxwell Gentili-Morin</h2>
28+
<h3>Copyright IDMIL/McGill University, 2025</h3>
29+
2230
<div class="section" id="input-section">
2331
<div class="titlebar">
2432
<div class="section-title">
@@ -140,13 +148,13 @@ <h2>Reconstructed</h2>
140148
</div>
141149
</div>
142150
</main>
143-
<footer>
144-
<div>Digital Audio Workbench </div>
145-
<div>By Josh Rohs, Travis J. West, Arden Butterfield & Marcelo M. Wanderley </div>
146-
<div>with contributions by Eduardo Meneses, Christian Frisson, and Erivan Duarte</div>
147-
<div>Copyright <a href="//www-new.idmil.org/">IDMIL</a>/McGill University, 2020 </div>
148-
</footer>
149-
151+
<div class="global-panel">
152+
<div id="global-panel-collapse-button" onclick="collapseGlobalPanel()"></div>
153+
<div class="contents">
154+
<div class="slider" id="time-zoom-slider"></div>
155+
<div class="slider" id="amp-zoom-slider"></div>
156+
</div>
157+
</div>
150158
<script>
151159
createWidgets();
152160
</script>

interaction.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,14 @@ function collapseClick(id) {
77
collapse.style.display = 'none';
88
document.getElementById(id).textContent = "\u26F6";
99
}
10+
}
11+
12+
function collapseGlobalPanel() {
13+
let collapse = document.getElementById("global-panel-collapse-button").parentNode.querySelector('.contents');
14+
if (collapse.style.display === 'none') {
15+
collapse.style.display = 'block';
16+
} else {
17+
collapse.style.display = 'none';
18+
}
19+
1020
}

styles.css

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
body {
22
font-family: Cantarell, sans-serif;
3+
margin: 0;
34
}
45

6+
h1 {
7+
text-align: center;
8+
}
9+
10+
h2 {
11+
font-size: 1em;
12+
text-align: center;
13+
font-weight: normal;
14+
}
15+
16+
h3 {
17+
font-style: italic;
18+
text-align: center;
19+
font-weight: normal;
20+
}
521
footer{
622
font-family: Cantarell, sans-serif;
7-
padding: 5px 10px 0px;
23+
padding: 5px 10px 0;
824
background : lightgrey;
925
font-size: 9pt;
1026
color: grey;
@@ -67,4 +83,32 @@ main {
6783

6884
.slider {
6985
position: relative;
70-
}
86+
}
87+
88+
.global-panel {
89+
bottom: 30px;
90+
right: 30px;
91+
border: 1px solid grey;
92+
border-radius: 5px;
93+
background-color: lightgrey;
94+
position: fixed;
95+
display: flex;
96+
gap: 10px;
97+
min-height: 40px;
98+
}
99+
100+
101+
#global-panel-collapse-button:hover {
102+
background-color: darkblue;
103+
}
104+
105+
#global-panel-collapse-button {
106+
width: 20px;
107+
background: blue;
108+
}
109+
110+
.global-panel .contents {
111+
padding: 1em;
112+
113+
}
114+

widget.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ let sliderIdLookups = {
107107
'sample-rate-slider' : SampleRateSlider,
108108
'dither-slider' : DitherSlider,
109109
'quantization-slider' : BitDepthSlider,
110-
'delta-sigma-step-slider' : DeltaSigmaStepSlider
110+
'delta-sigma-step-slider' : DeltaSigmaStepSlider,
111+
'time-zoom-slider' : TimeZoomSlider,
112+
'amp-zoom-slider' : AmpZoomSlider
111113
}
112114

113115
function createWidgets() {

0 commit comments

Comments
 (0)