Skip to main content

Module abc

Module abc 

Source
Expand description

ABC notation export helpers. ABC notation format helpers.

This module intentionally stays close to reusable ABC token conversion, similar in spirit to music21.abcFormat. Complete score layout and application-specific snippets belong in callers.

Structs§

ExportOptions
How to_abc writes a score.

Functions§

abc_chord
Returns an ABC chord token for the supplied pitches.
abc_duration
Returns an ABC duration suffix for a rational note length.
abc_note
Returns an ABC note token for a pitch.
abc_rest
Returns an ABC rest token.
from_abc
Reads ABC text into a score: music21’s converter.parse for the format.
from_abc_number
Reads one tune out of ABC text holding several, by its X: reference number: music21’s converter.parse(..., number=n).
pitch_name_from_abc_note
Returns a music21-style pitch name for an ABC note token.
pitch_names_from_abc_chord
Returns music21-style pitch names for a simple ABC chord token.
to_abc
Writes a score as ABC.