This library generates four-part chorales in the style of Bach given any number of constraints and enabled features. However, it also can be used as a general music-theory library.
Since the applied chord rules currently take the scale of the previous chord rather than the scale of the chord being tonicized, when the chord being tonicized is also a pivot chord this results in the applied chord being wrong. E.g. C: I V/vi F: vi V I, where vi is ii in C, is valid, whereas the applied chord should be V/ii in this style.
Since the applied chord rules currently take the scale of the previous chord rather than the scale of the chord being tonicized, when the chord being tonicized is also a pivot chord this results in the applied chord being wrong. E.g. C: I V/vi F: vi V I, where vi is ii in C, is valid, whereas the applied chord should be V/ii in this style.