Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@
width: 100px;
}

.slider-container.vertical > label {
margin-top: 15px;
}

.mixer {
background: var(--deck-bg);
border-radius: 15px;
Expand Down Expand Up @@ -330,7 +334,7 @@
width: 80%;
flex: 1;
background: #222;
border-radius: 5px;
border-radius: 2px;
position: relative;
overflow: hidden;
border: 1px solid rgba(0,0,0,0.5);
Expand All @@ -343,7 +347,7 @@
left: 0;
width: 100%;
height: var(--vu-level, 0%);
background: linear-gradient(to top, #4ecdc4, #ff6b6b, #f0e68c);
background: linear-gradient(to top, #00ff00 0%, #00ff00 60%, #ffff00 60%, #ffff00 85%, #ff0000 85%, #ff0000 100%);
transition: height 0.05s linear;
}

Expand Down
8 changes: 4 additions & 4 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,10 @@ class Deck {
const barR = document.getElementById(`vuBar${this.id}R`);

if (barL) {
barL.style.setProperty('--vu-level', `${Math.min(peakL * 100, 100)}%`);
barL.style.setProperty('--vu-level', `${Math.min(peakL * 1.5 * 100, 100)}%`);
}
if (barR) {
barR.style.setProperty('--vu-level', `${Math.min(peakR * 100, 100)}%`);
barR.style.setProperty('--vu-level', `${Math.min(peakR * 1.5 * 100, 100)}%`);
}
}

Expand Down Expand Up @@ -649,10 +649,10 @@ class Deck {
const barR = document.getElementById('vuBarMasterR');

if (barL) {
barL.style.setProperty('--vu-level', `${Math.min(peakL * 100, 100)}%`);
barL.style.setProperty('--vu-level', `${Math.min(peakL * 1.5 * 100, 100)}%`);
}
if (barR) {
barR.style.setProperty('--vu-level', `${Math.min(peakR * 100, 100)}%`);
barR.style.setProperty('--vu-level', `${Math.min(peakR * 1.5 * 100, 100)}%`);
}
}

Expand Down