# KaraFan

Here you will learn how to Separate the Vocals and the Instrumental of songs with KaraFan.

# How To Install?

  1. On your PC where you wish to store the KaraFan project and Go inside it.

  2. First, we have to download and install Python.

  3. Donwload:

  • Install.exe <-- The easiest way! (auto-extract the BAT).
  • Intall.zip <-- Bypass the Browser Security
  • Install.bat <-- Click to show, save it and rename to Install.bat.
  1. You must execute it with Administrator Rights.

  2. Run Setup.py by double-clicking on it.

  3. Now, you can launch KaraFan.pyw by double-clicking on it.

# STRUCTURE 📂

After installation, you'll find new folders at the root of the folder you have chosen with the following structure :

Folder Function
/ KaraFan The main application
/ KaraFan_user Where config file & FFmpeg executable are saved
/ KaraF/ KaraFan_user Where all the models are stored
/ KaraFan_user / Multi_Song If you want to test SDR with your own recipes
/ Music Here you can put your audio files (or choose another one)
/ Results Here you will find your extracted audio files (or another one)

# How To Use?

  1. Place your audio in the Music folder and copy the path of your song that you want to separate and the path of the folder where the separated song will be stored.

  2. Now place the settings you want to apply, try the ones you want the most, but if you want to effectively separate the instrumental or sounds from the vocals, I recommend the following settings:

To separate the instrumental from the vocals
To separate other typoe of audios

  1. We click on Start and it will begin to separate the chosen song. At the end of the process, the message Processing DONE will appear at the end of the interface.

  2. Now we go to the Results folder and we will find a folder with the name of our song or audio. There we will find a list of audios, we download the audio with the name Vocal Final, in case you want the instrumental one that says Music Final.

# How To Update?

Simply Run the Setup.py file!

For more information, visit the GitHub repository.

  1. In our Google Drive, we created the folder Music where we will put our songs to separate, and Vocals where our already separated song will be stored
  1. First, we go to the Google Colab.

  2. Run the cell by clicking on the white button. So that the repository can start to be cloned.

  3. Then we click on the next cell This is it! to load the KaraFan interface.

  4. Now we have to copy the path of your song that you want to separate and the path of the folder where the separated song will be stored.

  5. Now place the settings you want to apply, try the ones you want the most, but if you want to effectively separate the instrumental or sounds from the vocals, I recommend the following settings:

To separate the instrumental from the vocals
To separate other type of audios

  1. We click on Start and it will begin to separate the chosen song. At the end of the process, the message Processing DONE will appear at the end of the interface.
  1. Now we go to the Vocals folder and we will find a folder with the name of our song or audio. There we will find a list of audios, we download the audio with the name Vocal Final, in case you want the instrumental one that says Music Final.

# Code to be afk

To run this code in Colab, we have to press the keys Ctrl + Shift + i to open the developer tools option and the following window will open. In case another window is displayed, we can locate it by selecting the Console option, so in this way Colab will not disconnect during the separation process. First, we put Allow pasting, then we press enter and only then it will let us enter the code.

function ClickConnect() {
var iconElement = document.getElementById("toggle-header-button");
if (iconElement) {
var clickEvent = new MouseEvent ("click", {
bubbles: true, cancelable: true,
view: window
});
iconElement.dispatchEvent (clickEvent);
}
}
setInterval(ClickConnect, 6000);