Skip to content

Commit b090ded

Browse files
committed
style(waveform, pad): smooth waveform ballistics and theme-sync pads
1 parent 15811f8 commit b090ded

4 files changed

Lines changed: 280 additions & 246 deletions

File tree

src/ui/player/deckstrip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ static void DeckStrip_Draw(Component *base) {
411411
Color BL_HIGH = {246, 251, 246, 255};
412412

413413
float smLo = 0, smMi = 0, smHi = 0;
414-
const float ATK = 1.0f; // Instant
415-
const float REL = 1.0f;
414+
const float ATK = 0.9f;
415+
const float REL = 0.12f;
416416

417417
for (int xi = 0; xi < (int)ww; xi++) {
418418
float r0 = (float)xi / ww;

src/ui/player/waveform.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ static void Waveform_Draw(Component *base) {
357357
const float HIGH_SCALE = 1.0f;
358358
const float NORM = 2.0f / 255.0f; // Boosted to 2.0x to fill canvas and prevent empty space
359359
const float PWV2_HSCALE = waveCenter / 31.0f;
360-
const float ATK = 1.0f; // Instant attack (no smoothing)
361-
const float REL = 1.0f; // Instant release
360+
const float ATK = 0.9f; // Fast attack
361+
const float REL = 0.12f; // Smooth release for that 'tail' look
362362

363363
// hardware-accurate 3-band palette (Blue/Green/White)
364364
Color BL_LOW = {16, 105, 238, 255}; // Teensy col_blue

0 commit comments

Comments
 (0)