Re: multiple markups when combining voices on single staff
Hi Mats, I hadn't seen that example until just now :-) (getting back to this after being out of town for a bit). Unfortunately, it didn't seem to make much difference (perhaps I put it in the wrong place). What _did_ make a difference, oddly enough, was defining each voice as a "Thread" context rather than a "Voice" context. Now there are no more multiple rests and notes and dynamics still combine nicely. That plus splitting out the articulation seems to give me what I need. The code is pasted in below in case anyone is interested. Thanks, -- Niki % TEST FILE \include "english.ly" papersize = "letter" \include "paper20.ly" SaxOneConcertPitch = \context Thread \notes \relative c' { \key c \major \time 4/4 \partial 2.. r8 r4 r2 | % rest in pickups r2 g'4.\mp f8 | r1 | % Dm7 r2 g4. f8 | r1 | } SaxTwoConcertPitch = \context Thread \notes \relative c' { \key c \major \time 4/4 \partial 2.. r8 r4 r2 | % rest in pickups r2 e4.\mp d8 | r1 | % Dm7 r2 e4. d8 | r1 | } SaxThreeConcertPitch = \context Thread \notes \relative c' { \key c \major \time 4/4 \partial 2.. r8 r4 r2 | % rest in pickups r4 r8 a8 a4.\mp g8 | r1 | % Dm7 r2 a4. g8 | r1 | } SaxArticulation = \context Thread \notes { \time 4/4 \partial 2.. s8 s4 s2 | s2 s4. s8-. | s1 | s2 s4. s8-. | s1 | } \score { \new Staff { \clef treble << \SaxArticulation \SaxOneConcertPitch \SaxTwoConcertPitch \SaxThreeConcertPitch >> } } On Monday 06 October 2003 11:50 am, Mats Bengtsson wrote: > Have you seen > http://lilypond.org/doc/v1.8/input/test/out-www/collated-files.html#maximum >-rest-count.ly > > Mats > > Niki Pantelias wrote: > > Hi Mats, > > > > Thanks for the suggestions. Using \new or naming the voice contexts > > seems to help in some ways (no more collisions between notes and rests) > > but makes matters worse in others (e.g., prints three rests instead of > > one where all voices rest). Defining dymamics and articulations > > separately from the notes seems like a promising approach, though, so > > I'll experiment with that some. > > > > -- Niki > > > > On Monday 06 October 2003 07:05 am, Mats Bengtsson wrote: > >>Niki Pantelias wrote: > >>> Hi Graham (everyone), > >>> > >>> Thanks for the reply. I have experimented a bit with \partcombine, > >>> but I believe it is limited to only two voices; I need to put three or > >>> four voices on a single staff. Also, I'd like to have the stems > >>> "shared" across noteheads not set in opposite directions as > >>> \partcombine does. > >>> > >>> Just using simultaneous music, as I've been doing so far, combines > >>>noteheads and dynamic markings exactly as I'd like, but doesn't seem to > >>>work so well for articulation or solo sections (where it sets notes and > >>>rests on top of each other). > >> > >>You shouldn't get any collisions between notes and rests, did you > >>remember to make a new context for each of the voices (assigning > >>separate names for each context or using < {...} \\ {...}> or > >>using the \new function (which is new in version 2.0)). > >> > >>For dynamic markings, it may be more convenient to define them > >>separately from the music, so you can choose when to include them: > >>dynamicsA = \notes{ s1 \f \skip 1*10 s1 \pp ...} > >> > >>> Does anyone know if this is supposed to work, or if there is a > >>>workaround? Or a way to make \partcombine work with more than two > >>> voices? > >> > >>You can always do it with some extra manual work, but I can't point to > >>any automatic solution at the moment. See also > >>http://mail.gnu.org/archive/html/bug-lilypond/2003-09/msg00038.html > >> > >>Mats ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: multiple markups when combining voices on single staff
Simple! Just make sure that the music and the dynamics belong to the same Voice context. In your example, this is easiest done by replacing \new Staff with \new Voice. (If you start a Staff context with a << ...>>, a new Voice context will be created for each line within that \simultaneous.) Mats Graham Percival wrote: On Mon, 06 Oct 2003 13:05:04 +0200 Mats Bengtsson <[EMAIL PROTECTED]> wrote: For dynamic markings, it may be more convenient to define them separately from the music, so you can choose when to include them: dynamicsA = \notes{ s1 \f \skip 1*10 s1 \pp ...} How do you handle collisions when you attempt this? music=\notes{ g4 g } dynamics=\notes{s4\mp s4\ff} \score{ \new Staff << \music \dynamics >> } Cheers, - Graham ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology 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 [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: multiple markups when combining voices on single staff
On Mon, 06 Oct 2003 13:05:04 +0200 Mats Bengtsson <[EMAIL PROTECTED]> wrote: > For dynamic markings, it may be more convenient to define them > separately from the music, so you can choose when to include them: > dynamicsA = \notes{ s1 \f \skip 1*10 s1 \pp ...} How do you handle collisions when you attempt this? music=\notes{ g4 g } dynamics=\notes{s4\mp s4\ff} \score{ \new Staff << \music \dynamics >> } Cheers, - Graham ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: multiple markups when combining voices on single staff
Have you seen http://lilypond.org/doc/v1.8/input/test/out-www/collated-files.html#maximum-rest-count.ly Mats Niki Pantelias wrote: Hi Mats, Thanks for the suggestions. Using \new or naming the voice contexts seems to help in some ways (no more collisions between notes and rests) but makes matters worse in others (e.g., prints three rests instead of one where all voices rest). Defining dymamics and articulations separately from the notes seems like a promising approach, though, so I'll experiment with that some. -- Niki On Monday 06 October 2003 07:05 am, Mats Bengtsson wrote: Niki Pantelias wrote: Hi Graham (everyone), Thanks for the reply. I have experimented a bit with \partcombine, but I believe it is limited to only two voices; I need to put three or four voices on a single staff. Also, I'd like to have the stems "shared" across noteheads not set in opposite directions as \partcombine does. Just using simultaneous music, as I've been doing so far, combines noteheads and dynamic markings exactly as I'd like, but doesn't seem to work so well for articulation or solo sections (where it sets notes and rests on top of each other). You shouldn't get any collisions between notes and rests, did you remember to make a new context for each of the voices (assigning separate names for each context or using < {...} \\ {...}> or using the \new function (which is new in version 2.0)). For dynamic markings, it may be more convenient to define them separately from the music, so you can choose when to include them: dynamicsA = \notes{ s1 \f \skip 1*10 s1 \pp ...} Does anyone know if this is supposed to work, or if there is a workaround? Or a way to make \partcombine work with more than two voices? You can always do it with some extra manual work, but I can't point to any automatic solution at the moment. See also http://mail.gnu.org/archive/html/bug-lilypond/2003-09/msg00038.html Mats -- = Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology 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 [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: multiple markups when combining voices on single staff
Hi Mats, Thanks for the suggestions. Using \new or naming the voice contexts seems to help in some ways (no more collisions between notes and rests) but makes matters worse in others (e.g., prints three rests instead of one where all voices rest). Defining dymamics and articulations separately from the notes seems like a promising approach, though, so I'll experiment with that some. -- Niki On Monday 06 October 2003 07:05 am, Mats Bengtsson wrote: > Niki Pantelias wrote: > > Hi Graham (everyone), > > > > Thanks for the reply. I have experimented a bit with \partcombine, but > > I believe it is limited to only two voices; I need to put three or four > > voices on a single staff. Also, I'd like to have the stems "shared" > > across noteheads not set in opposite directions as \partcombine does. > > > > Just using simultaneous music, as I've been doing so far, combines > > noteheads and dynamic markings exactly as I'd like, but doesn't seem to > > work so well for articulation or solo sections (where it sets notes and > > rests on top of each other). > > You shouldn't get any collisions between notes and rests, did you > remember to make a new context for each of the voices (assigning > separate names for each context or using < {...} \\ {...}> or > using the \new function (which is new in version 2.0)). > > For dynamic markings, it may be more convenient to define them > separately from the music, so you can choose when to include them: > dynamicsA = \notes{ s1 \f \skip 1*10 s1 \pp ...} > > > Does anyone know if this is supposed to work, or if there is a > > workaround? Or a way to make \partcombine work with more than two voices? > > You can always do it with some extra manual work, but I can't point to > any automatic solution at the moment. See also > http://mail.gnu.org/archive/html/bug-lilypond/2003-09/msg00038.html > > Mats ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: multiple markups when combining voices on single staff
Niki Pantelias wrote: Hi Graham (everyone), Thanks for the reply. I have experimented a bit with \partcombine, but I believe it is limited to only two voices; I need to put three or four voices on a single staff. Also, I'd like to have the stems "shared" across noteheads not set in opposite directions as \partcombine does. Just using simultaneous music, as I've been doing so far, combines noteheads and dynamic markings exactly as I'd like, but doesn't seem to work so well for articulation or solo sections (where it sets notes and rests on top of each other). You shouldn't get any collisions between notes and rests, did you remember to make a new context for each of the voices (assigning separate names for each context or using < {...} \\ {...}> or using the \new function (which is new in version 2.0)). For dynamic markings, it may be more convenient to define them separately from the music, so you can choose when to include them: dynamicsA = \notes{ s1 \f \skip 1*10 s1 \pp ...} Does anyone know if this is supposed to work, or if there is a workaround? Or a way to make \partcombine work with more than two voices? You can always do it with some extra manual work, but I can't point to any automatic solution at the moment. See also http://mail.gnu.org/archive/html/bug-lilypond/2003-09/msg00038.html Mats ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: multiple markups when combining voices on single staff
Hi Graham (everyone), Thanks for the reply. I have experimented a bit with \partcombine, but I believe it is limited to only two voices; I need to put three or four voices on a single staff. Also, I'd like to have the stems "shared" across noteheads not set in opposite directions as \partcombine does. Just using simultaneous music, as I've been doing so far, combines noteheads and dynamic markings exactly as I'd like, but doesn't seem to work so well for articulation or solo sections (where it sets notes and rests on top of each other). Does anyone know if this is supposed to work, or if there is a workaround? Or a way to make \partcombine work with more than two voices? thanks, -- Niki On Saturday 04 October 2003 01:41 pm, Graham Percival wrote: > On Sat, 04 Oct 2003 11:57:45 -0400 > > Niki Pantelias <[EMAIL PROTECTED]> wrote: > > I'm trying to make a score which has several voices on a staff. I'm > > using identifiers to define each voice separately so that I can use the > > same input file to print out individual parts. Each definition contains > > its own dynamic and articulation markings, etc. > > I believe that \partcombine takes care of this, but I haven't used it yet. > Have a look for \partcombine stuff in the manual and especially in the > examples. > > Cheers, > - Graham ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: multiple markups when combining voices on single staff
On Sat, 04 Oct 2003 11:57:45 -0400 Niki Pantelias <[EMAIL PROTECTED]> wrote: > I'm trying to make a score which has several voices on a staff. I'm using > identifiers to define each voice separately so that I can use the same input > file to print out individual parts. Each definition contains its own dynamic > and articulation markings, etc. I believe that \partcombine takes care of this, but I haven't used it yet. Have a look for \partcombine stuff in the manual and especially in the examples. Cheers, - Graham ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user