Metadata-Version: 2.4
Name: py-autotune
Version: 0.0.1
Summary: Libreria Python per autotune su file audio.
Author-email: Gabriele Turelli <gabrieleturelli2004@gmail.com>
License-Expression: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: soundfile
Dynamic: license-file

# py-autotune

Libreria Python per correzione automatica dell’intonazione (autotune) su file audio.

## Installazione

```bash
pip install py-autotune
```

## Utilizzo rapido

```python
from py_autotune import autotune_audio

autotune_audio("input.wav", "output.wav", key="C major")
```

## Funzionalità
- Pitch detection (stima della frequenza fondamentale)
- Pitch shifting (modifica dell’intonazione)
- Correzione automatica verso la nota più vicina in una scala musicale
- API Python semplice e modulare

## API

### autotune_audio
```python
autotune_audio(input_path, output_path, key="C major")
```
Applica autotune a un file audio WAV.

### tuning
```python
tuning(data, sr, scale="chromatic")
```
Applica autotune a un array numpy.

## Esempio avanzato

```python
import soundfile as sf
from py_autotune.core import tuning

x, sr = sf.read("input.wav")
x_tuned = tuning(x, sr, scale="A minor")
sf.write("output.wav", x_tuned, sr)
```

## Scale supportate
- Maggiori, minori, cromatica

## Dipendenze
- numpy
- scipy
- soundfile

## Test
Esegui i test automatici:
```bash
pytest tests/
```

## Licenza
MIT
