Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 5 #84

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Patch 5 #84

wants to merge 5 commits into from

Conversation

Moustov
Copy link
Contributor

@Moustov Moustov commented Jan 16, 2023

find_chords_from_notes fixes

@Moustov
Copy link
Contributor Author

Moustov commented Jan 16, 2023

i'm yearning for a new package under Pypi :^)_

for i in range(0, len(notes)):
m = notes[i]
remaining_list = notes[:i] + notes[i + 1:]
permutations_on_remaining_list = get_all_rotated_notes(remaining_list)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think these are regular rotations of a chord. We should keep the backward compatibility for the get_all_rotated_notes function if it is not a bug.
Why do you need this modification? If you think this feature is useful for others, I recommend you create a new function or add a new argument to enable this.


def test_add4(self):
chords = find_chords_from_notes(["C", "E", "F", "G"])
self.assertEqual(chords, [Chord("Cadd4")])
self.assertEqual(chords, [Chord("Cadd4"), Chord("Cadd11")])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this can be Cadd11.

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.

2 participants