Skip to main content

audio-pitch-separation

Extract and separate audio signals by pitch from .mp3 or .wav files. Harmonic, percussive, and note-wise components are visualized and saved as .wav files automatically.

track visualization

Features

  • Supports both mp3 and wav audio input
  • Separates harmonic & percussive components using HPSS
  • Extracts note-wise waveforms via Constant-Q Transform (CQT)
  • Visualizes all audio tracks as waveform plots
  • Saves each pitch as an individual .wav file
  • Easy GUI file picker (via PyQt5)

Installation

pip install audipart

Usage

python -m audipart
  1. A GUI window will prompt you to select an .mp3 or .wav audio file.
  2. From the selected audio, the following will be generated:
    • harmonic.wav and percussive.wav using HPSS
    • .wav files for each pitch from C2 to C8
    • A waveform plot saved as figure.png
  3. All output files will be saved in a new folder named after the input file (excluding the extension).

you can also import audipart like this demo.

Example

For example, if you select song.mp3, the following directory will be created:

song/
├── harmonic.wav
├── percussive.wav
├── C2.wav
├── C#2.wav
├── ...
├── C8.wav
└── figure.png

TODO

  • Extract note-wise MIDI representation

License

MIT License.

Acknowledgements

Metadata

Release files for audipart 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for audipart 0.0.4
File Size Uploaded
audipart-0.0.4.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for audipart 0.0.4
File Interpreter ABI Platform
audipart-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / audipart-0.0.4.tar.gz

Download URL audipart-0.0.4.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3bbc17a66cd217ff9716d0dcc25bcad4262101cec52fbfa6c79483c327903c39
BLAKE2b-256 checksum
How to use checksums
4d2d6f688f80f21d331479a024bebdd52c1202de262aa436ca2a6d366f15eac5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.16

Release files / audipart-0.0.4-py3-none-any.whl

Download URL audipart-0.0.4-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24cae57df4c2d092a8ab022ba8f5636670b98874882a7f9fa4abbe7fe5e20647
BLAKE2b-256 checksum
How to use checksums
ae524a60844dc860b4c256c07a87d4c44a210e80f4369962f4d1e0d3c51565e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page