pyabc2.sources.eskin.abctools_url_to_abc

pyabc2.sources.eskin.abctools_url_to_abc(url, *, remove_prefs=('%%titlefont ', '%%subtitlefont ', '%%infofont ', '%%partsfont ', '%%textfont ', '%%tempofont ', '%irish_rolls_on', '%swing', '%abcjs_', '%%MIDI ', '%add_all_playback_links'))

Extract the ABC from an Eskin abctools (michaeleskin.com/abctools/) share URL.

More info: https://michaeleskin.com/tools/generate_share_link.html

Parameters:
  • remove_prefs (str | tuple[str, ...] | Literal[False]) – Remove lines starting with these prefixes. Use False or an empty iterable to keep all lines instead.

  • url (str)

Return type:

str

Notes

def takes preference if both def and lzw are present in the URL query parameters.