Hi all, How about the classic snippet? https://wiki.lilypond.community/wiki/Creating_music_with_Scheme_(music_box)
Hope that helps, Kieren. > On Dec 19, 2025, at 12:43 PM, Silvain Dupertuis > <[email protected]> wrote: > > Hi everyone, > > I have done something like that with this prelude in C major : > • having just the list of notes as input of a function > • scheme functions to > • group them as sublists of 5 > • produce the regular arpeggios or chords from these sublists > • export as 3 PDF (using \book {...}) > You can freely examine this exercise in programming > at this online folder > > I left both music and functions in the same CBT_Prél-07.ly > producing three scores, on with just the notes, one as the regular score, one > as chords. > > CBT_Prél-07_accords.ly is a modification just for the chords score. > > Hope it helps. > If anyone has something better, please advice. > > Silvain > > > Le 19.12.25 à 17:41, Konokaru Naru a écrit : >> Is there a way to declare a function in lilypond that arpeggiates a given >> sets of notes (given as arguments) into some kind of pattern? An example use >> case would be for the Bach preludes from WTC. For example the C major >> prelude is only 1 pattern arpeggiating 5 voices, so if it is possible to >> specific a function for the given pattern there each measure can be written >> using only that function and the specific pitches of the 5 voices, saving a >> lot of notation time. __________________________________________________ My work day may look different than your work day. Please do not feel obligated to read or respond to this email outside of your normal working hours.
