A piano doesn't produce "layers" but a spectrum of simultaneous frequencies determined by which keys are struck and how. Each note contains a fundamental pitch plus a series of overtones.