Re: How to read out the number of beams and the space between them?
Hi Harm, On Sun, Oct 16, 2011 at 2:36 PM, Thomas Morley < thomasmorle...@googlemail.com> wrote: > > > I regarded the gap-property, but \once\override Beam #'gap = #15 seems to > do nothing, so I dropped that thought. > You have to do this instead: \once \override Beam #'length-fraction = #15 (See http://www.mail-archive.com/lilypond-user@gnu.org/msg65014.html) I noticed that your function as it stands only aligns the bracket correctly with \stemUp. I don't know if this is your intention. Anyway, I've attached a file which accounts for beam direction. -David harm-beam.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Disappearing hyphens (endashes) in lyrics
Hi Peter, Are you simply trying to replace Lilypond's inter-syllable hyphen with an emdash? If so, just override it directly: \version "2.15.14" \paper { ragged-right = ##f } MD = { \once \override LyricHyphen #'stencil = #ly:text-interface::print \once \override LyricHyphen #'text = "—" \once \override LyricHyphen #'X-offset = #4.5 } theNotes = \relative c' { c4 c c c c c c c } theWords = \lyricmode { Nor -- mal \MD re -- placed nor -- mal nor -- mal } \score { << \new Staff \theNotes \addlyrics \theWords >> } Anyway, this should give you some ideas and point you in the right direction. (n.b., There's probably a more elegant way than the manual X-offset, but I don't have time to work it out right now.) Hope this helps! Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Disappearing hyphens (endashes) in lyrics
I also notice that with the enclosing of the actual syllable and the en-dash within double quotes, the alignment of the syllable with the note is distorted. On Sun, Oct 16, 2011 at 21:12, Peter Olin wrote: > Thanks Kieren! > > That's close to what I want. Yes. > > However I'd like to see the en-dash *centered* between the two words it > separates. With your workaround it's sort of attached to the left one" And I > guess one could get it more towards the second by placing the quotes > differently. > > Sorry for being picky, but that's why I'm trying to get the typesetting > done with TeX. :-) > > /Peter > > > > On Sun, Oct 16, 2011 at 20:52, Kieren MacMillan < > kieren_macmil...@sympatico.ca> wrote: > >> Hi Peter, >> >> Does this give you what you want? >> \addlyrics { Må det väck -- ta sin -- "net—" vär -- de -- fullt sub -- >> "limt—" } >> >> Hope this helps, >> Kieren. > > > > > -- > Peter Olin > -- Peter Olin ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to read out the number of beams and the space between them?
Hi David, 2011/10/16 David Nalesnik > > Hi again, > > I sent that off too quickly... > > Instead of > > #(define ((stencil-plus-bracket beam-count) grob) >> > > use > > #(define (stencil-plus-bracket grob) > > -David > > this works! I regarded the gap-property, but \once\override Beam #'gap = #15 seems to do nothing, so I dropped that thought. Also, I'm not familiar with getting a property from a parent and I didn't manage to figure it out myself. Thanks a lot, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to read out the number of beams and the space between them?
Hi again, I sent that off too quickly... Instead of #(define ((stencil-plus-bracket beam-count) grob) > use #(define (stencil-plus-bracket grob) -David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to read out the number of beams and the space between them?
Hi, Harm -- On Sun, Oct 16, 2011 at 10:27 AM, harm6 wrote: > > > In the little test-function below I have to put in the beam-count manually. > And the value of the between-beam-space is a guess. > > Any hint to improve? > You can get the space between the beams from the 'gap property. (It's measured in half staff-spaces, so this value needs to be halved.) Also, you can get the number of beams through the 'beaming property. Here I've gotten the beam-count from the first stem. I hope this helps! \version "2.14.2" #(define ((stencil-plus-bracket beam-count) grob) (let* ((beam (ly:beam::print grob)) (beam-count (length (cdr (ly:grob-property (ly:grob-parent grob X) 'beaming (beam-positions (ly:grob-property grob 'positions)) (gap (* 0.5 (ly:grob-property grob 'gap))) (single-beam-thickness (ly:grob-property grob 'beam-thickness)) (whole-beam-thickness (+ (* beam-count single-beam-thickness)(* (- beam-count 1) gap))) (bracket (ly:bracket Y (cons (* -0.5 whole-beam-thickness) (* 0.5 whole-beam-thickness)) 0.05 0.4))) (ly:stencil-add beam (ly:stencil-in-color (ly:stencil-translate bracket (cons -1 (- (car beam-positions) (* 0.38 whole-beam-thickness 1 0 0)) )) \relative c' { \stemUp \once\override Beam #'stencil = #stencil-plus-bracket f'32 [f f f] \once\override Beam #'stencil = #stencil-plus-bracket f16 [f f f] \once\override Beam #'stencil = #stencil-plus-bracket f64 [f f f] } Best, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Disappearing hyphens (endashes) in lyrics
Hi Peter, Does this give you what you want? \addlyrics { Må det väck -- ta sin -- "net—" vär -- de -- fullt sub -- "limt—" } Hope this helps, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Disappearing hyphens (endashes) in lyrics
Hi Jan-Peter! Thanks for the tip. Using an UTF dash indeed makes it show up in the lyrics - and so far that's good. But then the trouble is that I don't want it to "consume" a note. It seems to be counted as a syllable. I've been looking at the LyricHyphen and tried to experiment with overriding various values - but as it appears, the en-dash is not at all affected by this (but all the inter-word-hypens are). I found something that looks a bit promising, skipFour = \repeat unfold 4 { \skip 8 } But I'm a) not entirely clear about the numbers, and b) it only skips over the notes - the en-dash is still being counted as a syllable. I need some more help or pointers here, I'm getting in over my head in the nitty gritty. /Peter On Sun, Oct 16, 2011 at 12:39, Jan-Peter Voigt wrote: > Hello Peter, > > to include the mdash sign in lilypond, it should appear as such in the > (UTF8) encoded source. The double dash in lilypond evokes a hyphenation > event to draw thin and short Lines between two syllables. If the emdash is > not a syllable on its own, you might want to override hyphen properties. > > HTH > Cheers, > Jan-Peter > > > > Am 16.10.2011 um 12:13 schrieb Peter Olin : > > Hi all! > > After a 20+ years hiatus from LaTeX use, I've again found reasons to wet my > toes again. > > I'm trying to typeset some verse with LilyPond - where the verse text > includes hyphens (endashes, or possibly emdashes), but it's not as > straightforward as I had hoped using LilyPond. Maybe someone can help. > > The original verse text looks like this i LaTeX: > "Må det väckta sinnet -- värdefullt, sublimt --" > > and I want those endashes to appear in the lyrics below as well. But they > don't. > > Can someone help me out with this? > > \begin{lilypond} > % set the starting point to middle C > \relative c' { c c c c c c d d d d c r } > % The -- endash:es disappear. I would like to see them between the words > "sinnet" and "värdefullt", as well as after "sublimt". > > \addlyrics {Må det väck- ta sin- net -- vär- de- fullt sub- limt -- } > \end{lilypond} > > > > Kind regards, > > -- > Peter Olin > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > > -- Peter Olin ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: 2.15.14 will not run on Mac x86
On Oct 16, 2011, at 4:49 AM, "Phil Holmes" wrote: > "Stan Sanderson" wrote in message > news:0d770350-3bf2-4555-8f4c-ee7b5d86c...@gmail.com... >> Sad to report that LilyPond v 2.15.14-1 fails to run on my iMac. Error >> report follows below. >> As previously reported, v 2.15.8 is the last version to run successfully. >> The previously suggested workaround was not effective. >> Process: LilyPond [285] >> Path: /Users/ssanders/Desktop/LilyPond.app/Contents/MacOS/LilyPond >> Identifier: org.lilypond.lilypond >> Version: ??? (???) >> Code Type: X86 (Native) >> Parent Process: launchd [130] >> >> Interval Since Last Report: 80698 sec >> Crashes Since Last Report: 5 >> Per-App Interval Since Last Report: 0 sec >> Per-App Crashes Since Last Report: 3 >> >> Date/Time: 2011-10-10 09:04:18.581 -0500 >> OS Version: Mac OS X 10.5.8 (9L30) >> Report Version: 6 >> Anonymous UUID: DD0B279C-6937-406C-9BD0-5411DEFF183B >> >> Exception Type: EXC_BREAKPOINT (SIGTRAP) >> Exception Codes: 0x0002, 0x >> Crashed Thread: 0 >> >> Dyld Error Message: >> unknown required load command 0x8022 >> >> >> Stan > > I believe this is http://code.google.com/p/lilypond/issues/detail?id=1943 ? > > > -- > Phil Holmes > Bug Squad Correct, I should have referenced #1943 in my last post. I just updated my comments on the bug list to indicate that the problem has not been solved. LilyPond 2.15.14 as modified by chh...@gmail.com also crashes at startup. Stan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
How to read out the number of beams and the space between them?
Hi, trying to override Beam-stencil I need to read out the number of beams, the space between the beams and the thickness of the whole beam (shown by the red bracket). Of course I need only two of this values to detemine the third, but I only managed to get the thickness of a single Beam. http://old.nabble.com/file/p32662208/clip.png In the little test-function below I have to put in the beam-count manually. And the value of the between-beam-space is a guess. \version "2.14.2" #(define ((stencil-plus-bracket beam-count between-beam-space) grob) (let* ((beam (ly:beam::print grob)) (beam-positions (ly:grob-property grob 'positions)) (single-beam-thickness (ly:grob-property grob 'beam-thickness)) (whole-beam-thickness (+ (* beam-count single-beam-thickness) (* (- beam-count 1) between-beam-space))) (bracket (ly:bracket Y (cons (* -0.5 whole-beam-thickness) (* 0.5 whole-beam-thickness)) 0.05 0.4))) (ly:stencil-add beam (ly:stencil-in-color (ly:stencil-translate bracket (cons -1 (- (car beam-positions) (* 0.38 whole-beam-thickness 1 0 0)) )) \relative c' { \stemUp \once\override Beam #'stencil = #(stencil-plus-bracket 3 0.35) f'32 [f f f] \once\override Beam #'stencil = #(stencil-plus-bracket 2 0.35) f16 [f f f] \once\override Beam #'stencil = #(stencil-plus-bracket 4 0.35) f64 [f f f] } Any hint to improve? Thanks, Harm -- View this message in context: http://old.nabble.com/How-to-read-out-the-number-of-beams-and-the-space-between-them--tp32662208p32662208.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cuenotes are not displayed (Ian Hulin)
Am Sonntag, 16. Oktober 2011, 13:35:42 schrieb Stefan Thomas: > Dear Reinhold, > thanks for Your fast reply. > The problem is: I don't exactly know, which other commands could cause > hiding the quoted voice than \set PianoStaff.instrumentName= ? All things that create a different context. Examples are: \new Voice { ... } << { ... } \\ { ... } >> \partcombine {...} {...} Cheers, Reinhold > I have the problem, that the music of the cellopart is not quoted, although > it isn't a Pianostaff. > > 2011/10/16 Reinhold Kainhofer > > > Am Sonntag, 16. Oktober 2011, 10:01:46 schrieb Stefan Thomas: > > > Dear community, > > > because of the wrong code, I post You my snippet again. > > > The Problem is: the quoted voice doesn't appear in the staff > > > "anotherinstrument" and it has definetily to do with the command > > > > > > > \set PianoStaff.instrumentName= "Piano" > > > > > > Is there possibilitie to get the quodation without quitting the > > > command that sets the instrumentName for the PianoStaff? > > > I have the problem, in a larger score, hat some cuenotes are not > > > > displayed. > > > > > I assume it has to do with some commands that are related to > > > another > > > context than Voice. > > > > Yes, that was one case of bug 1214 > > (http://code.google.com/p/lilypond/issues/detail?id=1214 ). It was fixed > > in > > LilyPond 2.15.9, so as soon as 2.16 is released, you'll have a fix. > > I don't know any easy workaround in earlier lilypond versions (except > > removing > > the offending commands from the music, e.g. by creating a second copy > > \rightII, which is only used in \addQuote and which does not have the > > \set command). > > That's what I had used before I finally fixed bug 1214. > > > > Cheers, > > Reiknhold > > > > > Here my new snippet: > > > > > > \version "2.14.2" > > > > > > > right = { > > > > > > > > \set PianoStaff.instrumentName = "Piano" > > > > c'' 4 g' a' b' c'' 4 d'' e'' f'' g'' 1 } > > > > > > > > \addQuote "right" { \right } > > > > anotherinstrument = { c' 1 \quoteDuring #"right" s1 c'1 } > > > > > > > > \score { \new Staff \anotherinstrument } > > > > -- > > -- > > Reinhold Kainhofer, reinh...@kainhofer.com, > > http://reinhold.kainhofer.com/> > > * Financial & Actuarial Math., Vienna Univ. of Technology, Austria > > * http://www.fam.tuwien.ac.at/, DVR: 0005886 > > * LilyPond, Music typesetting, http://www.lilypond.org -- -- Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cuenotes are not displayed (Ian Hulin)
Dear Reinhold, thanks for Your fast reply. The problem is: I don't exactly know, which other commands could cause hiding the quoted voice than \set PianoStaff.instrumentName= ? I have the problem, that the music of the cellopart is not quoted, although it isn't a Pianostaff. 2011/10/16 Reinhold Kainhofer > Am Sonntag, 16. Oktober 2011, 10:01:46 schrieb Stefan Thomas: > > Dear community, > > because of the wrong code, I post You my snippet again. > > The Problem is: the quoted voice doesn't appear in the staff > > "anotherinstrument" and it has definetily to do with the command > > > > > \set PianoStaff.instrumentName= "Piano" > > > > Is there possibilitie to get the quodation without quitting the command > > that sets the instrumentName for the PianoStaff? > > I have the problem, in a larger score, hat some cuenotes are not > displayed. > > I assume it has to do with some commands that are related to another > > context than Voice. > > Yes, that was one case of bug 1214 > (http://code.google.com/p/lilypond/issues/detail?id=1214 ). It was fixed > in > LilyPond 2.15.9, so as soon as 2.16 is released, you'll have a fix. > I don't know any easy workaround in earlier lilypond versions (except > removing > the offending commands from the music, e.g. by creating a second copy > \rightII, which is only used in \addQuote and which does not have the \set > command). > That's what I had used before I finally fixed bug 1214. > > Cheers, > Reiknhold > > > Here my new snippet: > > > > \version "2.14.2" > > > > > right = { > > > \set PianoStaff.instrumentName = "Piano" > > > c'' 4 g' a' b' c'' 4 d'' e'' f'' g'' 1 } > > > > > > \addQuote "right" { \right } > > > anotherinstrument = { c' 1 \quoteDuring #"right" s1 c'1 } > > > > > > \score { \new Staff \anotherinstrument } > -- > -- > Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/ > * Financial & Actuarial Math., Vienna Univ. of Technology, Austria > * http://www.fam.tuwien.ac.at/, DVR: 0005886 > * LilyPond, Music typesetting, http://www.lilypond.org > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cuenotes are not displayed (Ian Hulin)
Am Sonntag, 16. Oktober 2011, 10:01:46 schrieb Stefan Thomas: > Dear community, > because of the wrong code, I post You my snippet again. > The Problem is: the quoted voice doesn't appear in the staff > "anotherinstrument" and it has definetily to do with the command > > > \set PianoStaff.instrumentName= "Piano" > > Is there possibilitie to get the quodation without quitting the command > that sets the instrumentName for the PianoStaff? > I have the problem, in a larger score, hat some cuenotes are not displayed. > I assume it has to do with some commands that are related to another > context than Voice. Yes, that was one case of bug 1214 (http://code.google.com/p/lilypond/issues/detail?id=1214 ). It was fixed in LilyPond 2.15.9, so as soon as 2.16 is released, you'll have a fix. I don't know any easy workaround in earlier lilypond versions (except removing the offending commands from the music, e.g. by creating a second copy \rightII, which is only used in \addQuote and which does not have the \set command). That's what I had used before I finally fixed bug 1214. Cheers, Reiknhold > Here my new snippet: > > \version "2.14.2" > > > right = { > > \set PianoStaff.instrumentName = "Piano" > > c'' 4 g' a' b' c'' 4 d'' e'' f'' g'' 1 } > > > > \addQuote "right" { \right } > > anotherinstrument = { c' 1 \quoteDuring #"right" s1 c'1 } > > > > \score { \new Staff \anotherinstrument } -- -- Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Disappearing hyphens (endashes) in lyrics
Hello Peter, to include the mdash sign in lilypond, it should appear as such in the (UTF8) encoded source. The double dash in lilypond evokes a hyphenation event to draw thin and short Lines between two syllables. If the emdash is not a syllable on its own, you might want to override hyphen properties. HTH Cheers, Jan-Peter Am 16.10.2011 um 12:13 schrieb Peter Olin : > Hi all! > > After a 20+ years hiatus from LaTeX use, I've again found reasons to wet my > toes again. > > I'm trying to typeset some verse with LilyPond - where the verse text > includes hyphens (endashes, or possibly emdashes), but it's not as > straightforward as I had hoped using LilyPond. Maybe someone can help. > > The original verse text looks like this i LaTeX: > "Må det väckta sinnet -- värdefullt, sublimt --" > > and I want those endashes to appear in the lyrics below as well. But they > don't. > > Can someone help me out with this? > > \begin{lilypond} > % set the starting point to middle C > \relative c' { c c c c c c d d d d c r } > % The -- endash:es disappear. I would like to see them between the words > "sinnet" and "värdefullt", as well as after "sublimt". > > \addlyrics {Må det väck- ta sin- net -- vär- de- fullt sub- limt -- } > \end{lilypond} > > > > Kind regards, > > -- > Peter Olin > ___ > 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
Disappearing hyphens (endashes) in lyrics
Hi all! After a 20+ years hiatus from LaTeX use, I've again found reasons to wet my toes again. I'm trying to typeset some verse with LilyPond - where the verse text includes hyphens (endashes, or possibly emdashes), but it's not as straightforward as I had hoped using LilyPond. Maybe someone can help. The original verse text looks like this i LaTeX: "Må det väckta sinnet -- värdefullt, sublimt --" and I want those endashes to appear in the lyrics below as well. But they don't. Can someone help me out with this? \begin{lilypond} % set the starting point to middle C \relative c' { c c c c c c d d d d c r } % The -- endash:es disappear. I would like to see them between the words "sinnet" and "värdefullt", as well as after "sublimt". \addlyrics {Må det väck- ta sin- net -- vär- de- fullt sub- limt -- } \end{lilypond} Kind regards, -- Peter Olin ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: 2.15.14 will not run on Mac x86
"Stan Sanderson" wrote in message news:0d770350-3bf2-4555-8f4c-ee7b5d86c...@gmail.com... Sad to report that LilyPond v 2.15.14-1 fails to run on my iMac. Error report follows below. As previously reported, v 2.15.8 is the last version to run successfully. The previously suggested workaround was not effective. Process: LilyPond [285] Path: /Users/ssanders/Desktop/LilyPond.app/Contents/MacOS/LilyPond Identifier: org.lilypond.lilypond Version: ??? (???) Code Type: X86 (Native) Parent Process: launchd [130] Interval Since Last Report: 80698 sec Crashes Since Last Report: 5 Per-App Interval Since Last Report: 0 sec Per-App Crashes Since Last Report: 3 Date/Time: 2011-10-10 09:04:18.581 -0500 OS Version: Mac OS X 10.5.8 (9L30) Report Version: 6 Anonymous UUID: DD0B279C-6937-406C-9BD0-5411DEFF183B Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0002, 0x Crashed Thread: 0 Dyld Error Message: unknown required load command 0x8022 Stan I believe this is http://code.google.com/p/lilypond/issues/detail?id=1943 ? -- Phil Holmes Bug Squad ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re:cuenotes are not displayed (Ian Hulin)
Dear community, because of the wrong code, I post You my snippet again. The Problem is: the quoted voice doesn't appear in the staff "anotherinstrument" and it has definetily to do with the command > \set PianoStaff.instrumentName= "Piano" > Is there possibilitie to get the quodation without quitting the command that sets the instrumentName for the PianoStaff? I have the problem, in a larger score, hat some cuenotes are not displayed. I assume it has to do with some commands that are related to another context than Voice. Here my new snippet: \version "2.14.2" > right = { > \set PianoStaff.instrumentName = "Piano" > c'' 4 g' a' b' c'' 4 d'' e'' f'' g'' 1 } > \addQuote "right" { \right } > anotherinstrument = { c' 1 \quoteDuring #"right" s1 c'1 } > > \score { \new Staff \anotherinstrument } > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user