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
o group them as sublists of 5
o 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
<https://cloud.silvain-dupertuis.net/index.php/s/zmgsjGEAZ5qAbJ2>
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.
--
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org <https://perso.silvain-dupertuis.org>