Previous topic

music21.musedata.base40

Next topic

music21.musicxml.fromMxObjects

Table Of Contents

Table Of Contents

This Page

music21.musedata.translate

Functions for translating music21 objects and MuseDataHandler instances. Mostly, these functions are for advanced, low level usage. For basic importing of MuseData files from a file or URL to a Stream, use the music21 converter module’s parse() function.

Functions

music21.musedata.translate.museDataWorkToStreamScore(museDataWork, inputM21=None)

Given an museDataWork object, build into a multi-part Score with metadata.

This assumes that this MuseDataHandler defines a single work (with 1 or fewer reference numbers).

if the optional parameter inputM21 is given a music21 Stream subclass, it will use that object as the outermost object. However, inner parts will always be made Part objects.

music21.musedata.translate.musedataPartToStreamPart(museDataPart, inputM21=None)

Translate a musedata part to a Part.