Data ingestion layer for DeepRaaga. Extracted from the original DeepRaaga project for PyPI.
Project description
deepraaga-preprocess
Data ingestion layer for DeepRaaga. Extracted from the original DeepRaaga project.
Installation
pip install deepraaga-preprocess
Overview
The deepraaga-preprocess module handles the ingestion and transformation of Carnatic music data. This includes parsing MIDI files and abstract sequence processing to map musical notes and swaras into sequences readable by machine learning models.
Usage
You can use the DataProcessor to easily convert a directory of MIDI files into numpy feature sequences ready for training:
import os
from deepraaga_preprocess.data_processor import DataProcessor
processor = DataProcessor(sequence_length=100)
# Process a directory of raw MIDI files and output training numpy arrays
processor.process_dataset(midi_dir='data/raw_midi', output_dir='data/processed')
# Load the resulting vocabulary mapping later
processor.load_vocab('data/processed/vocab.pkl')
Features
- MIDI Feature Extraction: Parses incoming MIDI structures using
music21and resolves them to sequential sequences. - Dynamic Vocabulary: Dynamically builds note-to-integer mappings.
- Raga Abstraction: Support for processing Carnatic arohanam and avarohanam notation (via
preprocess_raga.py).
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepraaga_preprocess-0.1.0.tar.gz.
File metadata
- Download URL: deepraaga_preprocess-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
047e6a398ea83aa9140a82b30afc1e877dc38b9c1642101b07dee6f32ac70644
|
|
| MD5 |
b498f98cea53411bc27d4b0395e24342
|
|
| BLAKE2b-256 |
11db62edfa331aaee17f188a1ebdcae06dff8837cb61806631f164ce9de7ef64
|
File details
Details for the file deepraaga_preprocess-0.1.0-py3-none-any.whl.
File metadata
- Download URL: deepraaga_preprocess-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43bbbdef60a14e0662de307ec42f920c83ade8068ffcd825141c63f89e5202be
|
|
| MD5 |
beeefa2c8c8403f5bba7d909911a248f
|
|
| BLAKE2b-256 |
212c9e0d4366a63af6de7159e84305bcbcffe357533628075de2feaf43b9c9d6
|