Skip to content

Adding penalization to identical contiguous voicing#10

Open
napulen wants to merge 1 commit intoekzhang:masterfrom
napulen:repeatedharmonies
Open

Adding penalization to identical contiguous voicing#10
napulen wants to merge 1 commit intoekzhang:masterfrom
napulen:repeatedharmonies

Conversation

@napulen
Copy link
Contributor

@napulen napulen commented Nov 19, 2020

Dealing with #9.

Slight penalization on repeated voicings (cost = 2).

Tested with this example (a slight variation of the original example, 3 repeated harmonies):

parser.set_defaults(
        key="B-",
        chord_progression="I I IV IV ii V V I",
        durations="1 1/2 1 1/2 1 1/2 1/2 1",
        time_signature="6/8",
)

Without penalization:
image

With penalization:
image

Notice that the third repeated pair, V and V, was voiced identically (not always changing the voicing, which may be desired), but the first two changed.

Second version sounds much better in my opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant