TAI SOPELE AUDIO CLASSIFICATION

1. Extract the complete ZIP and open the TAI_Sopele folder.
2. For a new environment, use Python 3.11 or 3.12 and install the packages:
   python -m pip install -r requirements_sopele.txt
3. Launch JupyterLab from this folder:
   python -m jupyterlab
4. Open TAI_sopele_audio_classification.ipynb and select the kernel
   containing the installed packages. Restart the kernel after installation.
5. Run the cells from top to bottom. The notebook automatically finds data/.
   You can also explicitly set DATA_SOURCE to Path('data').

In an existing ML/TensorFlow environment, add the audio libraries if needed:
   %pip install librosa==0.11.0 soundfile==0.13.1
Then restart the kernel.

TASK='single' uses 12 single-tone classes.
TASK='combined' uses 36 tone combinations. After changing the task, rerun
preparation and the subsequent cells. Training mixtures are generated from
single-tone recordings within their assigned data partition.

Available models: KNN, SVM, Random Forest, MLP, CNN1D, LSTM and GRU.
Interactive panels include sliders for the number of configurations per model.
Use the single-configuration panel and the step-by-step process for learning.
RUN_BASELINES and RUN_GRID control initial training.
More configurations and deep learning models can require more time.
USE_GPU=False is the default CPU setting.

In code block 6, FULL RECORDING plays the entire original WAV independently
of the slider. MODEL INPUT WINDOW plays the selected model window and shows
its duration, source interval and train/validation/test partition.

For predictions, select a supplied melody or enter the path to your WAV file.
Results are displayed and saved by time window.

Results, prepared data and models are created in output_sopele/.
Keep the entire output_sopele/ folder when moving trained models.
The package does not include pretrained models; training runs locally.

CONTENTS
- TAI_sopele_audio_classification.ipynb: main interactive notebook
- requirements_sopele.txt: dependencies for a new environment
- data/single_tones/: single-tone recordings
- data/combined_tones/: original combined-tone recordings
- data/real_pieces/: melodies and corresponding PDF scores
- references/: source papers, original code and GitHub address
- DATASET_INFO.txt: source information

references/sopila-transcriptor-master.zip contains the original research code
for reference. Use requirements_sopele.txt for the main notebook.
