ncmixer

ncurses audio mixer for DJ'ing
git clone git://git.2f30.org/ncmixer
Log | Files | Refs | README | LICENSE

commit 83b6adab3a4bb63687c5f192bdf64cee1c1cd44b
parent 513e4e6e4ab90ee8750195b6db7af724501b3250
Author: lostd <lostd@2f30.org>
Date:   Sat, 11 Jun 2016 00:16:29 +0100

Display crossfader step and position values

Diffstat:
Mncmixer.c | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/ncmixer.c b/ncmixer.c @@ -311,6 +311,7 @@ draw_status(void) printw("[MON:%c] [CH1:%c]", inputs[1].monitor != 0 ? '*' : ' ', inputs[1].clifd != -1 ? '*' : ' '); + printw("\n"); } void @@ -318,7 +319,6 @@ draw_xfader(void) { int start, end, len, center, pos, i; - clrtoeol(); if (COLS < strlen(" -|x|- ")) return; @@ -331,6 +331,15 @@ draw_xfader(void) else pos = center + ceil((len / 2) * fabsf(xfpos)); + clrtoeol(); + move(getcury(stdscr), center - strlen("[step: 0.000000") / 2); + printw("step: %0.6f\n", step); + clrtoeol(); + move(getcury(stdscr), center - strlen("[pos: +0.000000") / 2); + printw("pos: %+0.6f\n", xfpos); + printw("\n"); + + clrtoeol(); move(getcury(stdscr), start); for (i = 0; i < len; i++) printw("-"); @@ -347,7 +356,6 @@ void draw(void) { draw_status(); - printw("\n\n"); draw_xfader(); refresh(); }