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