Breaking autobeams and stem direction with acciaccaturas
Hi all (Hopefully) a quick question about break autobeams and stem direction. When I compile the following music, each embellishment that contains more than one acciaccatura breaks both the autobeaming and the stem direction that I have written in. Bars 1-2 contain the music with embellishments Bars 3-4 contain the same music without embellishments If I leave bars 1-2 in, then 3-4 also break. If I comment out bars 1-2, then bars 3-4 are correct. What wierdness have I done in my file? \version "2.10.33" %Gratuitously borrowed from Hugo Flordal myautobeams = { #(revert-auto-beam-setting '(end 1 32 4 4) 5 8) #(override-auto-beam-setting '(end * * 8 8) 1 4 'Voice) #(override-auto-beam-setting '(end * * 8 8) 1 2 'Voice) #(override-auto-beam-setting '(end * * 8 8) 3 4 'Voice) \set subdivideBeams = ##t \set beatLength = #(ly:make-moment 1 8) % Subdivide beams on eighths } mynoteproperties = { \override Stem #'direction = #DOWN \override Slur #'direction = #UP \override Tie #'direction = #UP \override StemTremolo #'slope = #0.45 \override Staff.StaffSymbol #'line-count = 1 \override Staff.BarLine #'bar-size = 5 \set Score.proportionalNotationDuration = #(ly:make-moment 1 16) % \override Beam #'positions = #'(-5 . -5) %breaks acciaccas \override Beam #'damping = #1 %doesn't work } %my shorthand for embellishments flR = { \tiny { \acciaccatura d8 } \normalsize } % right flam drR = { \acciaccatura { \tiny d16[ d] } \normalsize } % right drag rfR = { \acciaccatura { \tiny d32[ b b] } \normalsize } %right ruff staffSnare = \new Staff { \time 4/4 \clef percussion \relative c' { \myautobeams \mynoteproperties \drR b8 \drR b %first drR points down. It should be up. % second drR breaks the autobeam and the main note is up! \rfR d8 \rfR d16 d %second rfR breaks the auto beaming \flR b8:32->( \times 2/3 {b16) d \flR b->} %upside down! stems up! d8 b32 d b d | \drR b8 \rfR b16 \times 2/3 {d32 b b} %rfR breaks autobeam %everything after the rfR in this line is % stem=up -> against the rules d16 b d b d16 \drR b32 b d b d b % drR -> see rfL above! d16. b32 d32 b d b | \bar "||" %If I comment out the previous music, then the following turns out correct. % This music is a copy of the above without the acciaccaturas b8 b d8 d16 d b8:32->( \times 2/3 {b16) d b->} d8 b32 d b d | b8 b16 \times 2/3 {d32 b b} d16 b d b d16 b32 b d b d b d16. b32 d32 b d b | \bar "|." } } \score{ << \staffSnare >> } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
computing staff line lenght in case of ragged-right
Hi, Still typesetting my hymn, I use ragged-right = ##t to make the lines not too long. But I want the stafflines to be the full line-width. But how do I convert from staffspaces to milimeters? Currently I use: \version "2.11.43" #(set-global-staff-size 18) \paper { line-width = 10 \cm } \layout { ragged-right = ##t \context { \Staff \override StaffSymbol #'width = #'60 } } But that's just a guess. I tried: \override StaffSymbol #'width = #(* 10 cm) but that didn't work, the lines became very long... What would be the correct computation? TIA! best regards, Wilbert Berendsen -- LilyKDE, LilyPond for KDE: http://lilykde.googlecode.com/ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: change number of lines per staff
>Am I able to change the number of lines in a [Drum] staff from 5 -> 1? Lily has built-in support for DrumStaves with one, two or five lines -- see the manual. In your case, it sounds lie you're after something like drumStyleTable = #percussion-style, like this: \version "2.10.25" up = \drummode { cb4 \times 2/3 { sn8 s sn } s4 sn4 | r8 sn8 cb4-. tri8-> r8 r4 \bar "||" } down = \drummode { s4 \times 2/3 { s8 sn s } sn4 s4 | r4 r4 tri8-> r8 r4 \bar "||" } \score { \new DrumStaff \with { drumStyleTable = #percussion-style \override StaffSymbol #'line-count = #1 \override BarLine #'bar-size = #4 % need to lengthen bar lines, or they disappear on single line DrumStaff } << \new DrumVoice { \voiceOne \up } \new DrumVoice { \voiceTwo \down } >> \layout { ragged-right = ##t } } HTH. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
(mostly solved) Re: Lyrics spacing from LeftEdge?
Op dinsdag 1 april 2008, schreef Mats Bengtsson: > Isn't a better solution to make the first syllable left aligned > with the note? This should automatically result in left aligned > lyrics and aligned notes. Unfortunately that does not look nice: with long words the spacing of both notes and words looks irregular. However: that could be an approach when there are more stanzas with lyrics. But in that case I think I would drop the requirement that lyric texts are aligned. I am now using an approach to have one transparent bar line at the beginning of a line (in fact at the end, just before the \break), and have the barline also drawn in the lyrics context. That works perfectly! but I have only some trouble with the first line (because of the stanza number, that also wants to be within the barline). But it's no problem to align that line by hand. How I did it: \layout { ragged-right = ##t \context { \Score \override LeftEdge #'space-alist #'key-signature = #'(extra-space . 1) % this one I set manually (on the eye) \override TimeSignature #'space-alist #'first-note = #'(extra-space . 4.6) % this is the distance from the keysig to the first (transparent) barline: \override KeySignature #'space-alist #'staff-bar = #'(extra-space . 9.0) } \context { \Staff % although ragged-right, lengthen the staff lines \override StaffSymbol #'width = #'60 % clef only on first line \override Clef #'break-visibility = #all-invisible % no space from the first (transparent) barline to the note \override BarLine #'space-alist #'first-note = #'(fixed-space . 0.0) } \context { \Lyrics \consists Bar_engraver \override BarLine #'transparent = ##t } } best regards, Wilbert Berendsen -- LilyKDE, LilyPond for KDE: http://lilykde.googlecode.com/ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyrics spacing from LeftEdge?
Isn't a better solution to make the first syllable left aligned with the note? This should automatically result in left aligned lyrics and aligned notes. /Mats Quoting Wilbert Berendsen <[EMAIL PROTECTED]>: Hi, I try to write a hymn (one voice with lyrics below), and I want to align the first lyric of each line vertically. I know i can use the space-alist properties of KeySignature and TimeSignature to determine the spacing to the first note, but I want the lyrics to start at an exact distance from the left, so the exact place of the first note varies with the length of the first lyric syllabe (because the lyrics are centered). I could manually tweak the place of first note of every line (because I know where the linebreaks occur) but I would rather an automatic way. This time LSR gave me no luck. The Wilhelmus example[1] looks quite like what I want, but it aligns the first notes, not the lyrics. In my case the length of the words varies quite wildly... [1] http://lilypond.org/doc/v2.11/input/wilhelmus.ly http://lilypond.org/doc/v2.11/input/wilhelmus.pdf thanks for any help, best regards, Wilbert Berendsen -- LilyKDE, LilyPond for KDE: http://lilykde.googlecode.com/ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
relative tremolo vertical spacing
Hi all Is there a way to specify a relative vertical offset for a tremolo? I want to (for example) make the tremolo appear on the stem halfway between the beam and the notehead. I can't use StemTremolo #Y-offset as I've got tremolos on crotchets -> demisemiquavers, and I don't particularly want to redefine the offset each time. eg: { \override Beam #'positions = #'(-5 . -5) d8:32( \times 2/3 {b16) d b} % this tremolo needs to be much higher d16. b32:128( b16.) d32 % this tremolo can't be any higher } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Lyrics spacing from LeftEdge?
Hi, I try to write a hymn (one voice with lyrics below), and I want to align the first lyric of each line vertically. I know i can use the space-alist properties of KeySignature and TimeSignature to determine the spacing to the first note, but I want the lyrics to start at an exact distance from the left, so the exact place of the first note varies with the length of the first lyric syllabe (because the lyrics are centered). I could manually tweak the place of first note of every line (because I know where the linebreaks occur) but I would rather an automatic way. This time LSR gave me no luck. The Wilhelmus example[1] looks quite like what I want, but it aligns the first notes, not the lyrics. In my case the length of the words varies quite wildly... [1] http://lilypond.org/doc/v2.11/input/wilhelmus.ly http://lilypond.org/doc/v2.11/input/wilhelmus.pdf thanks for any help, best regards, Wilbert Berendsen -- LilyKDE, LilyPond for KDE: http://lilykde.googlecode.com/ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: choir music, easy piano reduction and dynamics
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Montag, 31. März 2008 schrieb James E. Bailey: > Thanks for the help, unfortunately it doesn't affect the output, i.e., > I still get dynamics. You need to create a voice explicitly for each staff and remove the engraver there: \version "2.11.43" testing = { c'4\p d'8\< e' \times 2/3 {f' g'\! a'\f} } \new Score { \new Staff << \new Voice \with { \remove "Dynamic_engraver" } \testing >> } \score { \testing } Cheers, Reinhold - -- - -- Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFH8T2pTqjEwhXvPN0RAnxqAJ0ZZdRaysD2dKEFVgUoo8tI7GHifQCfXmhi 7XMpnh9XFa1LfM5H5AaaV8c= =S0Kq -END PGP SIGNATURE- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
balloons
hi i want my balloon text to point to the notehead but not 'box' it any ideas? cheers d ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: choir music, easy piano reduction and dynamics
2008/3/31, Trevor Daniels <[EMAIL PROTECTED]>: > > The Dynamic engraver is in the Voice context, not Staff. My bad :) Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: choir music, easy piano reduction and dynamics
The Dynamic engraver is in the Voice context, not Staff. Trevor D - Original Message - From: "James E. Bailey" <[EMAIL PROTECTED]> To: "Mailinglist lilypond-user" Cc: "Mailinglist lilypond-user" Sent: Monday, March 31, 2008 6:08 PM Subject: Re: choir music, easy piano reduction and dynamics On 31.03.2008, at 15:08, Valentin Villenave wrote: 2008/3/31, James E. Bailey <[EMAIL PROTECTED]>: I'm wondering if there's an easy way to generate a piano reduction from a choral piece but without all of the dynamics. The choir parts all have their dynamics, but the piano part shouldn't. And the handy snippet I found generates a piano part with all the dynamics showing. Simply remove the Dynamic engraver : \new PianoStaff << \new Staff \with { \remove "Dynamic_engraver" } << \new Voice \sopranos \new Voice \altos >> \new Staff \with { \remove "Dynamic_engraver" } << \new Voice \tenors \new Voice \barytones >> Cheers, Valentin Thanks for the help, unfortunately it doesn't affect the output, i.e., I still get dynamics. testing = { c'4\p d'8\< e' \times 2/3 {f' g'\! a'\f} } \score { \new Staff \with {\remove "Dynamic_engraver"} \testing } \score { \testing } \version "2.11.42" Am I not understanding something correctly? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: choir music, easy piano reduction and dynamics
On 31.03.2008, at 15:08, Valentin Villenave wrote: 2008/3/31, James E. Bailey <[EMAIL PROTECTED]>: I'm wondering if there's an easy way to generate a piano reduction from a choral piece but without all of the dynamics. The choir parts all have their dynamics, but the piano part shouldn't. And the handy snippet I found generates a piano part with all the dynamics showing. Simply remove the Dynamic engraver : \new PianoStaff << \new Staff \with { \remove "Dynamic_engraver" } << \new Voice \sopranos \new Voice \altos >> \new Staff \with { \remove "Dynamic_engraver" } << \new Voice \tenors \new Voice \barytones >> Cheers, Valentin Thanks for the help, unfortunately it doesn't affect the output, i.e., I still get dynamics. testing = { c'4\p d'8\< e' \times 2/3 {f' g'\! a'\f} } \score { \new Staff \with {\remove "Dynamic_engraver"} \testing } \score { \testing } \version "2.11.42" Am I not understanding something correctly? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: StaffSymbol: behaviour of ledger-line-thickness
Am Montag, 31. März 2008 schrieb Reinhold Kainhofer: > Am Montag, 31. März 2008 schrieb till Rettig: > > Hi, > > could somebody explain me how ledger-line-thickness behaves? > > [...] > > But I cannot get the staff space bigger (the second number), > > The final distance is then: > ( thickness * line-thickness * #1 ) + #2 Sorry, s/distance/thickness/, of course! (The distance of the ledger lines can't be changed by ledger-line-*thickness*) Cheers, Reinhold -- -- Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: StaffSymbol: behaviour of ledger-line-thickness
I have no inside information about this, but my reading of the description in the IR is that the thickness of the ledger line is determined as the sum of two parts: ledger-line-thickness = the value of line-thickness * the first number + the value of staff-space * the second number. The default value is line-thickness * 1.0 + staff-space * 0.1. The staff spacing itself is not influenced by these numbers, but can be changed as the staff-space property of StaffSymbol (but this will also change the spacing of all staff lines, not just ledger lines). Trevor D - Original Message - From: "till Rettig" <[EMAIL PROTECTED]> To: ; <[EMAIL PROTECTED]> Sent: Monday, March 31, 2008 4:34 PM Subject: StaffSymbol: behaviour of ledger-line-thickness Hi, could somebody explain me how ledger-line-thickness behaves? The IR states that it should be a pair: "ledger-line-thickness (pair of numbers) The thickness of ledger lines. It is the sum of 2 numbers: The first is the factor for line thickness, and the second for staff space. Both contributions are added. " But I cannot get the staff space bigger (the second number), instead the first number influences the thickness of the ledger line a bit, the second quite much, that is it becomes so heavy that the spaces almost disappear. Please compare the example: \score{ \new Staff \with { \override StaffSymbol #' ledger-line-thickness = #' ( 1 . .1 ) }{ d d d d } } \score{ \new Staff \with { \override StaffSymbol #' ledger-line-thickness = #' ( .1 . 1 ) }{ d d d d } } \score{ \new Staff \with { \override StaffSymbol #' ledger-line-thickness = #' ( .1 . .1 ) }{ d d d d } } \score{ \new Staff \with { \override StaffSymbol #' ledger-line-thickness = #' ( 1 . 1 ) }{ d d d d } } What am I missing here? How is this supposed to work? I was on 2.11.34, if it matters. Thanks Till -- Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! http://games.entertainment.gmx.net/de/entertainment/games/free ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: StaffSymbol: behaviour of ledger-line-thickness
Am Montag, 31. März 2008 schrieb till Rettig: > Hi, > could somebody explain me how ledger-line-thickness behaves? The IR states > that it should be a pair: > > "ledger-line-thickness (pair of numbers) > The thickness of ledger lines. It is the sum of 2 numbers: The first is > the factor for line thickness, and the second for staff space. Both > contributions are added. " > > But I cannot get the staff space bigger (the second number), instead the > first number influences the thickness of the ledger line a bit, the second > quite much, that is it becomes so heavy that the spaces almost disappear. Yes, because they use different units: -) The first one is a multiplier for the default thickness (quite small, ~ staff-space/10 ) -) The second one is an explicit width (in staff spaces, i.e. the default distance between two staff lines or ledger lines) The final distance is then: ( thickness * line-thickness * #1 ) + #2 Since the default thickness is quite small, of course the first number influences the width only a little bit, while the second (measured in different units!) increases it a lot. Actually, the following two settings produce roughly the same (i.e. ledger lines so thick that they touch each other: \override StaffSymbol #'ledger-line-thickness = #'( 10 . 0 ) \override StaffSymbol #'ledger-line-thickness = #'( 0 . 1 ) And, yes, even Han-Wen agrees that this is confusing. See his comment in lily/staff-symbol.cc: /* For raggedright without ragged staves, simply set width to the linewidth. (ok -- lousy UI, since width is in staff spaces) --hwn. */ > the second > quite much, that is it becomes so heavy that the spaces almost disappear. > Please compare the example: Things work as expected: The default line width is quite small and the first number is a multiplier for the default line width. The second one gives an additional width in staff space (i.e. the distance between each of the five lines of a standard staff). > \override StaffSymbol #' ledger-line-thickness = #' ( 1 . .1 ) This uses the default line width + 1/10 of the staff space = 1/5 staff space > \override StaffSymbol #' ledger-line-thickness = #' ( .1 . 1 ) This decreases the line with to 1/10 of its default (1/100 staff space!), but adds a full staff space (=distance between two ledger lines!), so of course all ledger lines touch each other. Cheers, Reinhold -- -- Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
StaffSymbol: behaviour of ledger-line-thickness
Hi, could somebody explain me how ledger-line-thickness behaves? The IR states that it should be a pair: "ledger-line-thickness (pair of numbers) The thickness of ledger lines. It is the sum of 2 numbers: The first is the factor for line thickness, and the second for staff space. Both contributions are added. " But I cannot get the staff space bigger (the second number), instead the first number influences the thickness of the ledger line a bit, the second quite much, that is it becomes so heavy that the spaces almost disappear. Please compare the example: \score{ \new Staff \with { \override StaffSymbol #' ledger-line-thickness = #' ( 1 . .1 ) }{ d d d d } } \score{ \new Staff \with { \override StaffSymbol #' ledger-line-thickness = #' ( .1 . 1 ) }{ d d d d } } \score{ \new Staff \with { \override StaffSymbol #' ledger-line-thickness = #' ( .1 . .1 ) }{ d d d d } } \score{ \new Staff \with { \override StaffSymbol #' ledger-line-thickness = #' ( 1 . 1 ) }{ d d d d } } What am I missing here? How is this supposed to work? I was on 2.11.34, if it matters. Thanks Till -- Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! http://games.entertainment.gmx.net/de/entertainment/games/free ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Minor color, ligature, ancient notation
> 2008/3/31, Robert Memering <[EMAIL PROTECTED]>: > > Am Samstag, 29. März 2008 17:02 schrieb Karl Hammar: > > > > > Ok, this is what I have hacked together > > If nobody has a better idea, could you consider adding it to the LSR? > We really lack snippets of this kind... It would be better if we solved the underlaying problems, which are a, we don't have black \breve \longa nor \maxima b, the spacing of ligatures gets wrong for part music (i.e. just one voice and one staff) a seems to be doable b is a known problem == What would be nice is if I could write something like % assuming late renaissance a1\ligature b2.\color\ligatureEnd c4\colorEnd or really what is notated is (to be performed as above in late renaissance and with triplets for early renaissance) a1\ligature b1\color\ligatureEnd c2\colorEnd where the \color .. \colorEnd means \times 2/3 { } (without the bracket, in imperfekt mensuration, and 3/2 in perfekt mensuration ) and change white notes to black and black notes to white. In the meantime, it could suffice to change the note to be printed (making a new symbol for the blackened \breve) and do white = { \once\override ??? = #'noteheads.s2petrucci } black = { \once\override ??? = #'noteheads.sM1petrucci_black } \[ a1 \black b1*3/4 \] \white c2*1/2 or \[ a1 \black b1*2/3 \] \white c2*1/3 or possible color = { swap white and black noteheads } \[ a1 \color { b1*2/3 \] c2*1/3 } > > However, just for the sake of people that might search > > for a topic like this: It's "minor color", not "calor". > > ... Thanks! I finally understand what it was about :) Oh, sorry for the confusion. Regards, /Karl ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: choir music, easy piano reduction and dynamics
2008/3/31, James E. Bailey <[EMAIL PROTECTED]>: > I'm wondering if there's an easy way to generate a piano reduction > from a choral piece but without all of the dynamics. The choir parts > all have their dynamics, but the piano part shouldn't. And the handy > snippet I found generates a piano part with all the dynamics showing. Simply remove the Dynamic engraver : \new PianoStaff << \new Staff \with { \remove "Dynamic_engraver" } << \new Voice \sopranos \new Voice \altos >> \new Staff \with { \remove "Dynamic_engraver" } << \new Voice \tenors \new Voice \barytones >> >> Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
choir music, easy piano reduction and dynamics
I'm wondering if there's an easy way to generate a piano reduction from a choral piece but without all of the dynamics. The choir parts all have their dynamics, but the piano part shouldn't. And the handy snippet I found generates a piano part with all the dynamics showing. Thanks ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: merging simultaneous rests from two voices
Reinhold Kainhofer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Montag, 31. März 2008 schrieb Wilbert Berendsen: Related question: isn't there a simpler way to just merge rests if they occur in both voices? Something like: \override Staff.NoteColumn #'merge-rests = ##t You know, the LSR contains lots of gems: http://lsr.dsi.unimi.it/LSR/Item?id=336 For the multi-measure rests, see http://lists.gnu.org/archive/html/lilypond-user/2008-02/msg00673.html a similar approach can be used as a simpler alternative to Trevor's "easiest way": \revert Rest #'direction but the solution in LSR is of course preferable. /Mats ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: merging simultaneous rests from two voices
Op maandag 31 maart 2008, schreef Reinhold Kainhofer: > Am Montag, 31. März 2008 schrieb Wilbert Berendsen: > > Related question: isn't there a simpler way to just merge rests if they > > occur in both voices? Something like: > > \override Staff.NoteColumn #'merge-rests = ##t > > You know, the LSR contains lots of gems: > http://lsr.dsi.unimi.it/LSR/Item?id=336 O, SHAME on ME for not perusing the LSR.! Thanks Trevor and Reinhold! best regards, Wilbert Berendsen -- LilyKDE, LilyPond for KDE: http://lilykde.googlecode.com/ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: merging simultaneous rests from two voices
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Montag, 31. März 2008 schrieb Wilbert Berendsen: > Related question: isn't there a simpler way to just merge rests if they > occur in both voices? Something like: > \override Staff.NoteColumn #'merge-rests = ##t You know, the LSR contains lots of gems: http://lsr.dsi.unimi.it/LSR/Item?id=336 Cheers, Reinhold - -- - -- Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFH8MAITqjEwhXvPN0RAgLVAJ4pwlp75OqlyVfKsdYH8jp3YCaIIQCeM1mW r88DkZ0axUec4ddt4lxQeIk= =kWyZ -END PGP SIGNATURE- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: merging simultaneous rests from two voices
The easiest way is to position the rests by writing a note followed by \rest. This allows you to position both rests in the same place. See Rests in the manual. Trevor D - Original Message - From: "Wilbert Berendsen" <[EMAIL PROTECTED]> To: Sent: Monday, March 31, 2008 11:13 AM Subject: merging simultaneous rests from two voices Hi, in choir music with two voices on a staff, I want to merge rests if both voices have the same rest-value at the same time. I know that I can use \oneVoice r r \voiceOne in the upper voice and skips in the other voice, but I want to use the same voice data also on separate staffs. I could manage that with tags, but that clutters the voices. So I'm trying to write a scheme macro that: - just inserts a rest if the voice is in \oneVoice mode, - inserts '\oneVoice r \voiceOne' if the voice is in \voiceOne mode, - or inserts 's' if the voice is in \voiceTwo mode My question: how do I determine from within scheme which mode the voice is in? I guess that I should read the 'direction property from some object, but from which? Related question: isn't there a simpler way to just merge rests if they occur in both voices? Something like: \override Staff.NoteColumn #'merge-rests = ##t That should merge rests on the Staff level if all voices have rests of the same duration. I would be willing to write code for such a function, but I would not know where to start in the C++ code... best regards, Wilbert Berendsen -- LilyKDE 0.4.11 is out: http://lilykde.googlecode.com/ Run LilyPond from Kate, or Konqueror, point and click, indenting, lyric hyphenation, convert etc. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
merging simultaneous rests from two voices
Hi, in choir music with two voices on a staff, I want to merge rests if both voices have the same rest-value at the same time. I know that I can use \oneVoice r r \voiceOne in the upper voice and skips in the other voice, but I want to use the same voice data also on separate staffs. I could manage that with tags, but that clutters the voices. So I'm trying to write a scheme macro that: - just inserts a rest if the voice is in \oneVoice mode, - inserts '\oneVoice r \voiceOne' if the voice is in \voiceOne mode, - or inserts 's' if the voice is in \voiceTwo mode My question: how do I determine from within scheme which mode the voice is in? I guess that I should read the 'direction property from some object, but from which? Related question: isn't there a simpler way to just merge rests if they occur in both voices? Something like: \override Staff.NoteColumn #'merge-rests = ##t That should merge rests on the Staff level if all voices have rests of the same duration. I would be willing to write code for such a function, but I would not know where to start in the C++ code... best regards, Wilbert Berendsen -- LilyKDE 0.4.11 is out: http://lilykde.googlecode.com/ Run LilyPond from Kate, or Konqueror, point and click, indenting, lyric hyphenation, convert etc. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Rotating/grouping grobs for microtonal accidentals
As far as I understand, the answer to both of your questions is that you have to replace the function that normally is done to typeset the accidentals with your own function. This is not necessarily so difficult as it first may seem. The simplest solution is to use the standard function used to typeset any "text" and specify the glyph to be printed as a markup, for example: \version "2.10.0" \relative c'{ \once \override Accidental #'stencil = #ly:text-interface::print \once \override Accidental #'text = \markup{\rotate #180 \musicglyph #"scripts.lvarcomma"} cis d e f g f e d c1 } This solution will not automatically recognize what glyph to use depending on the pitch of the note. Rather you will have to manually specify what markup to use for each accidental. Of course, you can still use the standard mechanism for the accidentals where the Feta font has a suitable glyph and only use the workaround for the rest. Don't forget to define macros for the different settings to save some typing. A more advanced solution would be to write a few lines of Scheme code that automatically gives you the proper accidental based on the note pitch. /Mats Torsten Anders wrote: On Mar 28, 2008, at 8:58 PM, Torsten Anders wrote: I would like to define a microtonal notation with alteration fractions (cf. http://lilypond.org/doc/v2.11/Documentation/topdocs/NEWS.html) -- thanks for providing this feature! Everything works great. My only problem is the creation of suitable accidentals. I need four additional signs: a comma up (/), a comma down (\), and a combination of these signs with the standard accidentals (#\ and b/). I figure I could use something like "scripts.lvarcomma" for a comma up. For a comma down, however, I need to rotate this sign or "scripts.rvarcomma". Moreover, I would like to group my commas with the common accidentals. How can I rotate and group feta font symbols which I want to add to the list of accidentals. % code does not work, should only clarify problem myGlyphs = #'((1 . "accidentals.doublesharp") [...] (1/6 . "scripts.rvarcomma") (0 . "accidentals.natural") ;; how can I rotate a symbol? (1/6 . (rotate "scripts.lvarcomma")) [...] ) Alternatively, is it perhaps possible to use another font (e.g., TrueType, or some PostScript font) for the accidentals? Thank you! Best Torsten -- Torsten Anders Interdisciplinary Centre for Computer Music Research University of Plymouth Office: +44-1752-233667 Private: +44-1752-558917 http://strasheela.sourceforge.net http://www.torsten-anders.de ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing School of Electrical Engineering Royal Institute of Technology (KTH) SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Minor calor, ligature, ancient notation
2008/3/31, Robert Memering <[EMAIL PROTECTED]>: > Am Samstag, 29. März 2008 17:02 schrieb Karl Hammar: > > > Ok, this is what I have hacked together If nobody has a better idea, could you consider adding it to the LSR? We really lack snippets of this kind... > However, just for the sake of people that might search > for a topic like this: It's "minor color", not "calor". ... Thanks! I finally understand what it was about :) Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Minor calor, ligature, ancient notation
Am Samstag, 29. März 2008 17:02 schrieb Karl Hammar: > Karl: > > Anyone know how to do the minor calor ligature (se circled part in > > attachment). > > ... > > Ok, this is what I have hacked together > (tag: nor = modern notes, men = mensural score, part = mensural parts) > > fakeLiga = { > \once\override Staff.HorizontalBracket #'bracket-flare = #'( 0 . 0 ) > \once\override Staff.HorizontalBracket #'thickness = #1.6 > \once\override Staff.HorizontalBracket #'edge-height = #'(0.7 . 0.7) > } > ... > \tag #'(men part) { > g1 \[ d \melisma > % this is a fake minor calor, together with the moved b4 > \once \override TextScript #'extra-offset = #'( 0.9 . -1.8) > a'1*3/4^\markup{ \beam #0.9 #0 #0.5 } > \] > \tag #'part { > \once \override NoteHead #'extra-offset = #'( -7.7 . 0 ) > \once \override Stem #'extra-offset = #'( -7.7 . 0 ) > } > \tag #'men { > \once \override NoteHead #'extra-offset = #'( -10.5 . 0 ) > \once \override Stem #'extra-offset = #'( -10.5 . 0 ) > } > b4 c2 g | > } > \tag #'nor { g1 \fakeLiga d\startGroup \melisma a'2.\stopGroup b4 c2 g | > } > > Anyone having a better solution? > > Regards, > /Karl Hi Karl, very tricky solution. However, just for the sake of people that might search for a topic like this: It's "minor color", not "calor". Regards, Robert -- Robert Memering Arbeitsbereich Linguistik, Universität Münster Hüfferstraße 27, D-48149 Münster, Germany Raum 01.85, Tel. +49-251-83-31958 http://santana.uni-muenster.de ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: change number of lines per staff
See the section on "Staff symbol" in the manual. /Mats Matthew wrote: Hi all I would like to start typesetting some pipeband drum music that I have. To do this, I need to have a single line (cf DrummStaff), but I would also need to be able to set the pitch of my notes, as the "pitch" denotes which hand the note is played with. Am I able to change the number of lines in a staff from 5 -> 1? Cheers Matthew ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing School of Electrical Engineering Royal Institute of Technology (KTH) SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: One MIDI file pr voice
If you have organized your input file using variables (see http://lilypond.org/doc/v2.11/Documentation/user/lilypond-learning/Large-projects#Large-projects) it's just to add a \score{...} block for every new MIDI file: \version "2.10.0" violin = \relative c'' { g4 c'8. e16 } viola = \relative c' { c4 e } \score{ \violin \midi{} } \score{ \viola \midi{} } The only problem is the naming of the resulting MIDI files. If your file is called myfile.ly, then the resulting MIDI files will be named myfile.midi, myfile-1.midi, myfile-2.midi, ... and you will have to keep track of which one is which. An alternative is to use separate .ly files for every instrument, that \include the actual music (see http://lilypond.org/doc/v2.11/Documentation/user/lilypond-learning/Scores-and-parts#Scores-and-parts for more hints) /Mats Morten Lemvigh wrote: Is there an easy way to produce a MIDI file per voice? Or should I do it with several runs of Lilypond, commenting the other voiced out? Regards, Morten ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing School of Electrical Engineering Royal Institute of Technology (KTH) SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
change number of lines per staff
Hi all I would like to start typesetting some pipeband drum music that I have. To do this, I need to have a single line (cf DrummStaff), but I would also need to be able to set the pitch of my notes, as the "pitch" denotes which hand the note is played with. Am I able to change the number of lines in a staff from 5 -> 1? Cheers Matthew ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
One MIDI file pr voice
Is there an easy way to produce a MIDI file per voice? Or should I do it with several runs of Lilypond, commenting the other voiced out? Regards, Morten ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user