Skip to main content

Support for singing voice synthesis file formats in music21 via libresvip

Project description

music21_svs_formats

Import and export Singing Voice Synthesis (SVS) project formats in music21 via Libresvip.

Music21 is designed for classical music theory, primarily centered around staff notation. With this library, users can easily convert SVS project files into sheet music readable by human singers and performers, or import MusicXML files (containing lyrics) downloaded from musescore.com into SVS software.

Installation

git clone https://github.com/oxygen-dioxide/music21-svs-formats
cd music21-svs-formats
pip install -e .[hyphen]

Features

  • Bi-directional conversion between SVS software data and Music21 objects:
    • Notes, time signatures, and tempo.
    • Conversion between SVS melisma symbols (-) and musical slurs in staff notation.
  • Automatic completion of metadata required by Music21 that is often absent in SVS projects:
    • Automatic key detection.
    • Automatic splitting note to tied notes when needed.
    • Automatic hyphenation of multi-syllabic lyrics (e.g., listening + + -> lis, -ten, -ing).

Example

Convert an SVS project file to staff notation (requires MuseScore installed):

import music21
import music21_svs_formats

music21_svs_formats.registAllFormats()

infile = "path_to_your_file.ustx"
project = music21.converter.parseFile(infile, forceSource=True, hyphenLang="en_US")
project.show()

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

music21_svs_formats-0.0.2.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

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

music21_svs_formats-0.0.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file music21_svs_formats-0.0.2.tar.gz.

File metadata

  • Download URL: music21_svs_formats-0.0.2.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for music21_svs_formats-0.0.2.tar.gz
Algorithm Hash digest
SHA256 47ff91ed4176dd07bb965f962ad33dfb296c6730be8c45c1513c23eb89019e6d
MD5 725ad6514bee7cb22998f64cba247388
BLAKE2b-256 c80bfcca16b649bfadbe9030faa1b6df927baa4a80baf20a723ef3a372013ff7

See more details on using hashes here.

Provenance

The following attestation bundles were made for music21_svs_formats-0.0.2.tar.gz:

Publisher: release.yml on oxygen-dioxide/music21-svs-formats

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file music21_svs_formats-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for music21_svs_formats-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ee549c5c1f719247752dd5292c5bdcaec93bf1da394f7ef34f736a265aed8fc
MD5 fcd988722d8ac5a6c075df3463bf238e
BLAKE2b-256 9e773f111bfec828b326701b55beb592c35820f378d6456614dcc666d34fe8b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for music21_svs_formats-0.0.2-py3-none-any.whl:

Publisher: release.yml on oxygen-dioxide/music21-svs-formats

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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