EDIT: Please, ignore the last two emails... they contain faulty code.... I've seen some other PDF file and mistakenly sent broken results....
Em seg., 9 de jun. de 2025 às 15:22, Lucas Cavalcanti <[email protected]> escreveu: > I've forgot to annex the PDFs... K.ly and K.pdf are the output of the bin > Konokaru sent. K2.ly and K2.pdf are the "correct" code. > > Em seg., 9 de jun. de 2025, 15:19, Lucas Cavalcanti <[email protected]> > escreveu: > >> Since you want to make an anacrusis in the midi part you must use another >> tag (I've named it Midi) to use the \partial command. >> No need for 12 tags. >> >> %%Code starts >> \version "2.24.4" >> \include "articulate.ly" >> \paper { >> #(set-default-paper-size "a4" 'landscape) >> } >> \header { >> title = "63" >> composer = "EC" >> } >> >> musicE = { >> \parallelMusic voiceA,voiceB,voiceC,voiceD { >> \tag #'onlySheet { >> \textMark "Only in sheet." >> d4 c4 ees4 d4 | >> bes'4 a4 c4 bes4 ~ | >> f'2 g2 ~ | >> bes''4 f4 c'4 g4 | >> >> g4 f4 ees4 d4 | >> bes2 a4 f4 | >> g4 d4 ees4 d4 | >> ees4 d4 c4 bes4 | >> >> c4 bes4 | >> g4 f4 | >> ees4 bes4 | >> ees4 d4 | >> >> } % end tag onlySheet >> \textMark "On both." >> \tag #'Midi { \partial 2 } a4 bes4 | >> \tag #'Midi { \partial 2 } ees4 d4 | >> \tag #'Midi { \partial 2 } c4 bes4 ~ | >> \tag #'Midi { \partial 2 } c4 g4 | >> >> \tag #'Midi { \textMark "Only in Midi." } >> d2 c4 r4 | >> f2 ~4 r4 | >> bes2 a4 r4 | >> f2 f'4 r4 | >> >> \break >> >> d4 f4 bes,4 d4 | >> f2 d2 | >> bes4 c4 g4 a4 | >> bes4 a4 g4 f4 | >> >> g,4 a4 bes4 ees4 | >> ees4 f2 g4 | >> bes4 c4 bes2 ~ | >> ees4 ees4 d4 c4 | >> >> d2 c2 | >> f2 ees2 | >> bes2 a2 | >> f2 f,2 | >> >> bes1 | >> d1 | >> f1 | >> bes1 | >> >> } >> << >> \context Staff = "staffA" << >> \key bes \major >> \tempo 4 = 120 >> \time 4/4 >> \relative c'' \voiceA >> \\ >> \relative c' \voiceB >> >> >> \context Staff = "staffB" << >> \key bes \major >> \clef bass >> \relative c \voiceC >> \\ >> \relative c, \voiceD >> >> >> >> >> } >> >> sheetMusic = { >> \new PianoStaff << >> \new Staff = "staffA" >> << >> >> >> \new Staff = "staffB" >> << >> >> >> >> >> \musicE >> } >> >> \score{ >> \removeWithTag #'Midi \sheetMusic >> \layout{} >> } >> \score{ >> \articulate >> \removeWithTag #'onlySheet \sheetMusic >> \layout {} >> \midi{} >> } >> %%Code ends >> >> Em seg., 9 de jun. de 2025, 15:06, Timothy Lanfear <[email protected]> >> escreveu: >> >>> On 09/06/2025 16:53, Konokaru Naru wrote: >>> >>> 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: >>> >>> Despite its name, the command \set Score.skipTypesetting = ##t (or ##f) >>> also controls the generation of MIDI output. >>> >>> >>> https://lilypond.org/doc/v2.24/Documentation/notation/skipping-corrected-music >>> >>> -- >>> Timothy Lanfear, Bristol, UK. >>> >>>
