sheet_converter#

scikitplot.doremi.sheet_converter(sheet=None, add_frequency=True, return_mode='dict')[source]#

Display parsed notes or note frequencies from a musical sheet.

Parameters:
sheetstr or list or dict or None

Musical input in one of the supported formats: - str : Sheet string like “C4-1 D4-0.5” - list : List of (note, octave, duration) - dict : Dictionary with “notes” key as list of note dicts If None, uses internal default SHEET.

add_frequencybool, default=True

If True, include frequency in output.

return_mode{‘str’, ‘list’, ‘dict’, ‘df’}, default=’dict’

Output format: - ‘str’ : Multiline string - ‘list’ : List of strings - ‘dict’ : List of dicts - ‘df’ : pandas DataFrame

Returns:
str or list or dict or pandas.DataFrame

Formatted note data.

Parameters:
Return type:

str | list | dict | DataFrame