Re: dynamics positioning
On 10/29/2012 04:52 PM, m...@mikesolomon.org wrote: I had to take a break from LilyPond development for a couple months but I hope to be back on board in a month or so. This was the exact problem that I was working on. The long and short of it is that LilyPond does not know how to handle cross-staff objects in vertical spacing. As a result, there are collisions. There is no good way to get around this save manually overriding things like Y-offset or, if necessary, extra-Y-offset. Cheers, MS Okay. Thanks everyone for your help. Best, Peter -- //= - Peter O'Doherty - http://www.peterodoherty.net - m...@peterodoherty.net - https://joindiaspora.com/people/70716 //= ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: dynamics positioning
Try using two Dynamics contexts, one above and one below. DR -Original Message- From: Peter O'Doherty [mailto:m...@peterodoherty.net] Sent: Monday, October 29, 2012 9:14 AM To: lilypond-user Subject: dynamics positioning Hi, Could someone please take a look at the attached file and help with the placement of dynamics + hairpins? (I also attach an example output.) Ideally they would be grouped together above the top stave for the upper notes and below the lower stave for the lower notes. ^ and _ have little effect. Many thanks, Peter -- //= - Peter O'Doherty - http://www.peterodoherty.net - m...@peterodoherty.net - https://joindiaspora.com/people/70716 //= ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: dynamics positioning
Can't really tell from the attachment. As a rule, tiny excerpts of code (which other users can compile themselves) are more useful for debugging than PDFs. Check out: http://www.lilypond.org/tiny-examples.html DR From: Peter O'Doherty [mailto:m...@peterodoherty.net] Sent: Monday, October 29, 2012 9:45 AM To: Daniel Rosen Cc: lilypond-user Subject: Re: dynamics positioning Thanks. My logic suggests it should be enough to add this line above the cymbals part, but it doesn't seems to work (see attached file). \new Dynamics { \time 3/8 \times 2/3 { s8\mf s32 s32 s8.\pp \times 8/13 { s64 s16 s16 s16\pp } s64. s64 s64.] } | } What am I doing wrong? Thanks, Peter On 10/29/2012 02:19 PM, Daniel Rosen wrote: Try using two Dynamics contexts, one above and one below. DR -Original Message- From: Peter O'Doherty [mailto:m...@peterodoherty.net] Sent: Monday, October 29, 2012 9:14 AM To: lilypond-user Subject: dynamics positioning Hi, Could someone please take a look at the attached file and help with the placement of dynamics + hairpins? (I also attach an example output.) Ideally they would be grouped together above the top stave for the upper notes and below the lower stave for the lower notes. ^ and _ have little effect. Many thanks, Peter -- //= - Peter O'Doherty - http://www.peterodoherty.net - m...@peterodoherty.net - https://joindiaspora.com/people/70716 //= -- //= - Peter O'Doherty - http://www.peterodoherty.net - m...@peterodoherty.net - https://joindiaspora.com/people/70716 //= ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: dynamics positioning
Sorry for the oversight. The attached code is as minimal as I can get it. Thanks, Peter On 10/29/2012 02:48 PM, Daniel Rosen wrote: Can't really tell from the attachment. As a rule, tiny excerpts of code (which other users can compile themselves) are more useful for debugging than PDFs. Check out: http://www.lilypond.org/tiny-examples.html DR From: Peter O'Doherty [mailto:m...@peterodoherty.net] Sent: Monday, October 29, 2012 9:45 AM To: Daniel Rosen Cc: lilypond-user Subject: Re: dynamics positioning Thanks. My logic suggests it should be enough to add this line above the cymbals part, but it doesn't seems to work (see attached file). \new Dynamics { \time 3/8 \times 2/3 { s8\mf s32 s32 s8.\pp \times 8/13 { s64 s16 s16 s16\pp } s64. s64 s64.] } | } What am I doing wrong? Thanks, Peter On 10/29/2012 02:19 PM, Daniel Rosen wrote: Try using two Dynamics contexts, one above and one below. DR -Original Message- From: Peter O'Doherty [mailto:m...@peterodoherty.net] Sent: Monday, October 29, 2012 9:14 AM To: lilypond-user Subject: dynamics positioning Hi, Could someone please take a look at the attached file and help with the placement of dynamics + hairpins? (I also attach an example output.) Ideally they would be grouped together above the top stave for the upper notes and below the lower stave for the lower notes. ^ and _ have little effect. Many thanks, Peter -- //= - Peter O'Doherty - http://www.peterodoherty.net - m...@peterodoherty.net - https://joindiaspora.com/people/70716 //= -- //= - Peter O'Doherty - http://www.peterodoherty.net - m...@peterodoherty.net - https://joindiaspora.com/people/70716 //= \version 2.16.0 \language english \header { tagline = ##f } #(set-default-paper-size a4 'portrait) \paper{ top-margin = 2.0\cm } \new Dynamics { \time 3/8 \times 2/3 { s8\mf s32 s32 s8.\pp \times 8/13 { s64 s16 s16 s16\pp } s64. s64 s64.] } | } cymbals = { \clef percussion \stemUp \time 3/8 \change Staff = conga \times 2/3 { d'8[\mf \change Staff = cymbals a32 e'32 \change Staff = temple d'8.\pp \change Staff = cymbals \times 8/13 { r64 c'16^\mp^\ a16 \change Staff = temple b16 } \change Staff = cymbals e'64. \change Staff = temple g64^\f \change Staff = cymbals c'64.] }| } temple = { \clef percussion s8 s8 s8 | } toms = { \clef percussion s8 s8 s8 | } conga = { \clef percussion s8 s8 s8 | } snare = { \clef percussion \stemDown r8 \change Staff = temple g8[\pp \change Staff = conga d'32\mf\ b32 \change Staff = snare c'16]\mp | } { \new StaffGroup \new Staff = cymbals \cymbals \new Staff = temple \temple \new Staff = toms \toms \new Staff = conga \conga \new Staff = snare \snare } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: dynamics positioning
Well, first of all, in the future, you can just paste code right into the body of your email, like I'm about to do--no need for an attachment. :-) And second, I would dispute that you couldn't get it smaller--like the page I referenced says, very few tiny examples are longer than about 10 lines of code. That being said... You need to include the Dynamics context within your score block, like so: dynamics = { \time 3/8 \times 2/3 { s8\mf s32 s32 s8.\pp \times 8/13 { s64 s16 s16 s16\pp } s64. s64 s64.] } | } % All other variables go here, unchanged % { \new StaffGroup \new Dynamics \dynamics \new Staff = cymbals \cymbals \new Staff = temple \temple \new Staff = toms \toms \new Staff = conga \conga \new Staff = snare \snare } Unfortunately, while this corrects the horizontal alignment of the grobs within the Dynamics context, they now collide with the beams, so the vertical spacing needs to be adjusted. I'm not sure how to do that without having to adjust 'Y-offset for each individual DynamicText, so I'm gonna have to punt this to someone else on the list. DR -Original Message- From: Peter O'Doherty [mailto:m...@peterodoherty.net] Sent: Monday, October 29, 2012 9:53 AM To: Daniel Rosen Cc: lilypond-user Subject: Re: dynamics positioning Sorry for the oversight. The attached code is as minimal as I can get it. Thanks, Peter On 10/29/2012 02:48 PM, Daniel Rosen wrote: Can't really tell from the attachment. As a rule, tiny excerpts of code (which other users can compile themselves) are more useful for debugging than PDFs. Check out: http://www.lilypond.org/tiny-examples.html DR From: Peter O'Doherty [mailto:m...@peterodoherty.net] Sent: Monday, October 29, 2012 9:45 AM To: Daniel Rosen Cc: lilypond-user Subject: Re: dynamics positioning Thanks. My logic suggests it should be enough to add this line above the cymbals part, but it doesn't seems to work (see attached file). \new Dynamics { \time 3/8 \times 2/3 { s8\mf s32 s32 s8.\pp \times 8/13 { s64 s16 s16 s16\pp } s64. s64 s64.] } | } What am I doing wrong? Thanks, Peter On 10/29/2012 02:19 PM, Daniel Rosen wrote: Try using two Dynamics contexts, one above and one below. DR -Original Message- From: Peter O'Doherty [mailto:m...@peterodoherty.net] Sent: Monday, October 29, 2012 9:14 AM To: lilypond-user Subject: dynamics positioning Hi, Could someone please take a look at the attached file and help with the placement of dynamics + hairpins? (I also attach an example output.) Ideally they would be grouped together above the top stave for the upper notes and below the lower stave for the lower notes. ^ and _ have little effect. Many thanks, Peter -- //= - Peter O'Doherty - http://www.peterodoherty.net - m...@peterodoherty.net - https://joindiaspora.com/people/70716 //= -- //= - Peter O'Doherty - http://www.peterodoherty.net - m...@peterodoherty.net - https://joindiaspora.com/people/70716 //= ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: dynamics positioning
Daniel Rosen wrote Unfortunately, while this corrects the horizontal alignment of the grobs within the Dynamics context, they now collide with the beams, so the vertical spacing needs to be adjusted. I'm not sure how to do that without having to adjust 'Y-offset for each individual DynamicText, so I'm gonna have to punt this to someone else on the list. I think this will help: \new Dynamics \with { \override VerticalAxisGroup #'staff-affinity = ##f } \dynamics and I think you will need a 2nd dynamic context to achieve the dynamics at the bottom of your staffGroup! Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/dynamics-positioning-tp135524p135532.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: dynamics positioning
On 29 oct. 2012, at 15:13, Daniel Rosen drose...@gmail.com wrote: Well, first of all, in the future, you can just paste code right into the body of your email, like I'm about to do--no need for an attachment. :-) And second, I would dispute that you couldn't get it smaller--like the page I referenced says, very few tiny examples are longer than about 10 lines of code. That being said... You need to include the Dynamics context within your score block, like so: dynamics = { \time 3/8 \times 2/3 { s8\mf s32 s32 s8.\pp \times 8/13 { s64 s16 s16 s16\pp } s64. s64 s64.] } | } % All other variables go here, unchanged % { \new StaffGroup \new Dynamics \dynamics \new Staff = cymbals \cymbals \new Staff = temple \temple \new Staff = toms \toms \new Staff = conga \conga \new Staff = snare \snare } Unfortunately, while this corrects the horizontal alignment of the grobs within the Dynamics context, they now collide with the beams, so the vertical spacing needs to be adjusted. I'm not sure how to do that without having to adjust 'Y-offset for each individual DynamicText, so I'm gonna have to punt this to someone else on the list. DR -Original Message- From: Peter O'Doherty [mailto:m...@peterodoherty.net] Sent: Monday, October 29, 2012 9:53 AM To: Daniel Rosen Cc: lilypond-user Subject: Re: dynamics positioning Sorry for the oversight. The attached code is as minimal as I can get it. Thanks, Peter On 10/29/2012 02:48 PM, Daniel Rosen wrote: Can't really tell from the attachment. As a rule, tiny excerpts of code (which other users can compile themselves) are more useful for debugging than PDFs. Check out: http://www.lilypond.org/tiny-examples.html DR From: Peter O'Doherty [mailto:m...@peterodoherty.net] Sent: Monday, October 29, 2012 9:45 AM To: Daniel Rosen Cc: lilypond-user Subject: Re: dynamics positioning Thanks. My logic suggests it should be enough to add this line above the cymbals part, but it doesn't seems to work (see attached file). \new Dynamics { \time 3/8 \times 2/3 { s8\mf s32 s32 s8.\pp \times 8/13 { s64 s16 s16 s16\pp } s64. s64 s64.] } | } What am I doing wrong? Thanks, Peter On 10/29/2012 02:19 PM, Daniel Rosen wrote: Try using two Dynamics contexts, one above and one below. DR -Original Message- From: Peter O'Doherty [mailto:m...@peterodoherty.net] Sent: Monday, October 29, 2012 9:14 AM To: lilypond-user Subject: dynamics positioning Hi, Could someone please take a look at the attached file and help with the placement of dynamics + hairpins? (I also attach an example output.) Ideally they would be grouped together above the top stave for the upper notes and below the lower stave for the lower notes. ^ and _ have little effect. Many thanks, Peter -- //= - Peter O'Doherty - http://www.peterodoherty.net - m...@peterodoherty.net - https://joindiaspora.com/people/70716 //= -- //= - Peter O'Doherty - http://www.peterodoherty.net - m...@peterodoherty.net - https://joindiaspora.com/people/70716 //= ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user I had to take a break from LilyPond development for a couple months but I hope to be back on board in a month or so. This was the exact problem that I was working on. The long and short of it is that LilyPond does not know how to handle cross-staff objects in vertical spacing. As a result, there are collisions. There is no good way to get around this save manually overriding things like Y-offset or, if necessary, extra-Y-offset. Cheers, MS ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Trivial (?) question re dynamics positioning
The conclusion is that you should look at the manual for version 2.6 if you use that version and the manual for version 2.7 if you use that. The original answer provided a link to the version 2.7 manual. /Mats Thomas Ruedas wrote: On Monday 05 December 2005 19:22, David Rogers wrote: On 5-Dec-05, at 8:52 AM, Thomas Ruedas wrote: I use 2.6.3 and got the following error: Interpreting music... error: unknown translator: `Engraver_group' In the link above, I've changed 2.7 to 2.6 - there appear to be some small differences in the templates for the different versions. And always say which version you're working on when you ask a question. :-) Yes, sorry, I forgot that - however, what is the conclusion now? Is the Engraver_group a new feature introduced only in 2.7? Then this example shouldn't be in the 2.6 branch of the docs. Thomas -- = 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 lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Trivial (?) question re dynamics positioning
Hi again, On Monday 05 December 2005 06:02, David Rogers wrote: On 4-Dec-05, at 6:42 PM, Thomas Ruedas wrote: lately I have been wondering about how to position dynamics commands (i.e. f, p, mf, etc.) so that they are exactly in the middle between the two staves of a piano score. http://lilypond.org/doc/v2.7/Documentation/user/lilypond/Piano- templates.html#Piano-templates thanks for the pointer, David; the example shows exactly what I want - the only problem is that it didn't work for me when I copied it (and commented out the pedal stuff, which I don't need here). The example in the form I tried is given at the end of this mail. I use 2.6.3 and got the following error: Interpreting music... error: unknown translator: `Engraver_group' If I comment the line \type Engraver_group, I get the following even more confusing error: Interpreting music... /usr/share/lilypond/2.6.3/ly/init.ly:8:3: In procedure symbol-string in expression (ly:parser-print-book parser (apply ly:make-book $defaultpaper ...)): /usr/share/lilypond/2.6.3/ly/init.ly:8:3: Wrong type argument in position 1 (expecting SYMBOLP): () While I don't have the slightest clue what this means, I did not expect there to be a problem with the Engraver_group, because the example assumes v.2.6.0, i.e. more or less what I have. What can I do about this? Thomas \score { \context PianoStaff \context Staff = upper \i \context Dynamics = dynamics \dynamics \context Staff= lower \ii % \context Dynamics=pedal \pedal \layout { \context { \type Engraver_group \name Dynamics \alias Voice % So that \cresc works, for example. \consists Output_property_engraver \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1) % pedalSustainStrings = #'(Ped. *Ped. *) % pedalUnaCordaStrings = #'(una corda tre corde) % \consists Piano_pedal_engraver \consists Script_engraver \consists Dynamic_engraver \consists Text_engraver \override TextScript #'font-size = #2 \override TextScript #'font-shape = #'italic \override DynamicText #'extra-offset = #'(0 . 2.5) \override Hairpin #'extra-offset = #'(0 . 2.5) \consists Skip_event_swallow_translator \consists Axis_group_engraver } \context { \PianoStaff \accepts Dynamics \override VerticalAlignment #'forced-distance = #7 } } } \score { \context PianoStaff \context Staff=upper \i \dynamics \context Staff=lower \ii \dynamics % \context Dynamics=pedal \pedal \midi { \context { \type Performer_group \name Dynamics % \consists Piano_pedal_performer } \context { \PianoStaff \accepts Dynamics } \tempo 4 = 90 } } -- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Trivial (?) question re dynamics positioning
On Monday 05 December 2005 19:22, David Rogers wrote: On 5-Dec-05, at 8:52 AM, Thomas Ruedas wrote: I use 2.6.3 and got the following error: Interpreting music... error: unknown translator: `Engraver_group' In the link above, I've changed 2.7 to 2.6 - there appear to be some small differences in the templates for the different versions. And always say which version you're working on when you ask a question. :-) Yes, sorry, I forgot that - however, what is the conclusion now? Is the Engraver_group a new feature introduced only in 2.7? Then this example shouldn't be in the 2.6 branch of the docs. Thomas -- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Trivial (?) question re dynamics positioning
Hi, lately I have been wondering about how to position dynamics commands (i.e. f, p, mf, etc.) so that they are exactly in the middle between the two staves of a piano score. The way suggested in the docs is to put them into the notes of either the right or left hand, but this results in them being closer to the upper or lower staff, respectively, and makes it look as if they would only affect the corresponding hand, which is not normally what I want. The insertion of the dynamics in the part of one hand or another also has the side effect that in the MIDI produced from it, only the respective hand is affected by the dynamics command, but not both, with is (usually) not what I want either. Any solutions? Thomas -- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Trivial (?) question re dynamics positioning
On 4-Dec-05, at 6:42 PM, Thomas Ruedas wrote: Hi, lately I have been wondering about how to position dynamics commands (i.e. f, p, mf, etc.) so that they are exactly in the middle between the two staves of a piano score. The way suggested in the docs is to put them into the notes of either the right or left hand, but this results in them being closer to the upper or lower staff, respectively, and makes it look as if they would only affect the corresponding hand, which is not normally what I want. The insertion of the dynamics in the part of one hand or another also has the side effect that in the MIDI produced from it, only the respective hand is affected by the dynamics command, but not both, with is (usually) not what I want either. Any solutions? Go here: http://lilypond.org/doc/v2.7/Documentation/user/lilypond/Piano- templates.html#Piano-templates Scroll two-thirds of the way down the page, where a template is given for this. Hope it's useful David ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user