Skip to content

Drop redundant deepcopies in AbstractScale.nextPitch and getRelativeNodeDegree (AI) - #2048

Merged
mscuthbert merged 1 commit into
cuthbertLab:masterfrom
float3:drop-redundant-scale-deepcopies
Sep 30, 2026
Merged

mscuthbert merged 1 commit into
cuthbertLab:masterfrom
float3:drop-redundant-scale-deepcopies

Conversation

@float3

@float3 float3 commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

getPitchFromNodeDegree already returns a copy (since #2028), and getRelativeNodeDegree returns an int.

AI-assisted (Claude).

…odeDegree

IntervalNetwork.nextPitch builds its answer from getPitchFromNodeDegree,
which already hands back a copy, and getRelativeNodeDegree answers an int.
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 93.358% (+0.001%) from 93.357% — float3:drop-redundant-scale-deepcopies into cuthbertLab:master

@mscuthbert

Copy link
Copy Markdown
Member

great, and great test!

@mscuthbert
mscuthbert merged commit 1e2ba8b into cuthbertLab:master Sep 30, 2026
8 checks passed
@float3
float3 deleted the drop-redundant-scale-deepcopies branch October 1, 2026 06:22
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