Skip to main content

Module native

Module native 

Source
Expand description

The features music21 adds of its own: music21’s features.native. Each is an Extractor in NATIVE, found by its id with extractor.

The key features read the keys the piece states or, failing those, the key it is analysed to be in; the quarter-length features (QL) read how long its notes are; the simultaneity features (CS) read the chords of the piece chordified, and its chord symbols; the Landini cadence (MC1) reads how each part’s melody ends. music21’s habits are kept where they decide a value: the most common length is the last of those equally common, and a chord symbol that sounds nothing refuses the bass-motion feature, as music21 finds no bass in it.

music21’s language feature (TX1) reads the lyrics against texts in seven languages, about 1.9 MB of them, so it is here only with the language-detection feature.

Constants§

NATIVE
Every native extractor music21 lists, in music21’s order: its language feature last, and only with the language-detection feature.

Functions§

extractor
The native extractor with this id, such as QL1 or CS12.