The Mathematical Nature of Sound
The Mathematical Nature of Sound
声音的数学本质
When we listen to a melody that moves our souls, when we hear the resonant chord that sends shivers down our spine, we are experiencing one of the most profound connections between mathematics and human experience. Every sound we hear—every note played on a piano, every phrase sung by a voice, every beat of percussion—carries within it an elegant mathematical structure. This book invites you to discover that structure, to understand why mathematics and music are not merely related but are, in some deep sense, the same thing expressed in different languages.
当我们聆听一首拨动心弦的旋律,当我们感受到某个和弦引发的共鸣,我们正在体验数学与人类体验之间最深刻的联系之一。我们听到的每一个声音——钢琴上弹奏的每一个音符、嗓音中唱出的每一个乐句、打击乐器敲击出的每一个节拍——都蕴含着一种优雅的数学结构。本书邀请你去发现这种结构,理解为什么数学与音乐不仅仅是相关的,而是在某种深刻意义上,用不同语言表达的同一件事物。
The journey begins with sound itself. Sound is everywhere around us, yet its mathematical nature is often hidden from casual observation. In this opening chapter, we will uncover the fundamental principles that govern sound: how it is produced, how it travels, and how our ears transform vibrations in the air into the rich tapestry of musical experience. Along the way, we will encounter the first of many mathematical tools that will accompany us throughout this book—tools that transform the abstract concepts of physics into the concrete language of numbers and equations.
这段旅程从声音本身开始。声音环绕着我们,然而它的数学本质往往隐藏在日常观察之下。在本章中,我们将揭示支配声音的基本原理:它是如何产生的、如何传播的,以及我们的耳朵如何将空气中的振动转化为丰富多彩的音乐体验。在这一过程中,我们将遇到本书中将多次使用的第一批数学工具——这些工具将物理学的抽象概念转化为数字和方程的具体语言。
The Physics of Vibration
振动的物理学
At the heart of every sound lies vibration. When a guitarist plucks a string, that string begins to vibrate back and forth, disturbing the surrounding air molecules. When a drummer strikes a membrane, it wobbles in a complex pattern, pushing and pulling the air in waves. Even the human voice works through vibration: our vocal cords vibrate when air from the lungs passes between them, creating the acoustic vibrations that carry speech and song.
每一个声音的核心都是振动。当吉他手拨动琴弦时,琴弦开始来回振动,扰动周围的空气分子。当鼓手敲击鼓面时,鼓面以一种复杂的模式颤动,以波的形式推拉空气。甚至人声也是通过振动工作的:当来自肺部的空气通过声带时,声带振动,产生携带言语和歌唱的声学振动。
To understand sound mathematically, we must first understand the simplest form of vibration: simple harmonic motion (SHM). Consider a mass attached to a spring, hanging vertically. If we pull the mass down and release it, it will bounce up and down. At first glance, this motion might seem complicated, but a careful examination reveals a beautiful simplicity. The mass accelerates fastest when passing through its rest position (the point where the spring is neither stretched nor compressed), and it slows down as it reaches the extremes of its motion, momentarily stopping before reversing direction.
要从数学上理解声音,我们首先必须理解最简单的振动形式:简谐运动(Simple Harmonic Motion, SHM)。考虑一个挂有弹簧的质量块,垂直悬挂。如果我们把质量块向下拉然后释放,它将上下弹跳。乍一看,这个运动似乎很复杂,但仔细观察会发现一种美丽的简洁性。当质量块通过其静止位置(弹簧既不拉伸也不压缩的点)时,它的加速度最大,而在运动到极限位置的过程中,它会减速,短暂停顿后反向运动。
What makes simple harmonic motion so special from a mathematical perspective is that the position of the vibrating object can be described perfectly by a sine or cosine function. If we graph the position versus time, we get a smooth, repeating wave pattern. This wave pattern is not just any pattern—it is the most fundamental wave in all of physics, the wave that underlies everything from sound to light to quantum mechanics.
从数学角度来看,简谐运动之所以特殊,是因为振动物体的位置可以用正弦或余弦函数完美地描述。如果我们绘制位置与时间的关系图,就会得到一个平滑的、重复的波形。这个波形不是随便什么模式——它是整个物理学中最基本的波形,是从声音到光再到量子力学的所有事物的基础。
The mathematical description of simple harmonic motion takes the form:
简谐运动的数学描述采用以下形式:
$$x(t) = A\sin(2\pi ft + \phi)$$
In this equation, $x(t)$ represents the position of the vibrating object at time $t$. The parameter $A$ is the amplitude—how far the object moves from its rest position. The parameter $f$ is the frequency, which tells us how many complete oscillations occur per second. The parameter $\phi$ is the phase, which determines where in its cycle the motion starts. We will encounter this equation, or variations of it, repeatedly throughout our exploration of musical mathematics.
在这个方程中,$x(t)$ 表示振动物体在时间 $t$ 时的位置。参数 $A$ 是振幅——物体从静止位置移动的距离。参数 $f$ 是频率,它告诉我们每秒发生多少次完整振动。参数 $\phi$ 是相位,它决定运动从其周期的哪个位置开始。在我们探索音乐数学的过程中,我们将反复遇到这个方程或其变体。
纵波与声音的传播
Sound waves belong to a special category of waves called longitudinal waves. To understand what this means, let's contrast longitudinal waves with the more familiar transverse waves. Imagine tying a rope to a doorknob and shaking the free end up and down. You create a wave that travels along the rope, with the rope itself moving perpendicular (up and down) to the direction the wave travels. This is a transverse wave—water waves and light waves are also transverse waves.
声波属于一种特殊类别的波,称为纵波。要理解这意味着什么,让我们将纵波与更熟悉的横波进行对比。想象一下,把一根绳子绑在门把手上,然后上下摇动自由端。你沿着绳子产生了一个波,绳子本身垂直于波的传播方向(上下)移动。这是一个横波——水波和光波也是横波。
Sound, however, works differently. In a sound wave, the air molecules themselves move back and forth parallel to the direction the wave travels. Imagine a series of billiard balls in a line, with one ball at one end and a wall at the other. When you push the first ball into the second, the second pushes the third, and so on. Each ball barely moves from its own position, but the "push" travels down the line and eventually reaches the wall. This is essentially how a sound wave propagates: molecules bump into their neighbors, transferring energy without themselves traveling far.
然而,声音的工作方式不同。在声波中,空气分子本身沿波传播的方向来回移动。想象一排台球,一端有一个球,另一端有一堵墙。当你把第一个球推向第二个球时,第二个球推向第三个球,以此类推。每个球几乎不从自己的位置移动,但"推力"沿着这排球传递,最终到达墙壁。这本质上就是声波传播的方式:分子撞击它们的邻近分子,在自身不移动太远的情况下传递能量。
This creates a pattern of compressions and rarefactions in the air. In regions of compression, air molecules are packed together more densely than usual; in regions of rarefaction, they are spread apart. These pressure variations travel outward from the source of the sound at a speed of approximately 343 meters per second in dry air at room temperature. The speed of sound in other media differs significantly—about 1,480 meters per second in water and over 5,000 meters per second in steel. This variation is not random; it follows from the mathematical relationship between the speed of a wave and the properties of the medium through which it travels.
这在空气中形成了压缩和稀疏的模式。在压缩区域,空气分子比平时更密集地堆积在一起;在稀疏区域,它们则分散开来。这些压力变化从声源向外传播,在室温下的干燥空气中,速度约为每秒343米。在其他介质中,声音的速度差异很大——在水中约为每秒1480米,在钢铁中超过每秒5000米。这种变化不是随机的,而是源于波的传播速度与波所通过的介质特性之间的数学关系。
```mermaid graph TD A[声源振动] --> B[空气分子被压缩] B --> C[压缩区传播] C --> D[空气分子稀疏] D --> E[稀疏区传播] E --> F[继续传播到下一区域] F --> B style A fill:#e1f5fe style B fill:#b3e5fc style C fill:#b3e5fc style D fill:#e1f5fe style E fill:#e1f5fe style F fill:#b3e5fc ```
The diagram above illustrates how sound waves propagate through air as alternating regions of compression and rarefaction. This longitudinal wave pattern is fundamental to understanding all acoustic phenomena.
上图展示了声波如何通过交替的压缩和稀疏区域在空气中传播。这种纵波模式是理解所有声学现象的基础。
Frequency and the Mathematics of Pitch
频率与音高的数学
Among all the parameters that describe a sound wave, none is more important to music than frequency. Frequency, denoted by $f$, measures how many complete cycles of vibration occur in one second. The unit of frequency is the hertz (Hz), named after the German physicist Heinrich Hertz, who was the first to experimentally confirm the existence of electromagnetic waves. One hertz means one cycle per second; 440 Hz means 440 cycles per second.
在描述声波的所有参数中,对音乐而言最重要的是频率。频率,用 $f$ 表示,测量每秒发生多少次完整的振动周期。频率的单位是赫兹(Hz),以德国物理学家海因里希·赫兹命名,他是第一个通过实验证实电磁波存在的人。一赫兹意味着每秒一个周期;440赫兹意味着每秒440个周期。
The frequency of a sound wave is directly perceived by our ears as pitch. Higher frequencies correspond to higher pitches; lower frequencies correspond to lower pitches. When a piano is tuned, each key is adjusted to produce a specific frequency. The note known as "middle A" is standardized to vibrate at 440 Hz—a frequency that serves as the referen