New method to obtain the duration of the notes. Little change in tmp files. Some others changes.