Skip to main content

Libreria Python per autotune su file audio.

Project description

py-autotune

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

Installazione

pip install py-autotune

Utilizzo rapido

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

autotune_audio(input_path, output_path, key="C major")

Applica autotune a un file audio WAV.

tuning

tuning(data, sr, scale="chromatic")

Applica autotune a un array numpy.

Esempio avanzato

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:

pytest tests/

Licenza

MIT

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

py_autotune-0.0.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

py_autotune-0.0.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file py_autotune-0.0.1.tar.gz.

File metadata

  • Download URL: py_autotune-0.0.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for py_autotune-0.0.1.tar.gz
Algorithm Hash digest
SHA256 76e7b9e31f54f054e73d323f509f50d921df5830042776024e7979cf29cd04b8
MD5 3965e4aa41c35b29df27812847f7cf7f
BLAKE2b-256 f0aa0f854f41692cd1a17efd187a58113ebfe63e38e8095188873f2dd5755108

See more details on using hashes here.

File details

Details for the file py_autotune-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: py_autotune-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for py_autotune-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 308df4c5aed9c2604cf04505a499c142c822df55ec2cbc9051c336aea148cea1
MD5 adac8ea51fc01b6af700bc6e408f09bc
BLAKE2b-256 bde5db83fcfab88abb68e90ab44762a9124f55a46d25a7a497238e72051c838f

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