A library for analysis and synthesis of Indian classical music
Project description
# Bhargava Swara
A Python library for analyzing Indian classical music, including raga, tala, tempo, tradition, ornaments, and full analysis.
## Prerequisites
- **Gemini API Key:** This library uses Google's Gemini API for music analysis. You’ll need to:
1. Sign up for a Google Cloud account.
2. Enable the Generative AI API in the Google Cloud Console.
3. Create an API key in the "Credentials" section.
See [Google’s Generative AI Docs](https://cloud.google.com/generative-ai/docs) for details.
## Installation
```bash
pip install bhargava_swara
USAGE
from bhargava_swara import (
analyze_raga,
analyze_tala,
analyze_tempo,
analyze_tradition,
analyze_ornaments,
analyze_music_full
)
# Set your Gemini API key
api_key = "YOUR_API_KEY"
audio = "path/to/audio.wav"
# Individual analyses
print(f"Raga: {analyze_raga(audio, api_key)}")
print(f"Tala: {analyze_tala(audio, api_key)}")
print(f"Tempo: {analyze_tempo(audio, api_key)}")
print(f"Tradition: {analyze_tradition(audio, api_key)}")
print(f"Ornaments: {analyze_ornaments(audio, api_key)}")
# Full analysis
print(f"Full Analysis:\n{analyze_music_full(audio, api_key)}")
Change Log
==========
0.0.1 (26/03/2025)
-------------------
- First Release
===========
0.0.2 (27/03/2025)
-------------------
- Fixed missing module files in package
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
bhargava_swara-0.0.2.tar.gz
(6.2 kB
view details)
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 bhargava_swara-0.0.2.tar.gz.
File metadata
- Download URL: bhargava_swara-0.0.2.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc1e8f003735479ae3d3cb1eac86a386c2981af9c4b22d9a43ad03f6fa66c9a1
|
|
| MD5 |
e939523350daf0b486ea16982b5d6ec5
|
|
| BLAKE2b-256 |
f3a64a0cf05b767b1e1517dcc0975eedf3b07a1858365da3b31582f089dfddfe
|
File details
Details for the file bhargava_swara-0.0.2-py3-none-any.whl.
File metadata
- Download URL: bhargava_swara-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0de95575544b0faf13c5b5aa2b4bbb85fc8c0a47396a40533b5707f0952f34ed
|
|
| MD5 |
bbdd209bdb9b943191c43f35df765777
|
|
| BLAKE2b-256 |
01966227ea1fd1ae5be3c64c54e1feeae446db2dd9b6f5f63bffb5765b8d72b3
|