Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

py2shpss

Build Status

A python implementation of two-stage HPSS (a singing voice extraction method)

Two-stage HPSS separates a music signal into harmonic, vocal, and percussive components.

License

Copyright (c) 2020 Hideyuki Tachibana, MIT License

Usage

Install

pip install py2shpss

Code Example

# import
import numpy as np
import scipy.io.wavfile as wavfile
import py2shpss

# load music
sr, sig = wavfile.read("your_awesome_music.wav")
if len(sig.shape) == 2:
        # mix left and right channels if stereo
        sig = np.mean(sig, axis=1)
sig = sig / np.max(sig)

# process and save
twostageHPSS = py2shpss.twostageHPSS(samprate = sr)
harmonic, vocal, percussive = twostageHPSS(sig)
wavfile.write("vocal.wav", sr, vocal)

Citation

Two-stage HPSS was proposed in following papers.

Metadata

Release files for py2shpss 0.1.0a4

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

Source distribution (sdist)

Source distribution for py2shpss 0.1.0a4
File Size Uploaded
py2shpss-0.1.0a4.tar.gz 41.6 kB Details

Built distribution (wheel)

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

Total release size: 48.3 kB

Release files / py2shpss-0.1.0a4.tar.gz

Download URL py2shpss-0.1.0a4.tar.gz
Size 41.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5b41f497d4577defb947e615fef86cdaf82ab7c66c8078a7fd536b6380de397f
BLAKE2b-256 checksum
How to use checksums
a428e763c6296511c4cdafe36ad1e8de866805997938b7a29b513ce9a033fd98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / py2shpss-0.1.0a4-py3-none-any.whl

Download URL py2shpss-0.1.0a4-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2969249bbecbb5e8dd98292a39de0c439837632d221f19d356a7647c63a7483b
BLAKE2b-256 checksum
How to use checksums
869fb8809c91bb900db4a0d5e02540e69929e9d2f6e4a3d023945ed11482d34c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9
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