Scheme execution: Difference between revisions

From ZMOG test wiki (master branch)
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 96: Line 96:
</score>
</score>


From Doo-wop: <score> {
From Doo-wop, uses <code>#n</code> numbers, parameters to <code>\hspace</code>: <score> {
\relative c' { \set Score.tempoHideNote = ##t \tempo 2 = 120
\relative c' { \set Score.tempoHideNote = ##t \tempo 2 = 120
   \clef treble
   \clef treble

Latest revision as of 01:05, 6 December 2026

T441579 mitigating Scheme execution risks

Can we just reject anything containing #( ... scheme code ... ) sequences and be happy with slightly reduced LilyPond functionality?

Examples

From Dynamics (music), contains #(set-global-staff-size 14):

segment of music notation generated by Score

From Drill Call, contains #(layout-set-staff-size 18) and uses raw=1:

segment of music notation generated by Score

From Drum beat, contains #(ly:make-moment 1/8) and uses raw=1:

segment of music notation generated by Score

From Doo-wop, uses #n numbers, parameters to \hspace:

segment of music notation generated by Score