钢琴键
Piano Keys

原始链接: https://www.mathpages.com/home/kmath043.htm

## 钢琴琴键宽度:一个令人惊讶的复杂问题 看似简单的钢琴键盘布局隐藏着一个几何挑战:将尺寸相同的黑键嵌入在前端宽度相等的白键之间。如果希望所有白键的后端宽度也相同,在数学上是无法完美实现的。 作者探讨了最小化白键后端宽度*差异*的解决方案。最初的尝试会导致高达半个黑键宽度的差异。然而,实际的键盘采用了巧妙的排列方式,其中一些甚至可以将差异减小到黑键宽度的1/12——这是一个常见且实用的解决方案。 进一步的分析,放宽了白键前端宽度必须相同的限制,并允许黑键尺寸有轻微变化(同时保持它们在整个八度音阶中总共占据5/12的比例),揭示了一种*最优*的排列方式。这种方案将最大差异降低到平均黑键宽度的1/29.88——显著小于1/12的解决方案,换算成标准6.5英寸八度音阶的白键,仅为0.0181英寸。这种最优解还表现出一种奇特的数学特性:八度音阶的中点恰好落在两个琴键的边界上。

## 黑客新闻上关于钢琴键布局的讨论 黑客新闻上正在讨论钢琴键布局似乎有些随意。最初的帖子链接到一篇文章,质疑为什么不将白键均匀排列以适应黑键,并建议存在一种更简单的排列方式。 许多评论者争论了替代布局的实用性。一些人指出,目前的排列方式虽然看起来不规则,但能够实现高效的手指定位和空间感知,尤其是在进行大幅跳跃时。另一些人强调,标准布局是在均等律调音广泛采用之前发展起来的,在历史上,不同的琴键*声音*是不同的。 几位用户提到了扬科键盘等替代键盘设计,它提供了一种更对称的布局,但可能会牺牲传统钢琴的直观手感。讨论还涉及了肌肉记忆和音乐家的适应能力,一些人声称他们可以快速适应不同的键盘配置。最终,大家的共识似乎是,虽然替代布局在理论上是可行的,但目前的系统代表了一种在音乐性、可演奏性和历史背景之间取得良好平衡的成熟妥协方案。
相关文章

原文
Piano Keys
        
If you've ever looked closely at a piano keyboard you may have 
noticed that the widths of the white keys are not all the same 
at the back ends (where they pass between the black keys).  Of 
course, if you think about it for a minute, it's clear they 
couldn't possibly all be the same width, assuming the black keys 
are all identical (with non-zero width) and the white keys all 
have equal widths at the front ends, because the only simultaneous
solution of 3W=3w+2b and 4W=4w+3b is with b=0.

After realizing this I started noticing different pianos and how 
they accommodate this little problem in linear programming.  Let W 
denote the widths of the white keys at the front, and let B denote 
the widths of the black keys.  Then let a, b,..., g (assigned to 
their musical equivalents) denote the widths of the white keys 
at the back.  Assuming a perfect fit, it's impossible to have 
a = b = ... = g.  The best we can do is try to minimize the 
greatest difference between any two of these keys.

One crude approach would be to set d=g=a=(W-B) and b=c=e=f=(W-B/2), 
which gives a maximum difference of B/2 between the widths of any 
two white keys (at the back ends).  This isn't a very good solution, 
and I've never seen an actual keyboard based on this pattern 
(although some cartoon pianos seem to have this pattern).  A better 
solution is to set a=b=c=e=f=g=(W-3B/4) and d=(W-B/2).  With this 
arrangement, all but one of the white keys have the same width at 
the back end, and the discrepancy of the "odd" key (the key of "d") 
is only B/4.  Some actual keyboards (e.g., the Roland HP-70) use 
this pattern.

Another solution is to set c=d=e=f=b=(W-2B/3) and g=a=(W-5B/6), 
which results in a maximum discrepancy of just B/6.  There are 
several other combinations that give this same maximum discrepancy, 
and actual keyboards based on this pattern are not uncommon.

If we set c=e=(W-5B/8) and a=b=d=f=g=(W-3B/4) we have a maximum 
discrepancy of only B/8, and quite a few actual pianos use this 
pattern as well.  However, the absolute optimum arrangement is to 
set c=d=e=(W-2B/3) and f=g=a=b=(W-3B/4), which gives a maximum 
discrepancy of just B/12.  This pattern is used on many keyboards, 
e.g. the Roland PC-100.

The "B/12 solution" is the best possible given that all the black keys 
are identical and all the white keys have equal widths at the front 
ends.  For practical manufacturing purposes this is probably the 
best approach.  However, suppose we relax those conditions and allow 
variations in the widths of the black keys and in the widths of the 
white keys at the front ends.  All we require is that the black 
keys (in total) are allocated 5/12 of the octave.  On this basis, 
what is the optimum arrangement, minimizing the maximum discrepancy 
between any two widths of the same type?

Let A, B,...G denote the front-end widths of the white keys, and 
let a#, c#, d#, f#, g# denote the widths of the black keys.  I 
believe the optimum arrangement is given by dividing the octave 
into 878472 units, and then setting

 f=g=a=b=72156 units      c=d=e=74606 units      discrepancy=2450

 f#=g#=a#=72520 units     c#=d#=74235 units      discrepancy=1715

 F=G=A=B=126546 units     C=D=E=124096 units     discrepancy=2450

The maximum discrepancy between any two widths of the same class is 
1/29.88 of the width of the average black key, which is less than 
half the discrepancy for the "B/12 solution".  

The max discrepancy is 1/358.56 of the total octave for the white 
keys, and 1/512.22 for the black keys.  Since an octave is normally 
about 6.5 inches, the max discrepancy is about 0.0181 inches for the 
white keys and 0.0127 inches for the black keys.  (One peculiar fact 
about this optimum arrangement is that the median point of the octave, 
the boundary between f and f#, is exactly 444444 units up from the 
start of the octave.)

Return to MathPages Main Menu
联系我们 contact @ memedata.com