next up previous contents
Next: Output file Up: Report edition Previous: Storing errors   Contents

Retrieve Musical data from numeric data

Since all the errors are stored with their numeric data, we have to convert it into musical data to give a ``friendly output''. It would be nonsense to say to the user:

at time 1459,235674 you played a pitch 64 instead of a pitch 68.
at time 2546,984123 you played note number 26 too long of 567,235674ms
First thing to do is to get the note name and the octave value from the pitch. It can be easily made with a little tool function. Then, we have to convert absolute time into musical time. It is just the inverted operation of the one we made to calculate numeric data from the score (see Chapter 2, section 2.2).



Mathieu Gilles (Betr. soltau) 2003-08-25