The music class provides analysis for music within a set of rows. The class has been designed around providing a regular-expression style matching algorithm. This provides flexibility in the way the user can enter their own music. Additionally, for each 'regular-expression' a score can be allocated. For a full description of the regular expressions the ringing library currently provides see Music Regular Expressions.
The music class processes each row just once, it does not store any rows. It assumes that the first row given is a handstroke row. The class should be able to handle any number of bells that the row class can. Note, that matches for complete rows should be done on a same number of bells basis.
Each time the analysis function is called, the results stored in the class are reset to zero, and then incremented based on the rows given.