From fd710a24cb067d72cf128ecae9391d3db458614e Mon Sep 17 00:00:00 2001 From: IgrikXD Date: Mon, 1 Feb 2021 18:44:36 +0300 Subject: [PATCH] Adding the ability to work with new arguments --- testam.sh | 2 +- testfmrds.sh | 2 +- testfreedv.sh | 2 +- testnfm.sh | 2 +- testopera.sh | 2 +- testpocsag.sh | 2 +- testrtty.sh | 2 +- testspectrum.sh | 2 +- testssb.sh | 2 +- testsstv.sh | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/testam.sh b/testam.sh index efa8f99..539f01a 100755 --- a/testam.sh +++ b/testam.sh @@ -2,6 +2,6 @@ #TODO using the AM mode from librpitx echo Need to implement -(while true; do cat sampleaudio.wav; done) | csdr convert_i16_f \ +(while true; do "$2"; done) | csdr convert_i16_f \ | csdr gain_ff 4.0 | csdr dsb_fc \ | sudo ./rpitx -i - -m IQFLOAT -f "$1" -s 48000 diff --git a/testfmrds.sh b/testfmrds.sh index 8a74c73..0eccc8d 100755 --- a/testfmrds.sh +++ b/testfmrds.sh @@ -1,3 +1,3 @@ #!/bin/sh -sudo ./pifmrds -freq "$1" -audio src/pifmrds/stereo_44100.wav +sudo ./pifmrds -freq "$1" -audio "$2" diff --git a/testfreedv.sh b/testfreedv.sh index 3e4320d..f204e37 100755 --- a/testfreedv.sh +++ b/testfreedv.sh @@ -1,3 +1,3 @@ #!/bin/sh -sudo ./freedv src/freedv/VCO800XA.rf "$1" 400 +sudo ./freedv "$2" "$1" 400 diff --git a/testnfm.sh b/testnfm.sh index 8c1a2aa..15f0996 100755 --- a/testnfm.sh +++ b/testnfm.sh @@ -4,7 +4,7 @@ # Need to use a direct FM modulation with librpitx and not using IQ : TODO echo "If you need to test broadcast FM, use PiFMRDS" #(while true; do cat sampleaudio.wav; done) | csdr convert_i16_f | csdr gain_ff 2500 | sudo ./sendiq -i /dev/stdin -s 24000 -f 434e6 -t float 1 -(while true; do cat sampleaudio.wav; done) | csdr convert_i16_f \ +(while true; do cat "$2"; done) | csdr convert_i16_f \ | csdr gain_ff 7000 | csdr convert_f_samplerf 20833 \ | sudo ./rpitx -i- -m RF -f "$1" diff --git a/testopera.sh b/testopera.sh index 57e2915..5fe2462 100755 --- a/testopera.sh +++ b/testopera.sh @@ -1,5 +1,5 @@ #!/bin/sh -sudo ./piopera F5OEO 0.5 "$1" +sudo ./piopera "$2" 0.5 "$1" diff --git a/testpocsag.sh b/testpocsag.sh index 4639c7b..8c083b9 100755 --- a/testpocsag.sh +++ b/testpocsag.sh @@ -1,3 +1,3 @@ #!/bin/sh -printf "1:YOURCALL\n2: Hello world" | sudo ./pocsag -f "$1" +printf "$2" | sudo ./pocsag -f "$1" diff --git a/testrtty.sh b/testrtty.sh index ed8dfd2..eab7b95 100755 --- a/testrtty.sh +++ b/testrtty.sh @@ -1,2 +1,2 @@ #!/bin/bash -sudo ./pirtty "$1" 1000 "the quick brown fox jumps over the lazy dog" +sudo ./pirtty "$1" 1000 "$2" diff --git a/testspectrum.sh b/testspectrum.sh index 5178284..8e24fe1 100755 --- a/testspectrum.sh +++ b/testspectrum.sh @@ -1,5 +1,5 @@ #!/bin/sh -convert BBC.jpg -flip -quantize YUV -dither FloydSteinberg -colors 4 \ +convert "$2" -flip -quantize YUV -dither FloydSteinberg -colors 4 \ -interlace partition picture.yuv sudo ./spectrumpaint picture.Y "$1" 100000 diff --git a/testssb.sh b/testssb.sh index 99acb0c..cae1c1b 100755 --- a/testssb.sh +++ b/testssb.sh @@ -1,6 +1,6 @@ #!/bin/sh -(while true; do cat sampleaudio.wav; done) | csdr convert_i16_f \ +(while true; do cat "$2"; done) | csdr convert_i16_f \ | csdr fir_interpolate_cc 2 | csdr dsb_fc \ | csdr bandpass_fir_fft_cc 0.002 0.06 0.01 | csdr fastagc_ff \ | sudo ./sendiq -i /dev/stdin -s 96000 -f "$1" -t float diff --git a/testsstv.sh b/testsstv.sh index 22f48e6..c1de579 100755 --- a/testsstv.sh +++ b/testsstv.sh @@ -1,4 +1,4 @@ #!/bin/sh -convert -depth 8 BBC.jpg picture.rgb +convert -depth 8 "$2" picture.rgb sudo ./pisstv picture.rgb "$1"