I could use tags to cull the start instead, which is a good point. But there is still the problem with parallel music. You can't easily tag multiple measures in parallel music, and even when you are tagging music you are only tagging it in one voice. To tag it in all voices you need to create a separate tag for every voice. This might not be a big deal if you are working in 4 voices, but as you work with more parts it would become quite unmanageable.
On Mon, 9 Jun 2025 at 20:27, Lucas Cavalcanti <[email protected]> wrote: > One is that I could use the \keepWithTag command, however it would keep >> both the tagged section and the untagged section, so I can't quickly >> separate the part that I want. > > You can use the \removeWithTag to remove specific music expressions. > > The second problem is with tagging itself I have to put the whole >> expression within the {} brackets. > > You must use the tag command inside the variable and the \keepWithTag (or > \removeWithTag) on the whole variable. > > Instead what I'm looking for is something that would tag everything >> forward from a given rhythmical moment onwards in all the voices. > > You can write two variables and add them together. Or use the tag command. > > For what you said, I'm imagining something like this: > > %%Code begins > \version "2.24.0" > piano = { > \new PianoStaff { > << > \new Staff = "up" { > \clef treble > \relative c' { > \tag #'onlySheet { > \textMark "Only in the music sheet." > c8 d e f g f e d > c1 } % end tag onlySheet > \textMark "On both." > c8 d e f g f e d > c1 > } % end relative > } % end staff up > \new Staff = "down" { > \clef bass > \relative c { > \tag #'onlySheet { > c2 d4 b4 > c1 } % end tag onlySheet > c2 d4 b4 > c1 > } % end relative > } % end staff down > >> > } % end PianoStaff > } % end var piano > \score {\piano} > \score { \removeWithTag #'onlySheet {\piano} \midi {} \layout {} } > %%Code ends > > > Em seg., 9 de jun. de 2025 às 14:09, Konokaru Naru < > [email protected]> escreveu: > >> Thanks! I looked into it, but it doesn't seem to be useful for what I'm >> trying to do. >> >> There are 2 issues with tag for what I'm doing. One is that I could use >> the \keepWithTag command, however it would keep both the tagged section >> and the untagged section, so I can't quickly separate the part that I want. >> The second problem is with tagging itself I have to put the whole >> expression within the {} brackets. This is a problem when using it with >> parallel music as you would need a separate tag for every measure. Instead >> what I'm looking for is something that would tag everything forward from a >> given rhythmical moment onwards in all the voices. >> >> On Mon, 9 Jun 2025 at 19:45, Lucas Cavalcanti <[email protected]> >> wrote: >> >>> Check out the tag command. >>> https://lilypond.org/doc/v2.25/Documentation/notation/using-tags >>> >>> Em seg., 9 de jun. de 2025, 13:31, Konokaru Naru < >>> [email protected]> escreveu: >>> >>>> Is there any command that allows for the midi output to be trimed from >>>> a specific note in the score. >>>> I'm currently using a double score layout like this to generate both >>>> midi (and mp3 later) and score: >>>> >>>> \score{ >>>> \sheetMusic >>>> \layout{} >>>> } >>>> \score{ >>>> \articulate >>>> \sheetMusic >>>> \midi{} >>>> } >>>> >>>> where the sheetMusic contains all the music. I'm looking for a way to >>>> specify where the midi starts so that I can quickly playback different >>>> parts of the score. Command like \midiStartsHere that I could put before >>>> the note in the score that I want the midi to start from. Is there anything >>>> like that in lilypond or is it possible to create something like that? >>>> >>>
