librosa.display.ChromaSvaraFormatter

class librosa.display.ChromaSvaraFormatter(Sa=None, mela=None, abbr=True, unicode=True)[source]

A formatter for chroma axes with svara instead of notes.

If mela is given, Carnatic svara names will be used.

Otherwise, Hindustani svara names will be used.

If Sa is not given, it will default to 0 (equivalent to C).

See also

ChromaFormatter
__init__(Sa=None, mela=None, abbr=True, unicode=True)[source]

Methods

__init__([Sa, mela, abbr, unicode])

create_dummy_axis(**kwargs)

fix_minus(s)

Some classes may want to replace a hyphen for minus with the proper unicode symbol (U+2212) for typographical correctness. This is a helper method to perform such a replacement when it is enabled via :rc:`axes.unicode_minus`.

format_data(value)

Return the full string representation of the value with the position unspecified.

format_data_short(value)

Return a short string version of the tick value.

format_ticks(values)

Return the tick labels for all the ticks at once.

get_offset()

set_axis(axis)

set_bounds(vmin, vmax)

set_data_interval(vmin, vmax)

set_locs(locs)

Set the locations of the ticks.

set_view_interval(vmin, vmax)

Attributes

axis

locs