> However, I often end up using a simple substitution function to handle
such patterns. An example and some (hopefully) useful hints and comments
can be found in
https://lists.gnu.org/archive/html/lilypond-user/2019-11/msg00296.html

Thank you! The simple substitution function you gave as an example there is
exactly what I was looking for!

Happy Holidays,
Emanuil

On Sat, 20 Dec 2025 at 20:10, Mats Bengtsson <[email protected]>
wrote:

>
> On 12/19/25 19:44, Konokaru Naru wrote:
>
> > 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?
>
> As has already been mentioned, with some programming competence, you can
> extend that solution. An alternative could be to use
> https://wiki.lilypond.community/wiki/A_function_to_repeatedly_print_a_given_pattern_with_different_notes
>
> However, I often end up using a simple substitution function to handle
> such patterns. An example and some (hopefully) useful hints and comments
> can be found in
> https://lists.gnu.org/archive/html/lilypond-user/2019-11/msg00296.html
>
>    /Mats
>
>
>

Reply via email to