From 4f71a996789e9ab635ba3efe577887e84f0d20bf Mon Sep 17 00:00:00 2001 From: hill Date: Fri, 21 Aug 2026 14:15:27 +0200 Subject: [PATCH] Fix malformed ratio in sparschuh-stanhope.scl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Degree 8 is written `697//441`, with a doubled slash. No Scala parser can read it: the file is unparseable from that line on. The intended value is unambiguous. The comment on the same line documents the degree as (128/81) * (6273/6272), and that product is exactly 697/441: 128 * 6273 = 802944 81 * 6272 = 508032 802944 / 508032 = 697/441 (both divide by 1152) It is also consistent with the file's own arithmetic — 6273/6272 is +0.276 cents, as the comment states — and it sits correctly between its neighbours 3/2 (1.5) and 82/49 (1.6735) at 1.5805. This changes one character and preserves the column alignment of the surrounding degrees. No other file in the archive contains a doubled slash. Note that music21 still cannot parse this file after the fix, for an unrelated reason: ScalaData.parse only skips lines that *start* with `!` and does not strip trailing inline `!` comments, which every degree line here carries. That is a separate parser issue, not a data one. --- music21/scale/scala/scl/sparschuh-stanhope.scl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music21/scale/scala/scl/sparschuh-stanhope.scl b/music21/scale/scala/scl/sparschuh-stanhope.scl index 65f5b9bb2f..619ecd7192 100644 --- a/music21/scale/scala/scl/sparschuh-stanhope.scl +++ b/music21/scale/scala/scl/sparschuh-stanhope.scl @@ -9,7 +9,7 @@ Sparschuh's (2010) septenarian variant of Stanhopes (1806) idea 4/3 ! F 620/441 ! F# (45/32) * (3968/3969 ~-0.436...Cents flattend ) 3/2 ! G -697//441 ! G# (128/81) * (6273/6272 ~+0.276...Cents sharper ) +697/441 ! G# (128/81) * (6273/6272 ~+0.276...Cents sharper ) 82/49 ! A (5/3) * (246/245 ~+7.052...Cents sharper ) 16/9 ! Bb 15/8 ! B