Generating scores within a function: Difference between revisions
Appearance
Import snippet from LSR |
m New category Tags: Mobile edit Mobile web edit |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
This makes it possible to generate scores in a semi-automated way, as demonstrated here. | This makes it possible to generate scores in a semi-automated way, as demonstrated here. | ||
<lilypond version="2.24 | <lilypond version="2.24" full> | ||
%% LSR originally contributed by Gilles Thibault: | %% LSR originally contributed by Gilles Thibault: | ||
%% https://lists.gnu.org/archive/html/lilypond-user-fr/2011-11/msg00141.html | %% https://lists.gnu.org/archive/html/lilypond-user-fr/2011-11/msg00141.html | ||
| Line 45: | Line 45: | ||
[[Category:Scheme]] | [[Category:Scheme]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:18, 21 November 2025
A music-function uses variables at the point where it's invoked; as a result, if variables are then redefined, the same function will then use the same variables with their new value.
This makes it possible to generate scores in a semi-automated way, as demonstrated here.