Skip to main content

No project description provided

Project description

MEI2Volpiano

MEI2Volpiano is a Python library developed for the purpose of converting Neume and CWMN MEI files to Volpiano strings.

Licence

MEI2Volpiano is released under the MIT license.

Installation

  • pip install mei2volpiano

Development Setup

MEI2Volpiano requires at least Python 3.6.

  • Clone project https://github.com/DDMAL/MEI2Volpiano.git
  • Enter the project checkout
  • Execute pip install . or poetry install (this will install development dependencies)

Usage

As long as you're in the python environment, you can execute mei2volpiano or the shorthand mei2vol while in your python virtual environment

Flags

Flag Use
-W or -N Used to specify the type of MEI to converted (Neume or CWN)
txt Used to specify whether the user is inputtng MEI files or a text file containing MEI paths
--export Signifies that the converted Volpiano string(s) should be outputted to '.txt' files

Standard Usage (Neume notation)

To output the MEI file's volpiano string to the terminal, run

mei2vol -N mei filename1.mei

Multiple files can be passed in at once

mei2vol -N mei filename1.mei filename2.mei

Western

To convert MEI files written in Common Western Music Notation (CWMN), run

mei2vol -W mei filename1.mei

All of the CWMN files processed by this library (so far) come from this collection. Thus, we followed the conventions of those files. Namely:

  • Every neume is encoded as a quarter note
  • Stemless notes
  • Syllables are preceded by their notes
  • All notes must have syllables after them
    • If there are notes that are not followed by a syllable, the script will display a message containing these notes. They will not be recorded in the volpiano
    • This can only happen at the end of an MEI file

The resulting volpiano string will have multiple notes seperated by two hyphens. This seperation is dictated by the syllables, representented by: <syl>. The notes themselves are located with the <note> tag and represented by the pname attribute.

Mutiple MEI File Runs

To make it easier to pass in multiple MEI files, the -t flag can be specified as txt:

mei2vol -W txt filename1.txt or mei2vol -N txt filename1.txt filename2.txt ...

where the ".txt" file being passed in must hold the name/relative path of the required MEI files on distinct lines.

Note: If passing inputs through this method, the formats of the MEI files within the text file must be of the same type (either neume for -N or western for -W)

Exporting

The --export tag can be used on any valid input to the program. Simply tack it on to the end of your command like so

mei2vol -N mei filename1.mei --export

and the program will output each mei file's volpiano to a similarly named file as its input.

Tests

To run the current test suite, execute pytest

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

MEI2Volpiano-0.8.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

MEI2Volpiano-0.8.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file MEI2Volpiano-0.8.0.tar.gz.

File metadata

  • Download URL: MEI2Volpiano-0.8.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for MEI2Volpiano-0.8.0.tar.gz
Algorithm Hash digest
SHA256 1ced58987876fcf16965f38c28d195c6c4aa0d6071d94fa084b60d269eb74ddf
MD5 3367a56bf1d40d6a1439065f9b834d57
BLAKE2b-256 6c02273fd95cbd8b9be6d5e23f5b8aaee33e651b4127bc21a25bbb9da8ce23f9

See more details on using hashes here.

File details

Details for the file MEI2Volpiano-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: MEI2Volpiano-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for MEI2Volpiano-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a0612ff5a5c5be72de4f7b135352253e60573caf015a0a63e28042241302b54
MD5 eec748d03568c48ee48e768b25afe809
BLAKE2b-256 5e2df2b457cdc2278908ddd7fd43e30270178177bb5334151b7857ef6d0c2a85

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