Is there a mathematical function that can output the sound that a piano makes at different frequencies?
So if the simplest equation for a sound wave (at a given frequency and for a given sample rate) is
$ sin(\frac{2 \cdot \pi \cdot x \cdot f}{samplerate}) $
where f is frequency, is there a similar equation for the sound that a piano makes?
EDIT: I'm not looking for anything too complicated here, just a wave that approximates this estimation. I've been playing around on desmos to see if I can get something similar:
This is what Guest's wave sounds like... not much like a piano.