OK
here's a short hint created with the help of displayMusic:

% a dummy definition of create-staff
#(define (get-staff what)
   (make-music 'ContextSpeccedMusic
     'create-new #t
     'property-operations '()
     'context-type 'Staff
     'element #{ c''4 #}))

% a scheme representation of \new StaffGroup
$(make-music
  'ContextSpeccedMusic
  'create-new #t
  'property-operations '()
  'context-type 'StaffGroup
  'element (make-music
            'SimultaneousMusic
            'elements (map get-staff '(oboe flute))))

HTH Jan-Peter

Am 26.03.2018 um 18:23 schrieb Urs Liska:

Am 26. März 2018 15:35:42 MESZ schrieb Jan-Peter Voigt<[email protected]>:
Hi Urs,

I assume you know to build the music-expression for the score in
scheme.
No, not really.
I can replace \score {} with (ly:make-score) but that doesn't really help me.
I have no idea how to map the nesting of the parallel contexts to Scheme 
expressions within a single expression.

(get-staff returns Staff objects, but at a later (or earlier) point I will also 
want to create the Staff with Scheme (the music itself will stay in LilyPond 
language files).



_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to