Skip to main content

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

Release files for mei2volpiano 0.8.2

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

Source distribution (sdist)

Source distribution for mei2volpiano 0.8.2
File Size Uploaded
MEI2Volpiano-0.8.2.tar.gz 9.2 kB Details

Built distribution (wheel)

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

Total release size: 17.8 kB

Release files / MEI2Volpiano-0.8.2.tar.gz

Download URL MEI2Volpiano-0.8.2.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fc8984554c476e8bfbf7d96ee8501d447770f7706449f827239c5362ec05531c
BLAKE2b-256 checksum
How to use checksums
30505ddcf98c7831558d83d9b91ac84fb4bb905d6f271fed5908c3414cbbf2b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release files / MEI2Volpiano-0.8.2-py3-none-any.whl

Download URL MEI2Volpiano-0.8.2-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4541330b995073114086c2ed33c2528f22fcd1cf46fb8c1526febe4af43f772c
BLAKE2b-256 checksum
How to use checksums
ca15119f69cc50d3c123397237b9ccb93203c3839ed7c3159b566f4de8af83c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.8.2 This release

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.3

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.1.1

2 release files

0.1.0

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