Skip to content

Pass the altered degrees to find in derive (AI) - #2044

Merged
mscuthbert merged 1 commit into
cuthbertLab:masterfrom
float3:derive-with-altered-degrees
Sep 24, 2026
Merged

mscuthbert merged 1 commit into
cuthbertLab:masterfrom
float3:derive-with-altered-degrees

Conversation

@float3

@float3 float3 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

derive called IntervalNetwork.find without the scale's alteredDegrees, which deriveRanked and deriveAll both pass, so a harmonic minor scale was derived as if it were a natural minor:

>>> scale.HarmonicMinorScale().derive(['C', 'D', 'E-', 'B'])
<music21.scale.HarmonicMinorScale A harmonic minor>

@coveralls

coveralls commented Sep 23, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 93.35%. remained the same — float3:derive-with-altered-degrees into cuthbertLab:master

@mscuthbert

Copy link
Copy Markdown
Member

Looks good. When you can fix the conflicts from other PR I will merge.

derive called IntervalNetwork.find without the scale's alteredDegrees,
which deriveRanked and deriveAll both pass, so a harmonic minor scale
was derived as if it were a natural minor:

    >>> scale.HarmonicMinorScale().derive(['C', 'D', 'E-', 'B'])
    <music21.scale.HarmonicMinorScale A harmonic minor>

A harmonic minor has neither the E- nor the B; C harmonic minor has
all four, and is what deriveRanked ranks first.
@float3
float3 force-pushed the derive-with-altered-degrees branch from 389bccf to e299316 Compare September 24, 2026 06:01
@float3

float3 commented Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

done

@mscuthbert
mscuthbert merged commit 4e6d4d6 into cuthbertLab:master Sep 24, 2026
7 checks passed
@float3
float3 deleted the derive-with-altered-degrees branch September 24, 2026 18:33
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.

3 participants