README.md (7765B)
1 # Proteus 2 3 [](https://github.com/GuitarML/Proteus/actions/workflows/cmake.yml)[](https://www.gnu.org/licenses/gpl-3.0) [](https://somsubhra.github.io/github-release-stats/?username=GuitarML&repository=Proteus&page=1&per_page=30) 4 5 Capture your own amps/pedals/plugins with Proteus. Can capture a drive/tone knob, or snapshot of the sound at a specific setting. Use the Proteus Capture Utility to quickly train models in the cloud with Colab. Effective for Amps/PreAmps, Distortion/Overdrive/Boost pedals (non-time based, no Reverb/Delay/Flange/Phaser). You can also capture a "rig", or combination of pedals/amp. This is similar in concept to a Kemper, Quad Cortex, or ToneX, in a free and open source plugin, with the ability to capture and share the sound of guitar gear normally costing hundreds or thousands of dollars. 6 7 Go directly to [Colab](https://colab.research.google.com/github/GuitarML/Automated-GuitarAmpModelling/blob/proteus-capture/ProteusCapture.ipynb) to start training models. 8 9  10 11 - Checkout the video tutorials for creating your own models for the Proteus plugin. 12 - [Amp Capture](https://youtu.be/2vs4WKYgZUs) 13 - [Pedal Capture](https://youtu.be/86oQuYHjpy0) 14 - [Plugin Capture](https://youtu.be/vwsSYpqRqyM) 15 16  17 18 - Visit the GuitarML [ToneLibrary Website](https://guitarml.com/tonelibrary/tonelib-pro.html) to download Proteus compatible models. 19 - Download the [Proteus Capture Utility](https://github.com/GuitarML/Releases/releases/download/v1.0.0/Proteus_Capture_Utility.zip), which includes the input audio file and Colab script to train models for Proteus. 20 - As of Version 1.2, Proteus also features a 3-Band EQ (Bass, Mid, Treble) and a built in default IR (for convenience, recommended to use a dedicated IR plugin). 21 22 Proteus uses a LSTM neural network to emulate guitar amplifiers/preamps and distortion/overdrive/boost pedals. You can capture the sound of an amplifier either by recording with a microphone, or direct out from a load box. When running "Direct Out" models, you will need to use an Impulse Response plugin to accurately model the amp speaker/cabinet. 23 24 You can create your own models using the [Automated-GuitarAmpModelling](https://github.com/GuitarML/Automated-GuitarAmpModelling) repository directly (LSTM with hidden size 40), or by using the Capture Utility files (available for download at [GuitarML.com](https://guitarml.com/)) with Google Colab (recommended). 25 26 To share your best models, email the json files to smartguitarml@gmail.com and they may be included in the ToneLibrary. 27 28 ## Installing the plugin 29 30 1. Download the appropriate plugin installer (Windows, Mac, Linux) from [GuitarML.com](https://guitarml.com/#products) or the [Releases](https://github.com/GuitarML/Releases/releases) page. 31 2. Run the installer and follow the instructions. May need to reboot to allow your DAW to recognize the new plugin. 32 3. Download the Proteus Capture Utility from [GuitarML.com](https://guitarml.com/#products) to create your own amp/pedal/plugin captures. 33 34 ## Loading models 35 Download available models from the [Proteus ToneLibrary](https://guitarml.com/tonelibrary/tonelib-pro.html). Use the Load Model button to select a folder containing Proteus json models. Note that models for NeuralPi and SmartPedal use a different model architecture and will not be compatible. 36 37 ## Capturing an Amp/Pedal/Plugin 38 1. Download the [Proteus_Capture_Utility.zip](https://github.com/GuitarML/Releases/releases/download/v1.0.0/Proteus_Capture_Utility.zip) to obtain the ProteusCapture.wav and ProteusCapture.ipynb Colab script. 39 2. Play the ProteusCapture.wav from your DAW / Audio Device and input to your amp/pedal/plugin, and record the output. Recommended to use a Reamp for impedence matching, and a Load Box for direct amp captures. 40 3. Upload the "ProteusCapture.ipynb" from the Capture Utility to the Google Colab website. Upload your out.wav file and follow the instructions in the Colab script to create a Proteus compatible model. Snapshot model training will take 10 minutes or less, and Knob model training will take around 30 minutes. For Knob captures, you will need 5 separate out wav files, as detailed in the tutorial videos. 41 4. Download your model file (json format) and load into the Proteus plugin. 42 43 Note: Recommended to follow along with the video tutorials listed above. 44 45 ## Troubleshooting Captures 46 1. The model training is very sensitive to any latency in your output recording. Audio timing mismatch will result in stalled training, where it never goes below 0.75 loss value. May be required to manually line up your audio files before exporting, using the initial click (approx. 1 second into the ProteusCapture.wav) as a guide. 47 2. You can capture amps using a microphone, which will result in the capture of the mic/cab/speaker. These captures may be less accurate than direct amp captures from a load box. Direct amp captures are also more flexible for adding Impluse Responses after the Proteus plugin. 48 3. Recommended to test a snapshot capture of your device before attempting a Knob capture. Snapshot captures are much quicker, less prone to error, and can be more accurate. 49 4. When exporting your audio recording, it needs to be WAV format, PCM16 (FP32 also acceptable), 44100 samplerate, Mono. 50 5. In Colab, the different devices listed for Step 4a,b,c are just guidelines. They start from a pre-trained model. You may be able to get better results by trying a different option for step 4. 51 6. You may use different input audio for training, either by modifying the ProteusCapture.wav or using your own. If you do this, modify the training line in Colab step 4 in the following way (using your custom file for "YourNewInput.wav") and upload both wav files to Colab:<br> 52 `!python prep_wav.py $model -s ../YourNewInput.wav ../out.wav --normalize true` 53 7. The sound you record is the sound the code will try to capture. Minimize noise/unwanted sounds for best results. You can also modify your recording with EQ or other effects. 54 55 ## Build Instructions 56 57 ### Build with Cmake 58 59 ```bash 60 # Clone the repository 61 $ git clone https://github.com/GuitarML/Proteus.git 62 $ cd Proteus 63 64 # initialize and set up submodules 65 $ git submodule update --init --recursive 66 67 # build with CMake 68 $ cmake -Bbuild 69 $ cmake --build build --config Release 70 ``` 71 The binaries will be located in `Proteus/build/Proteus_artefacts/` 72 73 ## Info 74 The neural network used in Proteus is a re-creation of the LSTM inference model from [Real-Time Guitar Amplifier Emulation with Deep Learning](https://www.mdpi.com/2076-3417/10/3/766/htm) 75 76 The [Automated-GuitarAmpModelling](https://github.com/Alec-Wright/Automated-GuitarAmpModelling) project was used to train the .json models.<br> 77 GuitarML maintains a [fork](https://github.com/GuitarML/Automated-GuitarAmpModelling) with a few extra helpful features, including a Colab training script. 78 IMPORTANT: When training models for Proteus, ensure that a LSTM size of 40 is used. Proteus is optimized to run models of this size, and other sizes are not compatible. 79 80 The plugin uses [RTNeural](https://github.com/jatinchowdhury18/RTNeural), which is a highly optimized neural net inference engine intended for audio applications. 81 82 ## Special Thanks 83 Special thanks to John Stutts and Stefan Schmidt for the graphics used in Proteus.