> Hi all,
>
> How about the classic snippet?
>
https://wiki.lilypond.community/wiki/Creating_music_with_Scheme_(music_box)

I just tried this example. It does work well, though I'm seeing a few
limitations, and I'm not sure if I'm just using it incorrectly or this is
just a limitation of this method.
>From what I gathered you can only have 7 different pitches in this example,
and those are pitches with specific registers as well. Meaning that if you
want to for example create an arpeggio that runs through the whole keyboard
you would run out of arguments. Is this correct or am I missing something
in the snippet?

Also thanks to everyone for the recommendations, I'm yet to try them all
out, but I will get to them soon.

Best Regards,
Emanuil

On Fri, 19 Dec 2025 at 20:05, Kieren MacMillan <[email protected]>
wrote:

> 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.
>
>
>

Reply via email to