Changed GenerateLayers()
Changed GenerateLayers()

It has to be ensured that NoteRest objects are always processed before other bar objects, otherwise it is not possible to add references to notes to line objects at the beginning of a bar.
Beautiful indentation

music-encoding/sibmei,annplaksin/sibmei