musicaiz.features.predict_progression

musicaiz.features.predict_progression(scales: Dict[str, List[musicaiz.harmony.keys.DegreesRoman]], scale: Optional[Union[str, musicaiz.harmony.keys.Scales]]) Tuple[str, List[musicaiz.harmony.keys.DegreesRoman]][source]

Uses predict_possible_progressions to predict all the scales and progressions that belong to a note_seq but this method only returns one of them. If the scale is known, it returns the progression of that scale, otherwise this method will return the scale that has more known degrees in the progression. Ex.: If a scale has only one known degree in all the time steps, it is probable that the scale is not the correct one (although it is a secundary dominant. If the scale has a predicted degree more time steps the probability of that scale being the correct one increases.