Simscape Model - calculate inharmonicity in piano string.
Version 1.0.1 (470 KB) by
Steve Thompson
SImscape models the flexural vibration of a piano string including the wire bending stiffness. Modal frequencies are a good match to theory.
The vibrating “string” of a piano is a thin steel wire that is tensioned to tune it to the intended playing frequency. Sufficient tension in the wire gives it the properties approximately of a flexible string, with its multiple resonance frequencies approximately at harmonic intervals. However the wire bending stiffness modifies the resonance frequencies by a small amount. It is well known that the additional stiffness modifies the resonance frequencies
such that
where
and
is the fundamental frequency of a similar ideal flexible string. A Simscape model of the vibrating string demonstrates this behavior, and its solver has sufficient resolution to match this theoretical prediction.
Cite As
Steve Thompson (2026). Simscape Model - calculate inharmonicity in piano string. (https://www.mathworks.com/matlabcentral/fileexchange/136764-simscape-model-calculate-inharmonicity-in-piano-string), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2023b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.1 | Fix type in title |
|
|
| 1.0.0 |
|
