#!/bin/bash
##**********************************************
## Instala Plugins VST de TAL. Mayo 2021.
## Copyleft Ubuntu Peronista
##**********************************************
## Script genérico:
#cd /tmp/plugins/ ;
#unzip ZZZZ.zip ;
#mv /tmp/plugins/libTAL-zzzz.so ~/.vst/tal/ ;
#mv TAL-zzzz.vst3/ ~/.vst3/ ;
#rm Readme.txt ;
#rm -r __MACOSX/ ;
#mkdir ~/.vst3/TAL-zzzz.vst3/Contents/Resources/ ;
#cd ~/.vst3/TAL-zzzz.vst3/Contents/Resources/ ;
#wget https://tal-software.com//downloads/presets/TAL-Reverb-4%20vst3.zip
#unzip TAL-zzzz\ vst3.zip
#rm *.zip ;
#rm -r __MACOSX/ 

sudo apt install ubuntustudio-audio-plugins

#*************************

#Plugins DISTHRO


cd ~/Descargas/ ;
mkdir plugins/ ;
cd ~/Descargas/plugins/ ;
wget https://github.com/DISTRHO/DPF-Plugins/releases/download/v1.1/distrho-mini-series-linux64.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/arctican-plugins-linux64.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/dexed-linux64.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/drowaudio-plugins-linux64.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/juce-opl-linux64.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/luftikus-linux64.tar.xz ;
wget https://github.com/DISTRHO/DPF-Plugins/releases/download/v1.1/mverb-linux64.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/obxd-linux64.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/pitcheddelay-linux64.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/refine-linux64.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/stereosourceseparation-linux64.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/tal-plugins-linux64.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/vex-linux64.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/wolpertinger-linux64.tar.xz ;
cd ~/Descargas/plugins/ ;
tar -xJf distrho-mini-series-linux64.tar.xz ;
cd ~/Descargas/plugins/distrho-mini-series-linux64/ ;
sudo mv 3BandEQ-vst.so /usr/lib/vst/ ;
sudo mv 3BandSplitter-vst.so /usr/lib/vst/ ;
sudo mv PingPongPan-vst.so /usr/lib/vst/ ;
sudo mv 3BandEQ.lv2/ /usr/lib/lv2/ ;
sudo mv 3BandSplitter.lv2/ /usr/lib/lv2/ ;
sudo mv PingPongPan.lv2/ /usr/lib/lv2/ ;
sudo mv 3BandEQ-ladspa.so /usr/lib/ladspa/ ;
sudo mv 3BandSplitter-ladspa.so /usr/lib/ladspa/ ;
sudo mv PingPongPan-ladspa.so /usr/lib/ladspa/ ;
sudo mv *.so /usr/lib/dssi/
sudo mv 3BandEQ-dssi/ /usr/lib/dssi/ ; 
sudo mv 3BandSplitter-dssi/ /usr/lib/dssi/ ; 
sudo mv PingPongPan-dssi/ /usr/lib/dssi/ ;
cd ~/Descargas/plugins/
tar -xJf arctican-plugins-linux64.tar.xz
cd ~/Descargas/plugins/arctican-plugins-linux64/ ;
sudo mv *.so /usr/lib/vst/ ;
sudo mv TheFunction.lv2/  /usr/lib/lv2/ ;
sudo mv ThePilgrim.lv2/ /usr/lib/lv2/ ;
cd ~/Descargas/plugins/
tar -xJf drowaudio-plugins-linux64.tar.xz ;
cd ~/Descargas/drowaudio-plugins-linux64/ ;
sudo mv *.so /usr/lib/vst/ ;
sudo mv drowaudio-distortion.lv2/ /usr/lib/lv2/ ;
sudo mv drowaudio-flanger.lv2/ /usr/lib/lv2/ ;
sudo mv drowaudio-tremolo.lv2/ /usr/lib/lv2/ ;
sudo mv drowaudio-distortionshaper.lv2/ /usr/lib/lv2/ ;
sudo mv drowaudio-reverb.lv2/ /usr/lib/lv2/ ;
cd ~/Descargas/plugins/ ;
tar -xJf juce-opl-linux64.tar.xz ;
cd ~/Descargas/plugins/juce-opl-linux64/ ;
sudo mv *.so /usr/lib/vst/ ;
sudo mv JuceOPL.lv2/ /usr/lib/lv2/ ;
cd ~/Descargas/plugins/ ;
tar -xJf luftikus-linux64.tar.xz ;
cd ~/Descargas/plugins/luftikus-linux64/ ;
sudo mv *.so /usr/lib/vst/ ;
sudo mv Luftikus.lv2/ /usr/lib/lv2/ ;
#instalar mreverb
cd ~/Descargas/plugins/ ;
tar -xJf mverb-linux64.tar.xz ;
cd ~/Descargas/plugins/mverb-linux64/ ;
sudo mv MVerb-vst.so /usr/lib/vst/ ;
sudo mv MVerb.lv2/ /usr/lib/lv2/ ;
sudo mv MVerb-dssi/ /usr/lib/dssi/ ;
sudo mv MVerb-dssi.so /usr/lib/dssi/ ;
sudo mv MVerb-ladspa.so /usr/lib/ladspa/ ;
cd ~/Descargas/plugins/ ;
tar -xJf obxd-linux64.tar.xz ;
cd ~/Descargas/plugins/obxd-linux64/ ;
sudo mv *.so /usr/lib/vst/ ;
sudo mv Obxd.lv2/ /usr/lib/lv2/ ;
cd ~/Descargas/plugins/ ;
tar -xJf pitcheddelay-linux64.tar.xz
cd ~/Descargas/plugins/pitcheddelay-linux64/
sudo mv *.so /usr/lib/vst/ ;
sudo mv PitchedDelay.lv2/ /usr/lib/lv2/ ;
cd ~/Descargas/plugins/ ;
tar -xJf refine-linux64.tar.xz ;
cd ~/Descargas/plugins/refine-linux64/ ;
sudo mv *.so /usr/lib/vst/ ;
sudo mv ReFine.lv2/ /usr/lib/lv2/ ;
cd ~/Descargas/plugins/ ;
tar -xJf stereosourceseparation-linux64.tar.xz
cd ~/Descargas/plugins/stereosourceseparation-linux64/
sudo mv *.so /usr/lib/vst/ ;
sudo mv StereoSourceSeparation.lv2/ /usr/lib/lv2/ ;
cd ~/Descargas/plugins/ ;
tar -xJf tal-plugins-linux64.tar.xz ;
sudo mv *.so /usr/lib/vst/ ;
sudo mv TAL-Dub-3.lv2/ /usr/lib/lv2/ ;
sudo mv TAL-Filter-2.lv2/ /usr/lib/lv2/ ;
sudo mv TAL-Filter.lv2/ /usr/lib/lv2/ ;
sudo mv TAL-NoiseMaker.lv2/ /usr/lib/lv2/ ;
sudo mv TAL-Reverb-2.lv2/ /usr/lib/lv2/ ;
sudo mv TAL-Reverb-3.lv2/ /usr/lib/lv2/ ;
sudo mv TAL-Reverb.lv2/ /usr/lib/lv2/ ;
sudo mv TAL-Vocoder-2.lv2/ /usr/lib/lv2/ ;
cd ~/Descargas/plugins/ ;
tar -xJf vex-linux64.tar.xz ;
cd ~/Descargas/plugins/vex-linux64/ ;
sudo mv *.so /usr/lib/vst/ ;
sudo mv Vex.lv2/ /usr/lib/lv2/ ;
mkdir ~/.lv2/ ;
cd ~/.lv2/ ;
wget http://linuxsynths.com/VexPatchesDemos/VexPatches01.tar.gz ;
wget http://linuxsynths.com/VexPatchesDemos/VexPatches02.tar.gz ;
tar xvzf VexPatches01.tar.gz ;
tar xvzf VexPatches01.tar.gz ;
cd ~/Descargas/plugins/ ;
tar -xJf wolpertinger-linux64.tar.xz ;
cd ~/Descargas/plugins/wolpertinger-linux64/ ;
sudo mv *.so /usr/lib/vst/ ;
sudo mv Wolpertinger.lv2/ /usr/lib/lv2/ ;
cd ~/Descargas/plugins/ ;
tar -xJf dexed-linux64.tar.xz
cd ~/Descargas/plugins/dexed-linux64/
sudo mv Dexed.lv2/ /usr/lib/lv2/ ;

#Elimina los instaladores de DESTHRO:
cd ~/Descargas/plugins/ ;
rm *.tar.xz ;
cd ~/Descargas ;
rm -r /plugins/ ;

# **************************************************
# Instalador de TAL (VSTs)
# **************************************************
#creación de directorios
mkdir ~/.vst/ ~/.vst3/ ;
mkdir ~/.vst/tal/ ~/.vst3/ ;
mkdir /tmp/plugins/ ;
mkdir /tmp/plugins/presets/ ;
mkdir /tmp/plugins/manuales/ ;
#TAL-U-NO-LX
mkdir /tmp/plugins/tal_uno/ ;
cd /tmp/plugins/tal_uno/ ;
wget https://tal-software.com/downloads/plugins/TAL-U-NO-LX-V2_64_linux.zip ;
unzip TAL-U-NO-LX-V2_64_linux.zip ;
mv libTAL-U-NO-LX-V2.so ~/.vst/tal/ ;
mv TAL-U-NO-LX-V2.vst3/ ~/.vst3/ ;
##Pack de presets para TAL-U-NO-LX
mkdir ~/.vst3/TAL-U-NO-LX-V2.vst3/Contents/Resources/
cd ~/.vst3/TAL-U-NO-LX-V2.vst3/Contents/Resources/
wget https://tal-software.com//downloads/presets/Fantomatica_Presets.zip ;
wget https://tal-software.com//downloads/presets/Symbiotic_Sounds_Presets_for_TAL-U-NO-LX-V2.zip ;
wget https://tal-software.com/downloads/presets/FMR%20Factory%20Presets%20Bank.zip ;
wget https://tal-software.com/downloads/presets/Krezie-Synthwave-for-TAL-U-NO-LX.zip ;
wget https://tal-software.com/downloads/presets/Tronsonic%20Presets%20Bank%20.zip ;
wget https://tal-software.com/downloads/presets/Orion-106.zip ;
wget https://tal-software.com/downloads/presets/TwolegsToneworks_-_TAL-U-No-LX_Bank.zip ;
unzip Fantomatica_Presets.zip ;
unzip Symbiotic_Sounds_Presets_for_TAL-U-NO-LX-V2.zip ;
unzip FMR%20Factory%20Presets%20Bank.zip ;
unzip Krezie-Synthwave-for-TAL-U-NO-LX.zip ;
unzip Tronsonic%20Presets%20Bank%20.zip ;
unzip Orion-106.zip ;
unzip TwolegsToneworks_-_TAL-U-No-LX_Bank.zip ;
rm ~/.vst3/TAL-U-NO-LX-V2.vst3/Contents/Resources/*.zip ;

## TAL-J-8
mkdir /tmp/plugins/tal_j8/ ;
cd /tmp/plugins/tal_j8/ ;
wget https://tal-software.com/downloads/plugins/TAL-J-8_64_linux.zip ;
unzip TAL-J-8_64_linux.zip ;
mv /tmp/plugins/tal_j8/libTAL-J-8.so ~/.vst/tal/ ;
mv TAL-J-8.vst3/ ~/.vst3/ ;
##Pack de presets para TAL-J-8
mkdir ~/.vst3/TAL-J-8.vst3/Contents/Resources/ ;
mkdir ~/.vst3/TAL-J-8.vst3/Contents/Resources/lee/ ;
cd ~/.vst3/TAL-J-8.vst3/Contents/Resources/ ;
wget https://tal-software.com/downloads/presets/tal-j-8_factorypresets.zip ;
wget https://tal-software.com/downloads/presets/TAL-J-8%20-%20Saif%20Sameer%20[72%20presets].zip ;
wget https://tal-software.com/downloads/presets/TAL%20J-8%20Presets%20by%20Heat%20Audio.zip ;
wget https://tal-software.com/downloads/presets/Funkybots_TAL_J-8_Presets.zip ;
wget https://tal-software.com/downloads/presets/Xenos_Soundworks_TAL-J-8.zip ;
wget https://tal-software.com/downloads/presets/Arcade%20Summer%20J-8%20Free.zip ;
wget https://www.dropbox.com/s/xpwy6b20x96rnmo/Realistortion%27s%20Preset%20Pack.rar ;
unrar x Realistortion\'s\ Preset\ Pack.rar ;
unzip 'Arcade Summer J-8 Free.zip' ;
unzip Funkybots_TAL_J-8_Presets.zip ;
unzip 'TAL J-8 Presets by Heat Audio.zip' ;
unzip 'TAL-J-8 - Saif Sameer [72 presets].zip' ;
unzip tal-j-8_factorypresets.zip ;
unzip Xenos_Soundworks_TAL-J-8.zip ;
rm -r __MACOSX/ ;
#rm *.zip ;
cd ~/.vst3/TAL-J-8.vst3/Contents/Resources/lee/ ;
wget https://tal-software.com/downloads/presets/lee_TAL_J-8_Presets.zip ;
unzip lee_TAL_J-8_Presets.zip ;
rm -r __MACOSX/ ;
## rm *.zip ;
cd ~ ;


##Descargar resto de plugins VST TAL:
mkdir /tmp/plugins/
cd /tmp/plugins/
wget https://tal-software.com/downloads/plugins/TAL-Reverb-4_64_linux.zip
wget https://tal-software.com/downloads/plugins/TAL-BassLine-101_64_linux.zip ;
wget https://tal-software.com/downloads/plugins/TAL-Mod_64_linux.zip ;
wget https://tal-software.com/downloads/plugins/Tal-Chorus-LX_64_linux.zip
wget https://tal-software.com/downloads/plugins/TAL-Vocoder-2_64_linux.zip
wget https://tal-software.com/downloads/plugins/TAL-Filter_64_linux.zip ;
wget https://tal-software.com/downloads/plugins/TAL-Filter-2_64_linux.zip
wget https://tal-software.com/downloads/plugins/TAL-DAC_64_linux.zip ;
wget https://tal-software.com/downloads/plugins/TAL-NoiseMaker_64_linux.zip ;
wget https://tal-software.com/downloads/plugins/TAL-Dub-X_64_linux.zip ;
wget https://tal-software.com/downloads/plugins/TAL-Sampler_64_linux.zip ;

## preset para TAL Bassline 101
unzip TAL-BassLine-101_64_linux.zip ;
mv libTAL-BassLine-101.so ~/.vst/tal/ ;
mv TAL-BassLine-101.vst3/ ~/.vst3/ ;
rm -r __MACOSX/ ;
rm Readme.txt
mkdir ~/.vst3/TAL-BassLine-101.vst3/Contents/Resources/ ;
cd ~/.vst3/TAL-BassLine-101.vst3/Contents/Resources/ ;
wget https://tal-software.com//downloads/presets/TAL%20BassLine%20101%20vst3.zip ;
unzip TAL\ BassLine\ 101\ vst3.zip ;
rm -r __MACOSX/ ;
rm ~/.vst3/TAL-BassLine-101.vst3/Contents/Resources/*.zip ;

## TAL-Chorus-LX
cd /tmp/plugins/ ;
unzip Tal-Chorus-LX_64_linux.zip ;
mv libTAL-Chorus-LX.so ~/.vst/tal/ ;
chmod +x ~/.vst/tal/libTAL-Chorus-LX.so ;
mv TAL-Chorus-LX.vst3/ ~/.vst3/ ;
rm Readme.txt ;
rm -r __MACOSX/ ;

##TAL-Filter y presets
cd /tmp/plugins/ ;
unzip TAL-Filter_64_linux.zip ;
mv /tmp/plugins/libTAL-Filter.so ~/.vst/tal/ ;
rm -r __MACOSX/ ;
rm Readme.txt ;
chmod +x ~/.vst/tal/libTAL-Filter.so ;
mv TAL-Filter.vst3/ ~/.vst3/ ;
mkdir ~/.vst3/TAL-Filter.vst3/Contents/Resources/ ;
cd ~/.vst3/TAL-Filter.vst3/Contents/Resources/ ;
wget https://tal-software.com//downloads/presets/TAL-Filter%20vst3.zip ;
unzip TAL-Filter\ vst3.zip ;
rm TAL-Filter\ vst3.zip ;
rm -r __MACOSX/ ;

##TAL-Filter-2 y presets
cd /tmp/plugins/ ;
unzip TAL-Filter-2_64_linux.zip ;
mv /tmp/plugins/libTAL-Filter-2.so ~/.vst/tal/ ;
rm -r __MACOSX/ ;
rm Readme.txt ;
chmod +x ~/.vst/tal/libTAL-Filter.so ;
mv TAL-Filter-2.vst3/ ~/.vst3/ ;
mkdir ~/.vst3/TAL-Filter-2.vst3/Contents/Resources/ ;
cd ~/.vst3/TAL-Filter-2.vst3/Contents/Resources/ ;
wget https://tal-software.com//downloads/presets/TAL-Filter-2%20vst3.zip ;
unzip TAL-Filter-2\ vst3.zip ;
rm *.zip ;
rm -r __MACOSX/ ;

##TAL Reverb-4 y presets
cd /tmp/plugins/ ;
unzip TAL-Reverb-4_64_linux.zip ;
mv /tmp/plugins/libTAL-Reverb-4.so ~/.vst/tal/ ;
mv TAL-Reverb-4.vst3/ ~/.vst3/ ;
rm Readme.txt ;
rm -r __MACOSX/ ;
mkdir ~/.vst3/TAL-Reverb-4.vst3/Contents/Resources/ ;
cd ~/.vst3/TAL-Reverb-4.vst3/Contents/Resources/ ;
wget https://tal-software.com//downloads/presets/TAL-Reverb-4%20vst3.zip
unzip TAL-Reverb-4\ vst3.zip ;
rm *.zip ;
rm -r __MACOSX/ ;

#TAL Mod
cd /tmp/plugins/ ;
unzip TAL-Mod_64_linux.zip ;
mv /tmp/plugins/libTAL-Mod.so ~/.vst/tal/ ;
mv TAL-Mod.vst3/ ~/.vst3/ ;
rm Readme.txt ;
rm -r __MACOSX/ ;
mkdir ~/.vst3/TAL-Mod.vst3/Contents/Resources/ ;
cd ~/.vst3/TAL-Mod.vst3/Contents/Resources/ ;
wget https://tal-software.com//downloads/presets/TAL%20Mod%20vst3.zip ;
unzip TAL\ Mod\ vst3.zip ;
rm *.zip ;
rm -r __MACOSX/ ;

#TAL Vocorder-2
cd /tmp/plugins/ ;
unzip TAL-Vocoder-2_64_linux.zip ;
mv /tmp/plugins/libTAL-Vocoder-2.so ~/.vst/tal/ ;
chmod +x ~/.vst/tal/libTAL-Vocoder-2.so ;
mv TAL-Vocoder-2.vst3/ ~/.vst3/ ;
rm Readme.txt ;
rm -r __MACOSX/ ;
mkdir ~/.vst3/TAL-Vocoder-2.vst3/Contents/Resources/ ;
cd ~/.vst3/TAL-Vocoder-2.vst3/Contents/Resources/ ;
wget https://tal-software.com//downloads/presets/TAL-Vocoder-2%20vst3.zip ;
unzip TAL-Vocoder-2\ vst3.zip vst3.zip ;
rm *.zip ;
rm -r __MACOSX/ ;

# TAL-DAC
cd /tmp/plugins/ ;
unzip TAL-DAC_64_linux.zip ;
mv /tmp/plugins/libTAL-DAC.so ~/.vst/tal/ ;
mv TAL-DAC.vst3/ ~/.vst3/ ;
rm Readme.txt ;
rm -r __MACOSX/ ;
mkdir ~/.vst3/TAL-DAC.vst3/Contents/Resources/ ;
cd ~/.vst3/TAL-DAC.vst3/Contents/Resources/ ;
wget https://tal-software.com//downloads/presets/TAL%20DAC%20plugin%20vst3.zip ;
unzip TAL\ DAC\ plugin\ vst3.zip ;
rm *.zip ;

#NoiseMaker
cd /tmp/plugins/ ;
unzip TAL-NoiseMaker_64_linux.zip ;
mv /tmp/plugins/libTAL-NoiseMaker.so ~/.vst/tal/ ;
mv TAL-NoiseMaker.vst3/ ~/.vst3/ ;
rm Readme.txt ;
rm -r __MACOSX/ ;
mkdir ~/.vst3/TAL-NoiseMaker.vst3/Contents/Resources/ ;
cd ~/.vst3/TAL-NoiseMaker.vst3/Contents/Resources/ ;
wget https://tal-software.com//downloads/presets/TAL-NoiseMaker%20vst3.zip ;
unzip TAL-NoiseMaker\ vst3.zip ;
rm *.zip ;
rm -r __MACOSX/ ;

#TAL-Dub-X
cd /tmp/plugins/ ;
unzip TAL-Dub-X_64_linux.zip ;
mv /tmp/plugins/libTAL-Dub-X.so ~/.vst/tal/ ;
mv TAL-Dub-X.vst3/ ~/.vst3/ ;
rm Readme.txt ;
rm -r __MACOSX/ ;
mkdir ~/.vst3/TAL-Dub-X.vst3/Contents/Resources/ ;
cd ~/.vst3/TAL-Dub-X.vst3/Contents/Resources/ ;
wget https://tal-software.com//downloads/presets/TAL%20Dub%20X%20vst3.zip ;
unzip TAL\ Dub\ X\ vst3.zip
rm *.zip ;

#TAL-Sampler
# Incluye la librería de 1,1GB
cd /tmp/plugins/ ;
unzip TAL-Sampler_64_linux.zip ;
mv /tmp/plugins/libTAL-Sampler.so ~/.vst/tal/ ;
mv TAL-Sampler.vst3/ ~/.vst3/ ;
rm Readme.txt ;
rm -r __MACOSX/ ;
mkdir ~/.vst3/TAL-Sampler.vst3/Contents/Resources/ ;
cd ~/.vst3/TAL-Sampler.vst3/Contents/Resources/ ;
wget https://tal-software.com/downloads/presets/TAL-Sampler-FactoryPresets.zip ;
unzip TAL-Sampler-FactoryPresets.zip ;
wget https://tal-software.com/downloads/presets/Hollowsun.zip ;
unzip Hollowsun.zip ;
rm *.zip ;
rm -r __MACOSX/ ;

##Descarga de manuales ;
mkdir /tmp/plugins/manuales/ ;
cd /tmp/plugins/manuales/ ;
wget https://tal-software.com//downloads/docs/TAL-U-NO-LX-UserManual.pdf ;
wget https://tal-software.com//downloads/docs/TAL-J-8-UserManual.pdf ;
wget https://tal-software.com//downloads/docs/tal-sampler-UserManual.pdf ;
wget https://tal-software.com//downloads/docs/TAL%20Noisemaker%20User%20Guide%201.0.pdf ;
wget https://tal-software.com//downloads/docs/tal-dub-x-UserManual.pdf ;
wget https://tal-software.com//downloads/docs/tal-dac-UserManual.pdf ;
wget https://tal-software.com/downloads/docs/TAL-Vocoder-UserManual.pdf ;
wget https://tal-software.com//downloads/docs/TAL-Mod-UserManual.pdf ;
wget https://tal-software.com/downloads/docs/tal-bassline-101-UserManual.pdf ;
wget https://tal-software.com/downloads/presets/Hollowsun%20Library%20for%20TAL%20Sampler.pdf 



#*************************************



mkdir ~/Descargas/vst/ ;
cd ~/Descargas/vst/ ;
wget https://uhedownloads-heckmannaudiogmb.netdna-ssl.com/releases/Podolski_121_8256_Linux.tar.xz ;
wget https://uhedownloads-heckmannaudiogmb.netdna-ssl.com/releases/Zebra2_28_8256_Linux.tar.xz ;
wget https://uhedownloads-heckmannaudiogmb.netdna-ssl.com/releases/TripleCheese_121_8256_Linux.tar.xz ;
wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/obxd-linux64.tar.xz ;
 wget https://github.com/DISTRHO/DISTRHO-Ports/releases/download/2018-04-16/vex-linux64.tar.xz ;
tar -xJf Podolski_121_8256_Linux.tar.xz ;
tar -xJf Zebra2_28_8256_Linux.tar.xz ;
tar -xJf TripleCheese_121_8256_Linux.tar.xz ;
tar -xJf obxd-linux64.tar.xz ;
tar -xJf vex-linux64.tar.xz ;

cd ~/Descargas/vst/ ;
cd Podolski-8256/ ;
./install.sh 

cd ~/Descargas/vst/ ;
cd TripleCheese-8256/ ;
./install.sh

cd ~/Descargas/vst/ ;
cd Zebra2-8256/ ;
./install.sh


cd ~/Descargas/vst/obxd-linux64/ ;
sudo mv *.so /usr/lib/vst/ ;
sudo mv Obxd.lv2/* /usr/lib/lv2/ ;
cd ~/Descargas/vst/vex-linux64/ ;
sudo mv *.so /usr/lib/vst/ ;
sudo mv Vex.lv2/* /usr/lib/lv2/ ;

#**************************
# DrumGizmo

mkdir ~/Descargas/drumgizmo/ ;
cd ~/Descargas/drumgizmo/ ;
wget https://drumgizmo.org/kits/DRSKit/DRSKit2_1.zip ;
unzip DRSKit2_1.zip ;
cd /usr/share/sounds/ ;
sudo mkdir drumgizmo/ ;
sudo mv ~/Descargas/drumgizmo/DRSKit/ /usr/share/sounds/drumgizmo/ ;

cd ~/Descargas/drumgizmo/ ;
wget https://drumgizmo.org/kits/MuldjordKit/MuldjordKit3.zip ;
unzip MuldjordKit3.zip ;
cd /usr/share/sounds/ ;
sudo mkdir drumgizmo/ ;
cd ~/Descargas/drumgizmo/ ;
sudo mv MuldjordKit3/ /usr/share/sounds/drumgizmo/ ;


#******************************

sudo apt install git curl freeglut3-dev g++ libasound2-dev libcurl4-openssl-dev libfreetype6-dev libjack-jackd2-dev libx11-dev libxcomposite-dev libxcursor-dev libxinerama-dev libxrandr-dev mesa-common-dev

git clone https://github.com/asb2m10/dexed.git ;
cd ~/dexed/ ;
git submodule update --init --recursive ;
cd ~/dexed/ ;
./scripts/get-juce.sh ;
./scripts/projuce-lin.sh ;
./scripts/build-lin.sh ;
sudo cp ~/dexed/Builds/Linux/build/Dexed /usr/local/bin/
