From 8f0a07d5933e6fbca8d8004b7a35b8f7d8b7dabc Mon Sep 17 00:00:00 2001 From: donluca <51792528+donluca@users.noreply.github.com> Date: Tue, 28 Feb 2023 19:20:57 +0100 Subject: [PATCH 01/12] Complete rewrite using cUrl --- getsysex.sh | 102 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 67 insertions(+), 35 deletions(-) diff --git a/getsysex.sh b/getsysex.sh index fa731536..43acf837 100755 --- a/getsysex.sh +++ b/getsysex.sh @@ -1,43 +1,75 @@ -#!/bin/sh +#!/bin/bash # Get voices from # https://yamahablackboxes.com/collection/yamaha-dx7-synthesizer/patches/ -mkdir -p sysex/voice/ +CURL_OPTIONS="-L --connect-timeout 15 --max-time 120 --retry 3 --retry-delay 5 --show-error" +ALLOW_INSECURE_SSL="true" -DIR="https://yamahablackboxes.com/patches/dx7/factory" +# Add here the links you wish to download from, at the bottom of the list +# First put the link to the SysEx file you wish to download, followed by a space and then the filename on Minidexed +# Please note that files on Minidexed need to start with a number, in this case the next link should be 000028_something.syx +LINKS=() +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1a.syx 000000_rom1a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1b.syx 000001_rom1b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2a.syx 000002_rom2a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2b.syx 000003_rom2b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101a.syx 000004_vrc101a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101b.syx 000005_vrc101b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102a.syx 000006_vrc102a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102b.syx 000007_vrc102b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103a.syx 000008_vrc103a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103b.syx 000009_vrc103b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104a.syx 000010_vrc104a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104b.syx 000011_vrc104b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105a.syx 000012_vrc105a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105b.syx 000013_vrc105b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106a.syx 000014_vrc106a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106b.syx 000015_vrc106b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107a.syx 000016_vrc107a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107b.syx 000017_vrc107b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108a.syx 000018_vrc108a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108b.syx 000019_vrc108b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109a.syx 000020_vrc109a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109b.syx 000021_vrc109b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110a.syx 000022_vrc110a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110b.syx 000023_vrc110b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111a.syx 000024_vrc111a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111b.syx 000025_vrc111b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112a.syx 000026_vrc112a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112b.syx 000027_vrc112b.syx") +# LINKS+=("https://linkToWebsite.com/something.syx 000028_something.syx") -# wget -c "${DIR}"/rom1a.syx -O sysex/voice/000000_rom1a.syx -# wget -c "${DIR}"/rom1b.syx -O sysex/voice/000001_rom1b.syx -# wget -c "${DIR}"/rom2a.syx -O sysex/voice/000002_rom2a.syx -# wget -c "${DIR}"/rom2b.syx -O sysex/voice/000003_rom2b.syx -wget -c "${DIR}"/rom3a.syx -O sysex/voice/000000_rom3a.syx -wget -c "${DIR}"/rom3b.syx -O sysex/voice/000001_rom3b.syx -wget -c "${DIR}"/rom4a.syx -O sysex/voice/000002_rom4a.syx -wget -c "${DIR}"/rom4b.syx -O sysex/voice/000003_rom4b.syx +mkdir -p sysex/voice/ -DIR="https://yamahablackboxes.com/patches/dx7/vrc" +# Check internet connection, https and if website is up +curl ${CURL_OPTIONS} -s -I -X POST "https://yamahablackboxes.com" > /dev/null 2>&1 +case $? in + 0) + ;; + 60) + if [[ "${ALLOW_INSECURE_SSL}" == "true" ]] + then + CURL_OPTIONS+=" --insecure" + else + echo "Error establishing secure connection" + fi + ;; + *) + echo "No Internet connection or the website is down" + exit 1 + ;; +esac -wget -c "${DIR}"/vrc101b.syx -O sysex/voice/000004_vrc101b.syx -wget -c "${DIR}"/vrc102a.syx -O sysex/voice/000005_vrc102a.syx -wget -c "${DIR}"/vrc102b.syx -O sysex/voice/000006_vrc102b.syx -wget -c "${DIR}"/vrc103a.syx -O sysex/voice/000007_vrc103a.syx -wget -c "${DIR}"/vrc103b.syx -O sysex/voice/000008_vrc103b.syx -wget -c "${DIR}"/vrc104a.syx -O sysex/voice/000009_vrc104a.syx -wget -c "${DIR}"/vrc104b.syx -O sysex/voice/000010_vrc104b.syx -wget -c "${DIR}"/vrc105a.syx -O sysex/voice/000011_vrc105a.syx -wget -c "${DIR}"/vrc105b.syx -O sysex/voice/000012_vrc105b.syx -wget -c "${DIR}"/vrc106a.syx -O sysex/voice/000013_vrc106a.syx -wget -c "${DIR}"/vrc106b.syx -O sysex/voice/000014_vrc106b.syx -wget -c "${DIR}"/vrc107a.syx -O sysex/voice/000015_vrc107a.syx -wget -c "${DIR}"/vrc107b.syx -O sysex/voice/000016_vrc107b.syx -wget -c "${DIR}"/vrc108a.syx -O sysex/voice/000017_vrc108a.syx -wget -c "${DIR}"/vrc108b.syx -O sysex/voice/000018_vrc108b.syx -wget -c "${DIR}"/vrc109a.syx -O sysex/voice/000019_vrc109a.syx -wget -c "${DIR}"/vrc109b.syx -O sysex/voice/000020_vrc109b.syx -wget -c "${DIR}"/vrc110a.syx -O sysex/voice/000021_vrc110a.syx -wget -c "${DIR}"/vrc110b.syx -O sysex/voice/000022_vrc110b.syx -wget -c "${DIR}"/vrc111a.syx -O sysex/voice/000023_vrc111a.syx -wget -c "${DIR}"/vrc111b.syx -O sysex/voice/000024_vrc111b.syx -wget -c "${DIR}"/vrc112a.syx -O sysex/voice/000025_vrc112a.syx -wget -c "${DIR}"/vrc112b.syx -O sysex/voice/000026_vrc112b.syx +# Download all the files in the list +for i in "${LINKS[@]}"; +do + LINK=`echo "${i}" | awk '{print $1}'` + FILE=`echo "${i}" | awk '{print $2}'` + echo "Downloading ${LINK} ..." + curl -o "sysex/voice/${FILE}" ${CURL_OPTIONS} "${LINK}" > /dev/null 2>&1 + if (( $? > 0 )) + then + echo "Download failed" + fi +done From 0a9c6fb5247b8de26c4cf827c3c1563abb17bcb3 Mon Sep 17 00:00:00 2001 From: donluca <51792528+donluca@users.noreply.github.com> Date: Tue, 28 Feb 2023 19:35:40 +0100 Subject: [PATCH 02/12] Small fix Forgot to add "exit" if a connection cannot be established due to secure connection issues. --- getsysex.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/getsysex.sh b/getsysex.sh index 43acf837..ab4561dd 100755 --- a/getsysex.sh +++ b/getsysex.sh @@ -53,6 +53,7 @@ case $? in CURL_OPTIONS+=" --insecure" else echo "Error establishing secure connection" + exit 2 fi ;; *) From a1ab1c24270f74eff254bbe4f9ed33e85e3a3347 Mon Sep 17 00:00:00 2001 From: Luca <51792528+donluca@users.noreply.github.com> Date: Sat, 1 Apr 2023 17:37:13 +0200 Subject: [PATCH 03/12] Made it easier to add links There was a bunch of nonsense which I've cleaned up. --- getsysex.sh | 71 +++++++++++++++++++++++++++-------------------------- 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/getsysex.sh b/getsysex.sh index ab4561dd..3d4b260d 100755 --- a/getsysex.sh +++ b/getsysex.sh @@ -7,38 +7,36 @@ CURL_OPTIONS="-L --connect-timeout 15 --max-time 120 --retry 3 --retry-delay 5 - ALLOW_INSECURE_SSL="true" # Add here the links you wish to download from, at the bottom of the list -# First put the link to the SysEx file you wish to download, followed by a space and then the filename on Minidexed -# Please note that files on Minidexed need to start with a number, in this case the next link should be 000028_something.syx LINKS=() -LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1a.syx 000000_rom1a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1b.syx 000001_rom1b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2a.syx 000002_rom2a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2b.syx 000003_rom2b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101a.syx 000004_vrc101a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101b.syx 000005_vrc101b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102a.syx 000006_vrc102a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102b.syx 000007_vrc102b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103a.syx 000008_vrc103a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103b.syx 000009_vrc103b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104a.syx 000010_vrc104a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104b.syx 000011_vrc104b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105a.syx 000012_vrc105a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105b.syx 000013_vrc105b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106a.syx 000014_vrc106a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106b.syx 000015_vrc106b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107a.syx 000016_vrc107a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107b.syx 000017_vrc107b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108a.syx 000018_vrc108a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108b.syx 000019_vrc108b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109a.syx 000020_vrc109a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109b.syx 000021_vrc109b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110a.syx 000022_vrc110a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110b.syx 000023_vrc110b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111a.syx 000024_vrc111a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111b.syx 000025_vrc111b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112a.syx 000026_vrc112a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112b.syx 000027_vrc112b.syx") -# LINKS+=("https://linkToWebsite.com/something.syx 000028_something.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112b.syx") +# LINKS+=("https://linkToWebsite.com/something.syx") mkdir -p sysex/voice/ @@ -63,14 +61,17 @@ case $? in esac # Download all the files in the list +declare -i count for i in "${LINKS[@]}"; do - LINK=`echo "${i}" | awk '{print $1}'` - FILE=`echo "${i}" | awk '{print $2}'` - echo "Downloading ${LINK} ..." - curl -o "sysex/voice/${FILE}" ${CURL_OPTIONS} "${LINK}" > /dev/null 2>&1 + printf -v j "%05d" $count + FILENAME="$j"_`basename "${i}"` + echo "Downloading ${i} ..." + curl -o "sysex/voice/${FILENAME}" ${CURL_OPTIONS} "${i}" > /dev/null 2>&1 if (( $? > 0 )) then echo "Download failed" + else + count+=1 fi done From a273a7896c5af2ff3a87cd32fe3baa0eee116f8f Mon Sep 17 00:00:00 2001 From: Luca <51792528+donluca@users.noreply.github.com> Date: Sat, 1 Apr 2023 17:41:51 +0200 Subject: [PATCH 04/12] Fixed an oversight Added a 0 to the padding to match the description on the wiki where it states that the file name should be 000000_something.syx (six zero padding). --- getsysex.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getsysex.sh b/getsysex.sh index 3d4b260d..fab818d3 100755 --- a/getsysex.sh +++ b/getsysex.sh @@ -64,7 +64,7 @@ esac declare -i count for i in "${LINKS[@]}"; do - printf -v j "%05d" $count + printf -v j "%06d" $count FILENAME="$j"_`basename "${i}"` echo "Downloading ${i} ..." curl -o "sysex/voice/${FILENAME}" ${CURL_OPTIONS} "${i}" > /dev/null 2>&1 From 1e2e9a32a770b3e333e01899e8115a12510a9e9b Mon Sep 17 00:00:00 2001 From: Luca <51792528+donluca@users.noreply.github.com> Date: Sun, 2 Apr 2023 22:11:42 +0200 Subject: [PATCH 05/12] Reverted to an older approach Reverted code to an older approach and made the target directory more visible --- getsysex.sh | 75 +++++++++++++++++++++++++++-------------------------- 1 file changed, 38 insertions(+), 37 deletions(-) diff --git a/getsysex.sh b/getsysex.sh index fab818d3..50a409c1 100755 --- a/getsysex.sh +++ b/getsysex.sh @@ -6,39 +6,43 @@ CURL_OPTIONS="-L --connect-timeout 15 --max-time 120 --retry 3 --retry-delay 5 --show-error" ALLOW_INSECURE_SSL="true" +TARGET_DIR="sysex/voice/" + # Add here the links you wish to download from, at the bottom of the list +# First put the link to the SysEx file you wish to download, followed by a space and then the filename on Minidexed +# Please note that files on Minidexed need to start with a number, in this case the next link should be 000028_something.syx LINKS=() -LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112b.syx") -# LINKS+=("https://linkToWebsite.com/something.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1a.syx 000000_rom1a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1b.syx 000001_rom1b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2a.syx 000002_rom2a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2b.syx 000003_rom2b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101a.syx 000004_vrc101a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101b.syx 000005_vrc101b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102a.syx 000006_vrc102a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102b.syx 000007_vrc102b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103a.syx 000008_vrc103a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103b.syx 000009_vrc103b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104a.syx 000010_vrc104a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104b.syx 000011_vrc104b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105a.syx 000012_vrc105a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105b.syx 000013_vrc105b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106a.syx 000014_vrc106a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106b.syx 000015_vrc106b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107a.syx 000016_vrc107a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107b.syx 000017_vrc107b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108a.syx 000018_vrc108a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108b.syx 000019_vrc108b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109a.syx 000020_vrc109a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109b.syx 000021_vrc109b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110a.syx 000022_vrc110a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110b.syx 000023_vrc110b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111a.syx 000024_vrc111a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111b.syx 000025_vrc111b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112a.syx 000026_vrc112a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112b.syx 000027_vrc112b.syx") +# LINKS+=("https://linkToWebsite.com/something.syx 000028_something.syx") -mkdir -p sysex/voice/ +mkdir -p "$TARGET_DIR" # Check internet connection, https and if website is up curl ${CURL_OPTIONS} -s -I -X POST "https://yamahablackboxes.com" > /dev/null 2>&1 @@ -61,17 +65,14 @@ case $? in esac # Download all the files in the list -declare -i count for i in "${LINKS[@]}"; do - printf -v j "%06d" $count - FILENAME="$j"_`basename "${i}"` - echo "Downloading ${i} ..." - curl -o "sysex/voice/${FILENAME}" ${CURL_OPTIONS} "${i}" > /dev/null 2>&1 + LINK=`echo "${i}" | awk '{print $1}'` + FILE=`echo "${i}" | awk '{print $2}'` + echo "Downloading ${LINK} ..." + curl -o "${TARGET_DIR}${FILE}" ${CURL_OPTIONS} "${LINK}" > /dev/null 2>&1 if (( $? > 0 )) then echo "Download failed" - else - count+=1 fi done From 0b2a0be31c5433fa340cc0c57f6b6ed52779fa5d Mon Sep 17 00:00:00 2001 From: Luca <51792528+donluca@users.noreply.github.com> Date: Tue, 18 Apr 2023 19:51:49 +0200 Subject: [PATCH 06/12] Add files via upload --- userBank.syx | Bin 0 -> 4104 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 userBank.syx diff --git a/userBank.syx b/userBank.syx new file mode 100644 index 0000000000000000000000000000000000000000..729590a4161b9db84af76e4a265c8711693f6d87 GIT binary patch literal 4104 zcmez1%)qI@kPHC~>I@7F77PqbG!RIJ7-|Fr3>?ZpdkiH!{X9by!u&m*T}SN)hrnp~ zkEXxT{5M+ujF!LDuMkG-A8@5UTK|r=KStYMqwUYp_V;N2W3>M@+W&;~zg@lq07~x> A Date: Tue, 18 Apr 2023 19:52:41 +0200 Subject: [PATCH 07/12] Update getsysex.sh --- getsysex.sh | 66 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/getsysex.sh b/getsysex.sh index 50a409c1..802a5fbf 100755 --- a/getsysex.sh +++ b/getsysex.sh @@ -12,35 +12,35 @@ TARGET_DIR="sysex/voice/" # First put the link to the SysEx file you wish to download, followed by a space and then the filename on Minidexed # Please note that files on Minidexed need to start with a number, in this case the next link should be 000028_something.syx LINKS=() -LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1a.syx 000000_rom1a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1b.syx 000001_rom1b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2a.syx 000002_rom2a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2b.syx 000003_rom2b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101a.syx 000004_vrc101a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101b.syx 000005_vrc101b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102a.syx 000006_vrc102a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102b.syx 000007_vrc102b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103a.syx 000008_vrc103a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103b.syx 000009_vrc103b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104a.syx 000010_vrc104a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104b.syx 000011_vrc104b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105a.syx 000012_vrc105a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105b.syx 000013_vrc105b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106a.syx 000014_vrc106a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106b.syx 000015_vrc106b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107a.syx 000016_vrc107a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107b.syx 000017_vrc107b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108a.syx 000018_vrc108a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108b.syx 000019_vrc108b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109a.syx 000020_vrc109a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109b.syx 000021_vrc109b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110a.syx 000022_vrc110a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110b.syx 000023_vrc110b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111a.syx 000024_vrc111a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111b.syx 000025_vrc111b.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112a.syx 000026_vrc112a.syx") -LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112b.syx 000027_vrc112b.syx") -# LINKS+=("https://linkToWebsite.com/something.syx 000028_something.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1a.syx 00001_rom1a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom1b.syx 00002_rom1b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2a.syx 00003_rom2a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/factory/rom2b.syx 00004_rom2b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101a.syx 00005_vrc101a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc101b.syx 00006_vrc101b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102a.syx 00007_vrc102a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc102b.syx 00008_vrc102b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103a.syx 00009_vrc103a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc103b.syx 00010_vrc103b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104a.syx 00011_vrc104a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc104b.syx 00012_vrc104b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105a.syx 00013_vrc105a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc105b.syx 00014_vrc105b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106a.syx 00015_vrc106a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc106b.syx 00016_vrc106b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107a.syx 00017_vrc107a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc107b.syx 00018_vrc107b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108a.syx 00019_vrc108a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc108b.syx 00020_vrc108b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109a.syx 00021_vrc109a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc109b.syx 00022_vrc109b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110a.syx 00023_vrc110a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc110b.syx 00024_vrc110b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111a.syx 00025_vrc111a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc111b.syx 00026_vrc111b.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112a.syx 00027_vrc112a.syx") +LINKS+=("https://yamahablackboxes.com/patches/dx7/vrc/vrc112b.syx 00028_vrc112b.syx") +# LINKS+=("https://linkToWebsite.com/something.syx 00029_something.syx") mkdir -p "$TARGET_DIR" @@ -64,6 +64,8 @@ case $? in ;; esac +declare -i count +count=1 # Download all the files in the list for i in "${LINKS[@]}"; do @@ -74,5 +76,11 @@ do if (( $? > 0 )) then echo "Download failed" + else + count+=1 fi done + +# Download the user bank +printf -v j "%05d" $count +curl -o "${TARGET_DIR}${j}_userBank.syx" ${CURL_OPTIONS} https://github.com/donluca/MiniDexed/raw/getsysex.sh/userBank.syx > /dev/null 2>&1 From 43b07c44eb41897808e3436678b066550283ac58 Mon Sep 17 00:00:00 2001 From: Luca <51792528+donluca@users.noreply.github.com> Date: Tue, 18 Apr 2023 21:32:33 +0200 Subject: [PATCH 08/12] Changed shell to sh --- getsysex.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/getsysex.sh b/getsysex.sh index 802a5fbf..4a041b2f 100755 --- a/getsysex.sh +++ b/getsysex.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Get voices from # https://yamahablackboxes.com/collection/yamaha-dx7-synthesizer/patches/ @@ -82,5 +82,10 @@ do done # Download the user bank +echo "Downloading https://github.com/donluca/MiniDexed/raw/getsysex.sh/userBank.syx ..." printf -v j "%05d" $count curl -o "${TARGET_DIR}${j}_userBank.syx" ${CURL_OPTIONS} https://github.com/donluca/MiniDexed/raw/getsysex.sh/userBank.syx > /dev/null 2>&1 +if (( $? > 0 )) +then + echo "Download failed" +fi From 0fa1e17ddac146ef5ca231d7f0cb34d102fa111c Mon Sep 17 00:00:00 2001 From: Luca <51792528+donluca@users.noreply.github.com> Date: Fri, 28 Apr 2023 19:54:45 +0200 Subject: [PATCH 09/12] Changed numbering on userBank.syx --- getsysex.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/getsysex.sh b/getsysex.sh index 4a041b2f..4cf94e9b 100755 --- a/getsysex.sh +++ b/getsysex.sh @@ -64,8 +64,6 @@ case $? in ;; esac -declare -i count -count=1 # Download all the files in the list for i in "${LINKS[@]}"; do @@ -76,15 +74,13 @@ do if (( $? > 0 )) then echo "Download failed" - else - count+=1 fi done -# Download the user bank -echo "Downloading https://github.com/donluca/MiniDexed/raw/getsysex.sh/userBank.syx ..." +# Copy over the user bank +echo "Downloading https://github.com/probonopd/MiniDexed/raw/main/userBank.syx ..." printf -v j "%05d" $count -curl -o "${TARGET_DIR}${j}_userBank.syx" ${CURL_OPTIONS} https://github.com/donluca/MiniDexed/raw/getsysex.sh/userBank.syx > /dev/null 2>&1 +curl -o "${TARGET_DIR}16384_userBank.syx" ${CURL_OPTIONS} https://github.com/probonopd/MiniDexed/raw/main/userBank.syx > /dev/null 2>&1 if (( $? > 0 )) then echo "Download failed" From 6b1f0b36616cd62df69ee5cc3870c2a447a433f4 Mon Sep 17 00:00:00 2001 From: Luca <51792528+donluca@users.noreply.github.com> Date: Mon, 1 May 2023 22:10:25 +0200 Subject: [PATCH 10/12] Delete userBank.syx --- userBank.syx | Bin 4104 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 userBank.syx diff --git a/userBank.syx b/userBank.syx deleted file mode 100644 index 729590a4161b9db84af76e4a265c8711693f6d87..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4104 zcmez1%)qI@kPHC~>I@7F77PqbG!RIJ7-|Fr3>?ZpdkiH!{X9by!u&m*T}SN)hrnp~ zkEXxT{5M+ujF!LDuMkG-A8@5UTK|r=KStYMqwUYp_V;N2W3>M@+W&;~zg@lq07~x> A Date: Mon, 1 May 2023 22:10:43 +0200 Subject: [PATCH 11/12] Add files via upload --- sysex/voice/userBank.syx | Bin 0 -> 4104 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 sysex/voice/userBank.syx diff --git a/sysex/voice/userBank.syx b/sysex/voice/userBank.syx new file mode 100644 index 0000000000000000000000000000000000000000..729590a4161b9db84af76e4a265c8711693f6d87 GIT binary patch literal 4104 zcmez1%)qI@kPHC~>I@7F77PqbG!RIJ7-|Fr3>?ZpdkiH!{X9by!u&m*T}SN)hrnp~ zkEXxT{5M+ujF!LDuMkG-A8@5UTK|r=KStYMqwUYp_V;N2W3>M@+W&;~zg@lq07~x> A Date: Mon, 1 May 2023 22:11:11 +0200 Subject: [PATCH 12/12] Update getsysex.sh --- getsysex.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getsysex.sh b/getsysex.sh index 4cf94e9b..7e4f06a9 100755 --- a/getsysex.sh +++ b/getsysex.sh @@ -80,7 +80,7 @@ done # Copy over the user bank echo "Downloading https://github.com/probonopd/MiniDexed/raw/main/userBank.syx ..." printf -v j "%05d" $count -curl -o "${TARGET_DIR}16384_userBank.syx" ${CURL_OPTIONS} https://github.com/probonopd/MiniDexed/raw/main/userBank.syx > /dev/null 2>&1 +curl -o "${TARGET_DIR}16384_userBank.syx" ${CURL_OPTIONS} https://github.com/probonopd/MiniDexed/raw/main/sysex/voice/userBank.syx > /dev/null 2>&1 if (( $? > 0 )) then echo "Download failed"