Integrating LilyPond expressions inside Scheme functions: Difference between revisions

Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
It is possible to use fragments of LilyPond syntax inside Scheme, by putting them between #{ and #}. In this example, three functions are defined to apply different paddings on the TextScript markups, using native LilyPond commands such as <code>\override TextScript #'padding</code>.
It is possible to use fragments of LilyPond syntax inside Scheme, by putting them between #{ and #}. In this example, three functions are defined to apply different paddings on the TextScript markups, using native LilyPond commands such as <code>\override TextScript #'padding</code>.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=251
%% http://lsr.di.unimi.it/LSR/Item?id=251


Line 37: Line 37:
[[Category:Syntax and expressions]]
[[Category:Syntax and expressions]]
[[Category:Really simple]]
[[Category:Really simple]]
[[Category:Snippet]]