Where is define-line-markup defined/documented?
The snippet http://lsr.di.unimi.it/LSR/Item?id=750 for changing the markup used for chord names makes use of Scheme procedures like define-line-markup, define-small-markup ... But these do not appear to be defined in the source files define-markup-commands.scm or markup.scm, and do not seem to appear anywhere in the documentation. Can anyone point me to the source for these? Richard ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where is define-line-markup defined/documented?
cd /usr/local/lilypond grep -r define-line-markup * doesn’t give me any results; I assume they’re not part of LilyPond. On 04.09.2014 13:38, Richard Shann wrote: The snippet http://lsr.di.unimi.it/LSR/Item?id=750 for changing the markup used for chord names makes use of Scheme procedures like define-line-markup, define-small-markup ... But these do not appear to be defined in the source files define-markup-commands.scm or markup.scm, and do not seem to appear anywhere in the documentation. Can anyone point me to the source for these? Richard ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where is define-line-markup defined/documented?
On 04/09/14 12:38, Richard Shann wrote: The snippet http://lsr.di.unimi.it/LSR/Item?id=750 for changing the markup used for chord names makes use of Scheme procedures like define-line-markup, define-small-markup ... I don't see these referenced anywhere in git or in this snippet. Are you sure you have the correct name? James ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where is define-line-markup defined/documented?
At 12:48 on 04 Sep 2014, James wrote: On 04/09/14 12:38, Richard Shann wrote: The snippet http://lsr.di.unimi.it/LSR/Item?id=750 for changing the markup used for chord names makes use of Scheme procedures like define-line-markup, define-small-markup ... I don't see these referenced anywhere in git or in this snippet. Are you sure you have the correct name? I think Richard means make-line-markup etc (rather than define). I too have wondered about these scheme functions - they seem to be magically generated somewhere. They can mostly be guessed from the similar \markup commands: \markup \small text == #(make-small-markup text) etc. -- Mark Knoop ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where is define-line-markup defined/documented?
On Thu, 2014-09-04 at 12:48 +0100, James wrote: On 04/09/14 12:38, Richard Shann wrote: The snippet http://lsr.di.unimi.it/LSR/Item?id=750 for changing the markup used for chord names makes use of Scheme procedures like define-line-markup, define-small-markup ... I don't see these referenced anywhere in git or in this snippet. Are you sure you have the correct name? James sorry, make-line-markup and make-small-markup, I've just checked and I was searching for the right things, just suffered mental substitution when writing the email. Richard ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where is define-line-markup defined/documented?
On Thu, 2014-09-04 at 13:04 +0100, Mark Knoop wrote: At 12:48 on 04 Sep 2014, James wrote: On 04/09/14 12:38, Richard Shann wrote: The snippet http://lsr.di.unimi.it/LSR/Item?id=750 for changing the markup used for chord names makes use of Scheme procedures like define-line-markup, define-small-markup ... I don't see these referenced anywhere in git or in this snippet. Are you sure you have the correct name? I think Richard means make-line-markup etc (rather than define). I too have wondered about these scheme functions - they seem to be magically generated somewhere. Well, having got the right name ( :-{ ) searching for (define or lambda on the same line as make-line-markup isn't guaranteed to find the definition, but I wonder if (given the quality of LilyPond's source code formatting) if they are defined via C++ routines, but I can't imagine why they would be except... They can mostly be guessed from the similar \markup commands: \markup \small text == #(make-small-markup text) this illustrates the meaning, but doesn't hint at how to create a variant of the procedure (in my case, make-small-markup is too small). Richard ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where is define-line-markup defined/documented?
On 4 September 2014 13:18, Richard Shann rich...@rshann.plus.com wrote: this illustrates the meaning, but doesn't hint at how to create a variant of the procedure (in my case, make-small-markup is too small). If I recall, it's a scheme macro which generates these. It only works for existing markup commands; if you wanted to use this with your own command you'd first have to create it via define-markup-command. Cheers, Neil ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where is define-line-markup defined/documented?
At 13:41 on 04 Sep 2014, Neil Puttock wrote: On 4 September 2014 13:18, Richard Shann rich...@rshann.plus.com wrote: this illustrates the meaning, but doesn't hint at how to create a variant of the procedure (in my case, make-small-markup is too small). If I recall, it's a scheme macro which generates these. It only works for existing markup commands; if you wanted to use this with your own command you'd first have to create it via define-markup-command. Aha, I see it in scm/markup-macros.scm. And indeed this works: \version 2.18.0 #(define-markup-command (smallish layout props text) (markup?) Not quite as small... (interpret-markup layout props #{\markup \override #'(font-size . -0.5) { \normal-text #text }#})) \markup \small test \markup \smallish test \header { title = #(make-smallish-markup test) } -- Mark Knoop ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where is define-line-markup defined/documented?
On Thu, 2014-09-04 at 14:17 +0100, Mark Knoop wrote: At 13:41 on 04 Sep 2014, Neil Puttock wrote: On 4 September 2014 13:18, Richard Shann rich...@rshann.plus.com wrote: this illustrates the meaning, but doesn't hint at how to create a variant of the procedure (in my case, make-small-markup is too small). If I recall, it's a scheme macro which generates these. It only works for existing markup commands; if you wanted to use this with your own command you'd first have to create it via define-markup-command. Aha, I see it in scm/markup-macros.scm. and, indeed, it is described in painstaking detail, I only have to get my head round it - Thanks! Richard And indeed this works: \version 2.18.0 #(define-markup-command (smallish layout props text) (markup?) Not quite as small... (interpret-markup layout props #{\markup \override #'(font-size . -0.5) { \normal-text #text }#})) \markup \small test \markup \smallish test \header { title = #(make-smallish-markup test) } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user