### Installation Source: https://github.com/moises-ai/moises-db/blob/main/README.md Install the MoisesDB package using pip. ```bash pip install git+https://github.com/moises-ai/moises-db.git ``` -------------------------------- ### Accessing Tracks Source: https://github.com/moises-ai/moises-db/blob/main/README.md Get the number of songs in the dataset or access a specific track by its index. ```python n_songs = len(db) track = db[0] # Returns a MoisesDBTrack object ``` -------------------------------- ### MoisesDB Initialization Source: https://github.com/moises-ai/moises-db/blob/main/README.md Create an instance of MoisesDB to access the tracks, optionally providing the dataset path and sample rate. ```python from moisesdb.dataset import MoisesDB db = MoisesDB( data_path='./moisesdb', sample_rate=44100 ) ``` -------------------------------- ### Environment Variable Configuration Source: https://github.com/moises-ai/moises-db/blob/main/README.md Configure the environment variable MOISESDB_PATH to point to the downloaded dataset. ```bash export MOISESDB_PATH=./moises-db-data ``` -------------------------------- ### MoisesDBTrack Stems and Audio Source: https://github.com/moises-ai/moises-db/blob/main/README.md Access the stems (vocals, bass, drums, etc.) and the mixture audio from a MoisesDBTrack object. ```python track = db[0] stems = track.stems # stems = {'vocals': ..., 'bass': ..., ...} mixture track.audio # mixture = nd.array ``` -------------------------------- ### Dataset Integrity Verification (Linux/Mac) Source: https://github.com/moises-ai/moises-db/blob/main/README.md Verify the integrity of the downloaded dataset using MD5 and SHA256 hashes on Linux/Mac. ```bash md5sum moisesdb.zip sha256sum moisesdb.zip ``` -------------------------------- ### Dataset Integrity Verification (Windows) Source: https://github.com/moises-ai/moises-db/blob/main/README.md Verify the integrity of the downloaded dataset using MD5 and SHA256 hashes on Windows. ```powershell Get-FileHash -Algorithm MD5 moisesdb.zip Get-FileHash -Algorithm SHA256 moisesdb.zip ``` -------------------------------- ### Saving Stems Source: https://github.com/moises-ai/moises-db/blob/main/README.md Save the computed stems for a track to a specified directory. ```python track = db[0] path = './moises-db-stems/0' track.save_stems(path) ``` -------------------------------- ### BibTeX Citation Source: https://github.com/moises-ai/moises-db/blob/main/README.md BibTeX entry for citing the MoisesDB dataset. ```bibtex @misc{pereira2023moisesdb, title={Moisesdb: A dataset for source separation beyond 4-stems}, author={Igor Pereira and Felipe Araújo and Filip Korzeniowski and Richard Vogl}, year={2023}, eprint={2307.15913}, archivePrefix={arXiv}, primaryClass={cs.SD} } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.