Skip to content

ISLA S2400: remove the unused pitchFineCents local in the creator - #377

Open
douglas-carmichael wants to merge 1 commit into
git-moss:mainfrom
douglas-carmichael:s2400-unused-pitch-variable
Open

ISLA S2400: remove the unused pitchFineCents local in the creator#377
douglas-carmichael wants to merge 1 commit into
git-moss:mainfrom
douglas-carmichael:s2400-unused-pitch-variable

Conversation

@douglas-carmichael

Copy link
Copy Markdown
Contributor

writeTrack computed pitchFineCents but never used it: writeMainSlot recomputed the same expression inline when writing FIELD_PITCH_FINE, so the fine tune was already written correctly and the local was a leftover. This moves the local into writeMainSlot and writes the field from it.

Verified: a 2-zone SFZ with tune=37 / tune=-22 converted to a kit with this branch and with main gives byte-identical .kit and .wav files, and the kit converted back to SFZ returns tune=37 / tune=-22.

Fixes #376

writeTrack computed pitchFineCents but never used it; writeMainSlot
recomputed the same expression inline when writing FIELD_PITCH_FINE.
Move the local to writeMainSlot and write it from there. The written
kit is byte-identical.

Fixes git-moss#376
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.

Unused variable in S2400Creator

1 participant