From 4591f3f5a13b363a93d63f8dec7c06deaad92714 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 10 Dec 2023 10:38:01 +0300 Subject: [PATCH] More perfomance --- audio_vis.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/audio_vis.sh b/audio_vis.sh index 9418577..8eefc36 100644 --- a/audio_vis.sh +++ b/audio_vis.sh @@ -1,4 +1,5 @@ #!/bin/ash -clear -arecord -q --period-size=50 --buffer-size=150 -r 4000 --disable-softvol -f U8 -t raw -D loopout | hexdump -e '"%02o\n"' | tr -d '*' | xargs -n 50 -r ./micro-utils/bin/spark -n -r +cols=30 +clear +arecord -q --period-size=50 --buffer-size=150 -r 4000 -f U8 -t raw -D loopout | hexdump -e ''$(expr $cols + 1)'/2 "%o ""\n"' | tr -d '*' | xargs -n $cols -r ./micro-utils/bin/spark -n