Thanks Mark,

That’s really useful - thanks for the pointer, and nice to see you here!

Alex


> On 5 Nov 2024, at 08:28, Mark Knoop <m...@opus11.net> wrote:
> 
> Hi Alex,
> 
> Basically yes, this should all be possible at the 'user' level in scheme. You 
> probably will want to write a custom engraver. Take a look at the 'Defining 
> an engraver in Scheme: ambitus engraver' example on this page:
> https://lilypond.org/doc/v2.23/Documentation/snippets/contexts-and-engravers, 
> and also at the scm/scheme-engravers.scm file.
> 
> Cheers,
> 
> Mark
> 
> At 18:42 on 04 Nov 2024, Alex Harker wrote:
>> Hello,
> 
>> I’m working on a score where I likely need to be able to
>> notate multiple pedals (sometimes simultaneously) for a
>> pedal steel part. I’d like these to look somewhat like the
>> piano sustain mixed notation (and eventually have the
>> possibility of more complex graphical shapes)
> 
>> I can easily modify the sustain pedal stencil to draw what
>> I want as a one off, but what I’d really like to do is
>> extend lilypond temporarily to allow this across a whole
>> score with custom commands per pedal.
> 
>> I’ve looked through various scm files, and I have a sense
>> of what I’d need to copy/modify/add, but it looks like
>> define-grobs.scm and define-music-types.scm add items to
>> some kind of global variables, (such as
>> music-descriptions) and some of these might then get
>> manipulated after creation, so I’m not really sure how
>> possible this without modifying core lilypond files.
> 
>> My preferred way of doing this would not be to modify
>> lilyponds internal code at all, but just to add further
>> scheme code purely to create my score. Is there any way
>> this is possible (to add new events/objects in this way?
>> Any advice would be gratefully appreciated.
> 
>> Thanks
> 
>> Alex
> 
> --
> Mark Knoop


Reply via email to