-
Notifications
You must be signed in to change notification settings - Fork 46
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
base: main
Are you sure you want to change the base?
Patch 5 #84
Conversation
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) |
There was a problem hiding this comment.
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")]) |
There was a problem hiding this comment.
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
.
find_chords_from_notes fixes