However, the fortepiano, which could produce louder and softer dynamics, gradually gained popularity towards the end of the classical period. It was an important transitional instrument that paved the way for the piano's dominance in the following Romantic period.
It is worth noting that during the classical period, the term "piano" was used to describe any instrument that could play piano (soft) and forte (loud) sounds, which included both the fortepiano and the clavichord. However, the term "pianoforte" was also used to refer specifically to the fortepiano.
In summary, the piano was not the main instrument used during the classical period. It was the harpsichord and clavichord that dominated the era. The fortepiano, which later developed into the modern piano, was beginning to gain popularity towards the end of the period.