Hi Pierre. Harm and David, Many thanks for your help. Three different solutions for my problem is a precious gift. They all work but I do need some time to understand your codes. They are so totally different from mine. I use TeXShop as my editor but that should not be a problem. I made for myself a set of templates for various types of music. Usually they work for me. Another habit is to never use “relative” and always add the duration of a note. Anyway, I will try to make an MWE with my tools for you to find my errors and\or clumsiness.
Thanks in advance. Best regards, Robert