The ”command global=” is defining a variable with a series of property settings (mostly), \relative is not a property, it’s a function that is preformed on the music inside the brackets following it.
The manual is quite long, but you will eventually need to go through much of it to get what is what in lilyponds syntax and understand what the lines in the code actually mean. > 7 okt. 2021 kl. 12:36 skrev Mahanidhi <[email protected]>: > > If so why the command "global=" works for every lines? > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > Il giovedì 7 ottobre 2021 12:21, Leo Correia de Verdier > <[email protected]> ha scritto: >> What you are doing is not only writing the each line on a separate line, but >> also writing each line as a separate (implicitly created) score. Since they >> are in different scores they are not the same music expression and you need >> to write out the \relative for each of them. >> >>> 7 okt. 2021 kl. 11:10 skrev Mahanidhi <[email protected]>: >>> >>> >>> Hello, >>> for storage reasons I prefer to write every single line of music on >>> different lines (see example: http://lilybin.com/cqud6p/1) I can't find a >>> way to incorporate the \relative c' command into a single block so as not >>> to rewrite it on every line of music. I tried with global= but it doesn't >>> work. >>> >>> Thank you very much. >>> Mahanidhi >>> >
