From 525b00fc508f8a46ce55ae4cb31bc0650f4c7ad8 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 16 Dec 2023 13:05:23 -0500 Subject: [PATCH] savelocalwavs option added. --- tojam | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tojam b/tojam index d560ca0..5a4cc70 100755 --- a/tojam +++ b/tojam @@ -105,6 +105,7 @@ configure_ninjam() { while [[ $menuCode -ne 1 ]]; do settings=( "anonymous" "Login in anonymously: ($anonymous)" + "save local wavs" "Save Individual Tracks: (${saveLocalWavs})" "save mixdown" "Save Mixdown: (${saveMixdown})" "save source files" "Save Source Files: (${saveSourceFiles/-nosavesourcefiles/false recommended})" "sound driver" "Sound Driver: (${soundDriver%% *})" @@ -128,6 +129,15 @@ configure_ninjam() { sed -i "s/^anonymous=.*/anonymous=\"${anonymous}\"/" "${config}/config" && dialog --msgbox "Anonymous login set to ${anonymous}." -1 -1 ;; + "save local wavs") + saveLocalWavs="$(dialog --yesno "Save individual tracks? (Output is in wav format.)" -1 -1 --stdout)" + saveLocalWavs=$? + [[ ${saveLocalWavs} -eq 255 ]] && continue + saveLocalWavs="${saveLocalWavs/0/true}" + saveLocalWavs="${saveLocalWavs/1/false}" + sed -i "s/^saveLocalWavs=.*/saveLocalWavs=\"${saveLocalWavs}\"/" "${config}/config" && + dialog --msgbox "Save individual tracks set to ${saveLocalWavs}." -1 -1 + ;; "save mixdown") saveMixdown="$(dialog --yes-label "disabled" \ --extra-button \ @@ -248,6 +258,7 @@ if ! [[ -r "${config}/config" ]]; then { echo 'alsaParameters=""'; echo 'anonymous="true"'; echo 'oggBitrate="128"'; + echo 'saveLocalWavs="false"'; echo 'saveMixdown="disabled"'; echo 'saveSourceFiles="false"'; echo 'soundDriver="jack"';