update_models.sh (1824B)
1 ############################################################################# 2 # NeuralPi - Update Models - Mac/Linux Script 3 # 4 # This script transfers models from a Linux or Mac computer to the NeuralPi, 5 # and from the NeuralPi back to the host computer. Edit the Raspberry Pi 6 # IP address (after connecting to a local Wifi Network), and run this 7 # script from a Linux/Mac computer running the NeuralPi plugin. 8 # 9 # Note: Ensure that all models have unique names or they will be overwritten 10 # Note: If prompted when connecting, type "yes" and hit enter 11 ############################################################################# 12 13 # USER INPUTS # 14 15 rpi_ip_address=127.0.0.1 # Update this field with the Raspberry Pi's IP address 16 17 # Directory paths for host computer (json models and IRs) 18 host_model_path=~/Documents/GuitarML/NeuralPi/tones #Typical Mac/Linux Path (shouldn't need to change) 19 host_ir_path=~/Documents/GuitarML/NeuralPi/irs #Typical Mac/Linux Path (shouldn't need to change) 20 21 # Directory paths for Raspberry Pi (json models and IRs) 22 rpi_model_path=/home/mind/Documents/GuitarML/NeuralPi/tones # Rpi with Elk OS Path (shouldn't need to change) 23 rpi_ir_path=/home/mind/Documents/GuitarML/NeuralPi/irs # Rpi with Elk OS Path (shouldn't need to change) 24 25 ############################################################################# 26 echo "Copying all models from local computer to Rpi.." 27 scp $host_model_path/*.json root@$rpi_ip_address:$rpi_model_path/ 28 29 echo "Copying all IRs from local computer to Rpi.." 30 scp $host_ir_path/*.wav root@$rpi_ip_address:$rpi_ir_path/ 31 32 33 echo "Copying all models from Rpi to local computer.." 34 scp root@$rpi_ip_address:$rpi_model_path/*.json $host_model_path/ 35 36 echo "Copying all IRs from Rpi to local computer.." 37 scp root@$rpi_ip_address:$rpi_ir_path/*.wav $host_ir_path/