Re: Text inside hairpin
Hi James, 2014-06-30 18:28 GMT+02:00 James : > On 30/06/14 07:54, Urs Liska wrote: >> It seems that the snippet-description field is suboptimal as it only >> states to typeset the text _below_ the hairpin. > > Do we need to change the texidoc string for this snippet then? And if so to > what - I assume that this snippet in 'lilylib' is are in $LILYPOND_GIT? Sorry, i don't quite understand what you mean. The snippet is in https://github.com/openlilylib/openlilylib reposotiry, which - as of now - is completely independent from lilypond source repository. best, Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Text inside hairpin
On 30/06/14 07:54, Urs Liska wrote: Am 30.06.2014 08:41, schrieb Janek Warchoł: You're welcome :) Maybe i should add this function to official LilyPond? 2014-06-30 3:29 GMT+02:00 Javier Ruiz-Alma : user error! Reviewed the cited LSR instead of staying at openlilylib...my bad. Thanks for not letting me go without a shake. Javier From: Janek Warchoł [mailto:janek.lilyp...@gmail.com] 2014-06-30 0:32 GMT+02:00 Javier Ruiz-Alma : The scheme funct. places text outside the hairpin. Huh?? Have you looked at example usage of that snippet, available under the link? At the end there's a case with text inside Hairpin, and it works with 2.18.2 and 2.19.9 on my machine; it seems to do exactly what you want. I think i know what i'm talking about since i wrote that function myself! best, Janek It seems that the snippet-description field is suboptimal as it only states to typeset the text _below_ the hairpin. Do we need to change the texidoc string for this snippet then? And if so to what - I assume that this snippet in 'lilylib' is are in $LILYPOND_GIT? James ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Text inside hairpin
Am 30.06.2014 08:41, schrieb Janek Warchoł: You're welcome :) Maybe i should add this function to official LilyPond? Good idea, I think! Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Text inside hairpin
Am 30.06.2014 08:41, schrieb Janek Warchoł: You're welcome :) Maybe i should add this function to official LilyPond? 2014-06-30 3:29 GMT+02:00 Javier Ruiz-Alma : user error! Reviewed the cited LSR instead of staying at openlilylib...my bad. Thanks for not letting me go without a shake. Javier From: Janek Warchoł [mailto:janek.lilyp...@gmail.com] 2014-06-30 0:32 GMT+02:00 Javier Ruiz-Alma : The scheme funct. places text outside the hairpin. Huh?? Have you looked at example usage of that snippet, available under the link? At the end there's a case with text inside Hairpin, and it works with 2.18.2 and 2.19.9 on my machine; it seems to do exactly what you want. I think i know what i'm talking about since i wrote that function myself! best, Janek It seems that the snippet-description field is suboptimal as it only states to typeset the text _below_ the hairpin. Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Text inside hairpin
You're welcome :) Maybe i should add this function to official LilyPond? 2014-06-30 3:29 GMT+02:00 Javier Ruiz-Alma : > user error! > Reviewed the cited LSR instead of staying at openlilylib...my bad. > Thanks for not letting me go without a shake. Javier > > From: Janek Warchoł [mailto:janek.lilyp...@gmail.com] > > 2014-06-30 0:32 GMT+02:00 Javier Ruiz-Alma : >> The scheme funct. places text outside the hairpin. > > Huh?? Have you looked at example usage of that snippet, available under the > link? At the end there's a case with text inside Hairpin, and it works with > 2.18.2 and 2.19.9 on my machine; it seems to do exactly what you want. > > I think i know what i'm talking about since i wrote that function myself! > > best, > Janek > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Text inside hairpin
user error! Reviewed the cited LSR instead of staying at openlilylib...my bad. Thanks for not letting me go without a shake. Javier From: Janek Warchoł [mailto:janek.lilyp...@gmail.com] 2014-06-30 0:32 GMT+02:00 Javier Ruiz-Alma : > The scheme funct. places text outside the hairpin. Huh?? Have you looked at example usage of that snippet, available under the link? At the end there's a case with text inside Hairpin, and it works with 2.18.2 and 2.19.9 on my machine; it seems to do exactly what you want. I think i know what i'm talking about since i wrote that function myself! best, Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Text inside hairpin
2014-06-30 0:32 GMT+02:00 Javier Ruiz-Alma : > The scheme funct. places text outside the hairpin. Huh?? Have you looked at example usage of that snippet, available under the link? At the end there's a case with text inside Hairpin, and it works with 2.18.2 and 2.19.9 on my machine; it seems to do exactly what you want. I think i know what i'm talking about since i wrote that function myself! best, Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Text inside hairpin
The scheme funct. places text outside the hairpin. I was looking for some command for either hairpin or text that would turn off collision avoidance, and allow overlaying one over the other, but didn't succeed in my search. I can imagine creating scheme for inside the hairpin would be a challenge, as text fontsize would need to scale to available vertical space inside center of hairpin, which depends on both hairpin height, length as well as text length. As a workaround, I typeset the TextScript above the staff, where it didn't push other objects apart, then used extra-offset to bring it to the desired position in the center of the hairpin below the staff. -Original Message- From: Janek Warchoł There's a snippet doing this in OpenLilyLib: https://github.com/openlilylib/openlilylib/tree/master/notation-snippets/hairpin-with-text 2014-06-29 18:36 GMT+02:00 Pierre Perol-Schneider : > 2014-06-29 17:12 GMT+02:00 Javier Ruiz-Alma : > > >> How can text be placed inside a hairpin? See image for sample. > > > %%% > \version "2.18.2" > > { > \once\override Hairpin.height = #1.2 > c''\< > c'' > \once\override TextScript.extra-offset = #'(0 . 2) > > c''-\markup \teeny \italic "cresc." > c''\! > } > > \layout { > \context { > \Staff > \hide KeySignature > \omit TimeSignature > \omit Clef > } > } > > \relative c'' { > \key g\minor > \once\override Hairpin.height = #1.2 > b!8*2/3[ \<[c cis d ees d] > \once\override TextScript.extra-offset = #'(0 . 1.7) > c[ _\markup\tiny\italic "cresc." cis d e e f\!] } > %% > > Cheers, > Pierre > > > ___ > 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: Text inside hairpin
There's a snippet doing this in OpenLilyLib: https://github.com/openlilylib/openlilylib/tree/master/notation-snippets/hairpin-with-text 2014-06-29 18:36 GMT+02:00 Pierre Perol-Schneider : > 2014-06-29 17:12 GMT+02:00 Javier Ruiz-Alma : > > >> How can text be placed inside a hairpin? See image for sample. > > > %%% > \version "2.18.2" > > { > \once\override Hairpin.height = #1.2 > c''\< > c'' > \once\override TextScript.extra-offset = #'(0 . 2) > > c''-\markup \teeny \italic "cresc." > c''\! > } > > \layout { > \context { > \Staff > \hide KeySignature > \omit TimeSignature > \omit Clef > } > } > > \relative c'' { > \key g\minor > \once\override Hairpin.height = #1.2 > b!8*2/3[ \<[c cis d ees d] > \once\override TextScript.extra-offset = #'(0 . 1.7) > c[ _\markup\tiny\italic "cresc." cis d e e f\!] > } > %% > > Cheers, > Pierre > > > ___ > 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: Text inside hairpin
> Pierre Perol-Schneider wrote: >> How can text be placed inside a hairpin? See image for >> sample. >> >> >> >> %%% >> \version "2.18.2" >> >> { >> \once\override Hairpin.height = #1.2 >> c''\< >> c'' >> \once\override TextScript.extra-offset = #'(0 . 2) I tried this, but I'm looking for an alternative to "extra-offset". Extra-offset doesn't free-up the space for other objects to move into. Thank You ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Text inside hairpin
On Sun, 2014-06-29 at 18:36 +0200, Pierre Perol-Schneider wrote: > 2014-06-29 17:12 GMT+02:00 Javier Ruiz-Alma : > > How can text be placed inside a hairpin? See image for > sample. > > > > %%% > \version "2.18.2" > > { > \once\override Hairpin.height = #1.2 > c''\< > c'' > \once\override TextScript.extra-offset = #'(0 . 2) I was intrigued by this, because there is text which you can drag in the final PDF typeset in Denemo, so I wondered what syntax it would use. It came up with -\tweak #'extra-offset #'( -1.6 . 1.42 ) which perhaps might be neater? It will be nice if Denemo can become a source for finding out LilyPond syntax rather than having to ask on the m/l, but at the moment I fear Denemo's LilyPond output is often rather inelegant. Richard Shann > c''-\markup \teeny \italic "cresc." > c''\! > } > > \layout { > \context { > \Staff > \hide KeySignature > \omit TimeSignature > \omit Clef > } > } > > \relative c'' { > \key g\minor > \once\override Hairpin.height = #1.2 > b!8*2/3[ \<[c cis d ees d] > \once\override TextScript.extra-offset = #'(0 . 1.7) > c[ _\markup\tiny\italic "cresc." cis d e e f\!] > } > %% > > > Cheers, > Pierre > > > > ___ > 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: Text inside hairpin
2014-06-29 17:12 GMT+02:00 Javier Ruiz-Alma : How can text be placed inside a hairpin? See image for sample. > %%% \version "2.18.2" { \once\override Hairpin.height = #1.2 c''\< c'' \once\override TextScript.extra-offset = #'(0 . 2) c''-\markup \teeny \italic "cresc." c''\! } \layout { \context { \Staff \hide KeySignature \omit TimeSignature \omit Clef } } \relative c'' { \key g\minor \once\override Hairpin.height = #1.2 b!8*2/3[ \<[c cis d ees d] \once\override TextScript.extra-offset = #'(0 . 1.7) c[ _\markup\tiny\italic "cresc." cis d e e f\!] } %% Cheers, Pierre ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Text inside hairpin
How can text be placed inside a hairpin? See image for sample. \version "2.18.2" { c''\< c'' c''-\markup \teeny \italic "cresc." c''\! } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user