Some year ago we participated in a lab entitled Models for the Community".
In order to show the strict connection between Mathematics and Physics, we
decided to use a subject that is really interesting for young students: music.
We considered several aspects starting from the nature of sound and its propagation in waves. This one is the part mostly connected to Physics. After we
treated the musical scale from the studies of Pythagoras to the tempered scale of nowadays. Due to the age of the students we did not use the Fourier series
but just the properties connected to trigonometric functions, already known
by high school students. Hence, in this paper, firstly we recall our past teaching experiences and finally we give a short algorithm for the construction of
a temperate musical scale. The paper is organized as follows: in Section 2 we
consider sound waves from a physical point of view; in Section 3 we deal with
the problem of a musical scale construction and we present an algorithm for
doing it; finally, in Section 4 we draw conclusions.