Skip to main content

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 music21 and 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepraaga_preprocess-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepraaga_preprocess-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for deepraaga_preprocess-0.1.0.tar.gz
Algorithm Hash digest
SHA256 047e6a398ea83aa9140a82b30afc1e877dc38b9c1642101b07dee6f32ac70644
MD5 b498f98cea53411bc27d4b0395e24342
BLAKE2b-256 11db62edfa331aaee17f188a1ebdcae06dff8837cb61806631f164ce9de7ef64

See more details on using hashes here.

File details

Details for the file deepraaga_preprocess-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for deepraaga_preprocess-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43bbbdef60a14e0662de307ec42f920c83ade8068ffcd825141c63f89e5202be
MD5 beeefa2c8c8403f5bba7d909911a248f
BLAKE2b-256 212c9e0d4366a63af6de7159e84305bcbcffe357533628075de2feaf43b9c9d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page