Expand description
NoteWorthy Composer’s text format, .nwctxt: music21’s
noteworthy.translate.
A file is a line per object, each |Command|Name:value|Name:value, and
from_noteworthy reads it into a score of a part per staff. The binary
.nwc format is read by from_nwc, which writes it out as those lines
first, as music21 does.
Modules§
- placement
- Where music21’s NoteWorthy translator places notes, rests and marks in a measure, and how it joins slurs and ties: the one implementation, generic over what the measures are.
Structs§
- Member
- A note as a chord or a staff holds it.
- NwcFont
- A font the header names: music21’s
FontDict. - NwcHeader
- What a file’s header says: music21’s
NWCConverter.parseHeader. - NwcObject
- One object of a staff: music21’s
NWCObject. - NwcReader
- music21’s
NWCConverteras a reader: the file, where it has got to in it, its version, and the alteration last written on each staff position, by the position modulo seven, until a barline. - NwcStaff
- A staff and its objects: music21’s
NWCStaff.
Enums§
- BarStyle
- What a barline
Styledoes to the measure: music21’screateBarlines. - Object
- What an object is, as much of it as is written out.
Constants§
- ALTERATION_
TEXTS - music21’s
constants.AlterationTexts:xis a double sharp,va double flat. - BAR_
STYLES - music21’s
constants.BarStyles. - CLEF_
NAMES - music21’s
constants.ClefNames. - DURATION_
VALUES - music21’s
constants.DurationValues. - FLAT_
MASK - music21’s
constants.FlatMask. - MIDI_
INSTRUMENTS - music21’s
constants.MidiInstruments, the General MIDI names by program. - OCTAVE_
SHIFT_ NAMES - music21’s
constants.OctaveShiftNames. - SHARP_
MASK - music21’s
constants.SharpMask.
Functions§
- bar_
style - The barline a
Stylenames. - clef_
named - music21’s
createClef: the clef aTypeandOctaveShiftname, and the name music21’s reader keeps for it ascurrentClef. - dump_
lines - music21’s
dumpToNWCText: the title and author, then each staff’s lines. - duration_
of - music21’s
setDurationForObject: the length aDurvalue gives, with its dots, grace and triplet. - first_
number - The staff position in a
Posvalue: its first whole number, as music21 finds it with-?\d+. - flow_
kind - music21’s
createOtherRepetitions: the mark a flowStylenames. - from_
noteworthy - Reads the text of a NoteWorthy Composer
.nwctxtfile into a score, as music21’sconverter.parsereads one. - from_
nwc - Reads a NoteWorthy Composer
.nwcfile’s bytes into a score, as music21’sconverter.parsereads one: each staff and object written out as a line of the text format (nwc_lines) and those read bysuper::from_noteworthy’s reader. - key_
sharps - music21’s
createKey: sharps less flats in aSignaturevalue. - lyrics
- music21’s
createLyrics: a verse split into the syllables sung to each note, a syllable after a hyphen written with one before it. - meter_
ratio - music21’s
createTimeSignature: aSignaturevalue as a ratio. - nwc_
lines - The lines of NoteWorthy text a
.nwcfile’s bytes stand for, as music21’sdumpToNWCTextwrites them: the title and author, then for each staff its name, its instrument and its objects. - staff_
positions - The positions of a staff under a clef, as music21’s
noteworthy.dictionarieslays them out: the octave of the lowest of seven positions, that position, and the steps from it. The clef is named as music21’s reader keeps it (TREBLE,BASS8dw,ALTO, …). - step_
and_ octave - The step and octave of a staff position under a clef: music21’s
getStepAndOctaveFromPosition. Position 1 under the treble clef is C5, and each position up or down is a step.