Caution

You're reading an old version of this documentation. If you want up-to-date information, please have a look at 0.9.1.

librosa.mela_to_degrees

librosa.mela_to_degrees(mela)[source]

Construct the svara indices (degrees) for a given melakarta raga

Parameters
melastr or int

Either the name or integer index ([1, 2, …, 72]) of the melakarta raga

Returns
degreesnp.ndarray

A list of the seven svara indicies (starting from 0=Sa) contained in the specified raga

Examples

Melakarta #1 (kanakangi):

>>> librosa.mela_to_degrees(1)
array([0, 1, 2, 5, 7, 8, 9])

Or using a name directly:

>>> librosa.mela_to_degrees('kanakangi')
array([0, 1, 2, 5, 7, 8, 9])