Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 2.18 KB

README.md

File metadata and controls

53 lines (34 loc) · 2.18 KB

VAE2Sound

Stellar spectra-driven latent space sonification using a variational autoencoder. Sound spatialization in 360 degrees. VAE2SOUND-GitHub

CONTENTS

  • Jupyter notebook 1: VAE-Demo.ipynb
  • Jupyter notebook 2: VAE2Chords-Demo.ipynb
  • Jupyter notebook 3: VAE2Notes-Demo.ipynb
  • CSound/Cabbage file: VAE2Sound.csd
  • Cabbage mask file: Init2.png
  • Sample spectrum: Autoencoder.png
  • LICENSE
  • README
  • requirements.txt

CABBAGE/CSOUND INSTALLATION

1- Download and install CSound 6.15 from: https://github.com/csound/csound/releases/tag/6.15.0

2- Download Cabbage from (current version 2.9.0): https://cabbageaudio.com/download/

3- Install only Cabbage from the downloaded Cabbage package.

Warning: Current Cabbage version 2.9.0 allows to optionally install the latest version of CSound. This default option should be unchecked not to overwrite CSound 6.15. Latests versions of CSound require additional plugins to work with the image CSound opcodes, so they should not be used.

VAE2SOUND INSTALLATION

1- Download the spectra from: http://svocats.cab.inta-csic.es/miles/index.php?action=credits

2- Download all the content of this repository into the same folder

3- Install all the dependencies included in the requirements.txt file

4- To calculate the weights of the VAE for the MILES stellar library run Jupyter notebook 1: VAE-Demo.ipynb

  • Add your path to the downloaded spectra before running all the cells

5- To reproduce the sonifications:

  • Launch Cabbage, open VAE2Sound.csd, and press play

Important note: Cabbage 2.9.0 requires CamelCase update via: File/Convert Identifiers to camelCase. Also change manually “PluginID” to “PluginId” to avoid warnings.

  • Run Jupyter notebook 2 (VAE2Chords-Demo.ipynb), for the chord sonification
  • Add your path to the downloaded files before running all the cells
  • Run Jupyter notebook 3 (VAE2Notes-Demo.ipynb) for the sequential note sonification
  • Add your path to the downloaded files before running all the cells

Enjoy the sonifications!

Developer system info: Python 3.8.5 - Cabbage 2.5.0 - i7 macOS 10.15.7 - 32 GB - 1536 MB