HARD
HArmony-Rhythm Disentanglement audio remixer plugin.
- AudioUnit plugin
- Tested on MacOS with arm64 / x86_64 architecture CPU.
This repository is a submission to the Neural Audio Plugin Competition (https://www.theaudioprogrammer.com/neural-audio).
How to install
- Download
HARD-AUplugin.zip
from here.
- Unzip the zip file and copy
HARD.component
to your AU plugin installation path. Typically the installation path is /Users/[Your Username]/Library/Audio/Plug-Ins/Components/
or /Library/Audio/Plug-Ins/Components/
.
How to use
**Note: Make sure your DAW is running at sample rate 44.1kHz.
- Create two audio tracks in your DAW and load a music audio clip into each track,
- Synchronize the two audio clips using the audio time-stretching feature in your DAW,
- Insert the HARD plugin to one of the audio tracks (If "Apple cannot check app for malicious software" notification shows up, manually allow the plugin from System Settings -> Security & Privacy, then restart the DAW)
- Send the output of the other audio track to the sidechain channel of the HARD plugin,
- Start playback and enjoy!
You can control audio generation by moving the sliders.
- Harmony / Rhythm: Adjust how much the generated audio contains the harmonic / rhythmic content of the audio from the source / sidechain channel. Moving the slider to the right side gives more weight to the sidechain channel
- Synchronise the Harmony and Rhythm slider by toggling the "sync" button
- Source Gain / Sidechain Gain: Adjust the level of the audio that is input to the neural network model. Use these sliders if there is a large difference in audio level between the source and sidechain inputs
How to build
This repository contains the entire XCode project.
- Clone the repository using the following command:
git clone --recursive https://github.com/WuYiming6526/HARD.git
- Download the model file from https://www.dropbox.com/s/ndd7rrrljjccqfh/morpher.onnx?dl=0. Copy the downloaded file
morpher.onnx
to the root directory.
- Open the XCode project at
Builds/MacOSX/HARD.xcodeproj
- Build the project
The built AU plugin file is automatically copied to /Users/[Your Username]/Library/Audio/Plug-Ins/Components/
when the build process is finished. If your DAW cannot find HARD, move the plugin to the other installation path.
How it works
I trained a VAE that encodes an audio spectrogram into disentangled latent features representing the harmonic (=pitch-related) and rhythmic (=pitch-invariant) content of the input audio. The decoder then generates an audio spectrogram from the latent features. By interpolating the latent features using the horizontal sliders, you can separately change the harmonic and rhythmic content of the generated audio.