At the moment, we call hcmc:getNoteCount() all over the place in the processing in order to find out the number of a note in the note sequence. This is doing the same count operation repeatedly. We should do this once when generating the OriginalXML, and store the value in an @n attribute on the <note> element. Then we can just read it whenever we need it.
At the moment, we call
hcmc:getNoteCount()
all over the place in the processing in order to find out the number of a note in the note sequence. This is doing the same count operation repeatedly. We should do this once when generating the OriginalXML, and store the value in an@n
attribute on the<note>
element. Then we can just read it whenever we need it.