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
0.0.3 (27/03/2025)
-------------------
- Fixed ornaments detection file
0.0.4 (27/03/2025)
-------------------
- Fixed real time full analysis file
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.4.tar.gz
(6.3 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.4.tar.gz.
File metadata
- Download URL: bhargava_swara-0.0.4.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e65b512997fe687e7c1a8e2d15e64aa0b344d13fd2ba95398191a5a39c0e460
|
|
| MD5 |
c447746657d80086f41e4db00e40f1c2
|
|
| BLAKE2b-256 |
97a6a1bd4f0c4f459ea6c8ea2c7d9f59d913d874370196410f98dcc01eb21712
|
File details
Details for the file bhargava_swara-0.0.4-py3-none-any.whl.
File metadata
- Download URL: bhargava_swara-0.0.4-py3-none-any.whl
- Upload date:
- Size: 9.6 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 |
6b8b7dba12fa01be0b651a22144dae45f4ed3787b16d1a6591b8a8ba51935ffa
|
|
| MD5 |
a89caa14d3fe54de9a4958a09ffa1eb1
|
|
| BLAKE2b-256 |
60879cad68f4c8444c426e97eff58ea6f86d9514bd0494bf5a58420614944ee5
|