musicaiz.features.predict_possible_progressions¶
- musicaiz.features.predict_possible_progressions(possible_chords: List[List[Tuple[musicaiz.structure.notes.NoteClassBase, musicaiz.harmony.chords.AllChords, musicaiz.harmony.keys.ModeConstructors]]], scale: Optional[Union[str, musicaiz.harmony.keys.Scales]] = None) Dict[str, List[musicaiz.harmony.keys.DegreesRoman]] [source]¶
Get all possible scales and degrees from a chords list (chord progression) We retrieve a list of degrees which items correspond to one time step each.
- Parameters
- possible_chords: list
the possible chords in each time step. This argument is a list, in which each element is a time step with is another list of the possible degrees that can belong to the same time step. The chords are represented by a tuple of (degree, tonality and mode).
- scale: str or Scale object.
if we do know the scale, the funcion will return only the dict with the key of the input scale and the degrees that belong to that scale. Otherwise we’ll predict all the possible scales and map each chord to its possible scales.