pyabc2.sources.hardy.load_meta

pyabc2.sources.hardy.load_meta(key, *, redownload=False, remove_prefs=('%',))

Load ABC tune blocks from a Paul Hardy tunebook, no parsing.

Parameters:
  • key (str) –

    Tunebook key.

    Key

    Description

    session

    Paul Hardy’s Session Tunebook (the main tunebook)

    annex

    Paul Hardy’s Annex Tunebook (current edition; tunes awaiting next session edition)

    basic

    Paul Hardy’s Basic Tunebook (subset of simpler/common session tunes)

    xmas

    Paul Hardy’s Xmas Tunebook (Christmas tunes and carols)

    possible

    Paul Hardy’s Possible Tunebook (tunes not yet fully learned)

    pete_mac

    Paul Hardy’s Pete Mac Tunebook (CC0 tunes by Pete Mac)

    clarke

    William Clarke of Feltwell Tunebook (19th century East Anglian manuscript)

    See https://pghardy.net/tunebooks/ for more information.

  • redownload (bool) – Re-download the data file.

  • remove_prefs (str | tuple[str, ...] | Literal[False]) – Remove lines starting with these prefixes (applied at load time; cached file is unmodified). Defaults to ("%",), which strips all % comment and %% directive lines. Pass False or () to keep all lines.

Return type:

list[str]

See also

Tune sources