Re: Tremolos between two whole notes
On 3 February 2012 17:00, Brent Annable wrote: > Hello everyone, > > I have a question, and perhaps a suggestion. I just typeset the following > tremolo between two whole notes: > > \score { > \relative c'' { > > \repeat tremolo 16 { gis32 b } > > } > } > > and was quite disappointed by the fact that Lilypond places the tremolo > beams horizontally and above the notes in question. I much prefer the look > of the first tremolo in this image: > > http://media.wiley.com/assets/25/94/0-7645-5105-1_1309.jpg > > with the beams tilted and occupying the space in-between the whole notes. I > read through the manual and searched for some snippets, but couldn't find > any reference to this tremolo style at all. Is there any relatively simple > way of achieving this look that I'm missing? And if not, could a tremolo > style option perhaps be added for those who prefer them this way? You are not the first one to ask for this. And IIRC there was quite a consensus on the fact that your suggestion should actually be the default behaviour. AFAICS this is tracked as issue #318 http://code.google.com/p/lilypond/issues/detail?id=318 but as I said, there have been several discussions about this issue (later than the initial report). Maybe the last time this was discussed was in a thread with Janek and his new tremolo styles? Cheers, Xavier -- Xavier Scheuer ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tremolos between two whole notes
Xavier, Ok thanks for the reply. Sorry if I'm talking about things already under discussion; I do my best, but still find it very difficult to sift through all the old stuff online to see if these issues are known or not. I've put the issues link in my bookmarks and I'll look there first from now on. I suppose, since the issue is already known and I'm not a programmer, I just need to wait then? Brent. On 4 February 2012 00:44, Xavier Scheuer wrote: > On 3 February 2012 17:00, Brent Annable wrote: > > Hello everyone, > > > > I have a question, and perhaps a suggestion. I just typeset the following > > tremolo between two whole notes: > > > > \score { > > \relative c'' { > > > > \repeat tremolo 16 { gis32 b } > > > > } > > } > > > > and was quite disappointed by the fact that Lilypond places the tremolo > > beams horizontally and above the notes in question. I much prefer the > look > > of the first tremolo in this image: > > > > http://media.wiley.com/assets/25/94/0-7645-5105-1_1309.jpg > > > > with the beams tilted and occupying the space in-between the whole > notes. I > > read through the manual and searched for some snippets, but couldn't find > > any reference to this tremolo style at all. Is there any relatively > simple > > way of achieving this look that I'm missing? And if not, could a tremolo > > style option perhaps be added for those who prefer them this way? > > You are not the first one to ask for this. > And IIRC there was quite a consensus on the fact that your suggestion > should actually be the default behaviour. > > AFAICS this is tracked as issue #318 > http://code.google.com/p/lilypond/issues/detail?id=318 > but as I said, there have been several discussions about this issue > (later than the initial report). Maybe the last time this was discussed > was in a thread with Janek and his new tremolo styles? > > Cheers, > Xavier > > -- > Xavier Scheuer > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tremolos between two whole notes
2012/2/4 Xavier Scheuer : > Maybe the last time this was discussed > was in a thread with Janek and his new tremolo styles? I don't recall discussions about whole note tremolo related to the tremolo style i was working on. As for the said tremolo style, i'd like to finish that indeed, but i have lots of other stuff flying around, and also i'm heavily demotivated because of recent Patchy rewrite failure :( 2012/2/4 Brent Annable : > I suppose, since the issue is already known and I'm not a programmer, I just > need to wait then? You can pay David Kastrup to fix it; chances that "just waiting" will be enough to have it fixed are close to 0. If i were you i'd find some other people who want this and pay David together. sorry for being grumpy, Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tremolos between two whole notes
Janek Warchoł writes: > 2012/2/4 Xavier Scheuer : >> Maybe the last time this was discussed >> was in a thread with Janek and his new tremolo styles? > > I don't recall discussions about whole note tremolo related to the > tremolo style i was working on. > As for the said tremolo style, i'd like to finish that indeed, but i > have lots of other stuff flying around, and also i'm heavily > demotivated because of recent Patchy rewrite failure :( > > > 2012/2/4 Brent Annable : >> I suppose, since the issue is already known and I'm not a programmer, I just >> need to wait then? > > You can pay David Kastrup to fix it; chances that "just waiting" will > be enough to have it fixed are close to 0. If i were you i'd find > some other people who want this and pay David together. Probably it would be more effective to find some people for paying David to finish the work Janek got stuck on (which, after all, is supposed to replace work that LilyPond users can't be bothered with doing manually), and thus free Janek to think about what it would take for him to tackle this issue rather than working on less pleasant things. > sorry for being grumpy, After enough work on LilyPond, this will change. Not the "grumpy" part, but the "sorry" one. All the best -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tremolos between two whole notes
2012/2/4 Janek Warchoł : > > I don't recall discussions about whole note tremolo related to the > tremolo style i was working on. OK, I was not sure. And at that moment I was not courageous enough to 'dig' into the archive to find the relevant thread. Now I did. And I found this discussion I remembered a bit. It was indeed more recent that the report of 2007, since this discussion occurred in February 2011 (so exactly one year ago). The subject was titled "Cleanup beam scoring code" (yeah, so a bit difficult to find it by searching with the keyword "tremolo"!). Basically Werner, Reinhold and Han-Wen agreed that slanted "beam" tremolo should be the default behaviour for whole notes. And Reinhold said that "According to Gardner Read (p. 236-237) and Kurt Stone (p. 150-151), the beams of whole-note tremolos are slanted like with shorter durations with stems, but the beams are placed centered between the whole notes (i.e. not where an imaginary stem would end!). The only situation where an imaginary stem is used to determine the position/slant of the beams is in cross-staff tremolos." http://lists.gnu.org/archive/html/lilypond-devel/2011-02/msg00029.html http://lists.gnu.org/archive/html/lilypond-devel/2011-02/msg00032.html http://lists.gnu.org/archive/html/lilypond-devel/2011-02/msg00034.html I'm adding this comment on issue #1176 . > sorry for being grumpy, At least you are not "whining". :D Cheers, Xavier -- Xavier Scheuer ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tremolos between two whole notes
As far as getting the look you want, you need to use a combination of Beam #'gap, Beam #'positions, Beam #'extra-offset, and NoteHead #'stem-attachment. I've gotten very nice results with those overrides. It's a pain, but it's worth avoiding the horrible default. Hope that helps, Neil On Fri, Feb 3, 2012 at 9:00 AM, Brent Annable wrote: > Hello everyone, > > I have a question, and perhaps a suggestion. I just typeset the following > tremolo between two whole notes: > > \score { > \relative c'' { > > \repeat tremolo 16 { gis32 b } > > } > } > > and was quite disappointed by the fact that Lilypond places the tremolo > beams horizontally and above the notes in question. I much prefer the look > of the first tremolo in this image: > > http://media.wiley.com/assets/25/94/0-7645-5105-1_1309.jpg > > with the beams tilted and occupying the space in-between the whole notes. I > read through the manual and searched for some snippets, but couldn't find > any reference to this tremolo style at all. Is there any relatively simple > way of achieving this look that I'm missing? And if not, could a tremolo > style option perhaps be added for those who prefer them this way? > > Brent. > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > -- Neil Thornock, D.M. No Stopping, Standing, or Parking: http://neilthornock.net/mp3s/nostopping.mp3 Assistant Professor of Music Composition/Theory Brigham Young University ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tremolos between two whole notes
Neil, Thanks for your answer. I knew there would be a way of doing it with centering beams and so forth; trouble is I'm soo NOT a programmer and even the simplest override often takes me a while to work out. If you have any concrete examples of using these overrides for me, perhaps I could just plug them in and tweak the numbers a little to suit my own situation? Do you perhaps have any code you could send so I could have a fiddle? Brent. On 4 February 2012 16:42, Neil Thornock wrote: > As far as getting the look you want, you need to use a combination of > Beam #'gap, Beam #'positions, Beam #'extra-offset, and NoteHead > #'stem-attachment. I've gotten very nice results with those > overrides. It's a pain, but it's worth avoiding the horrible default. > > Hope that helps, > Neil > > On Fri, Feb 3, 2012 at 9:00 AM, Brent Annable > wrote: > > Hello everyone, > > > > I have a question, and perhaps a suggestion. I just typeset the following > > tremolo between two whole notes: > > > > \score { > > \relative c'' { > > > > \repeat tremolo 16 { gis32 b } > > > > } > > } > > > > and was quite disappointed by the fact that Lilypond places the tremolo > > beams horizontally and above the notes in question. I much prefer the > look > > of the first tremolo in this image: > > > > http://media.wiley.com/assets/25/94/0-7645-5105-1_1309.jpg > > > > with the beams tilted and occupying the space in-between the whole > notes. I > > read through the manual and searched for some snippets, but couldn't find > > any reference to this tremolo style at all. Is there any relatively > simple > > way of achieving this look that I'm missing? And if not, could a tremolo > > style option perhaps be added for those who prefer them this way? > > > > Brent. > > > > > > > > ___ > > lilypond-user mailing list > > lilypond-user@gnu.org > > https://lists.gnu.org/mailman/listinfo/lilypond-user > > > > > > -- > Neil Thornock, D.M. > No Stopping, Standing, or Parking: > http://neilthornock.net/mp3s/nostopping.mp3 > Assistant Professor of Music > Composition/Theory > Brigham Young University > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tremolos between two whole notes
Hi Brent, > On 4 February 2012 16:42, Neil Thornock wrote: >> >> As far as getting the look you want, you need to use a combination of >> Beam #'gap, Beam #'positions, Beam #'extra-offset, and NoteHead >> #'stem-attachment. I've gotten very nice results with those >> overrides. It's a pain, but it's worth avoiding the horrible default. based on Neil's suggestion I worked out the function above. You have to figure out the values manually. :( Please note: If you use "2.14.2" it will sometimes produce a warning, which I didn't manage to avoid or to suppress: "weird stem size, check for narrow beams" (p.e. with the cross-staff-example of the test), and you have to use other values. With "2.15.24" it compiles clean. \version "2.15.24" \paper { line-width = 120 } tweakWholeNoteTremolo = #(define-music-function (parser location y¹off-y²off)(pair?) #{ \once \override Beam #'gap = #1.3 \once \override Beam #'extra-offset = #(cons 0 (car y¹off-y²off)) \once \override Beam #'stencil = #(lambda (grob) (let* ((pos (ly:grob-property grob 'positions))) (ly:grob-set-property! grob 'positions (cons (car pos) (+ (cdr pos) (cdr y¹off-y²off (ly:beam::print grob))) #}) %--- test \score { \relative c'' { \tweakWholeNoteTremolo #'(-3 . 1.9) \repeat tremolo 16 { gis32 d' } %\break \tweakWholeNoteTremolo #'(-3.6 . 1.7) \repeat tremolo 32 { 64 d' } \tweakWholeNoteTremolo #'(4.4 . -3.5) \repeat tremolo 16 { a'32 a, } } } \new PianoStaff << \new Staff = "right" { \repeat tremolo 16 { \tweakWholeNoteTremolo #'(11.2 . -19) e'''32 \change Staff = "left" a,, } } \new Staff = "left" { \clef bass s1 } >> HTH, Harm <>___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tremolos between two whole notes
I should have written: based on Neil's suggestion I worked out the function _below_ (not above). :) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tremolos between two whole notes
Thanks guys for this! I'm ultra-busy right now so don't have time to play around with it just yet, but I'm very grateful. Brent. On 8 February 2012 01:03, Thomas Morley wrote: > I should have written: > based on Neil's suggestion I worked out the function _below_ (not above). > :) > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tremolos between two whole notes with LilyPond 2.20.0 and newer
On 2020-11-08 1:52 am, Kuredant Kuredant wrote: Hello, I've been using the solution mentioned in https://lists.gnu.org/archive/html/lilypond-user/2012-02/msg00253.html to adjust the orientation of the tremolo beams between two whole notes, like in this example: http://lilybin.com/vzv8uv/1 This works very well with LilyPond 2.18.2 and 2.19.48, but it no longer works with the latest stable and development versions (2.20.0 and 2.21.7): the beam stays horizontal. convert-ly only tells me to remove "parser" and "location" from "define-music-function", which doesn't improve the result, and I couldn't find anything in the release notes related to Beam.gap, Beam.extra-offset or Beam.stencil. Does somehave have a solution working with newer Lilypond versions? Not certain why the original fails, but here is an updated version that seems to work: \version "2.20.0" % From https://lists.gnu.org/archive/html/lilypond-user/2012-02/msg00253.html % Updated for 2.20.0 and newer. tweakWholeNoteTremolo = #(define-music-function (y-offsets) (pair?) "Change the whole note tremolo orientation (default is horizontal)" #{ \once { \override Beam.gap = #1.3 \override Beam.extra-offset = #(cons 0 (car y-offsets)) \override Beam.positions = #(grob-transformer 'positions (lambda (grob orig) (cons (car orig) (+ (cdr orig) (cdr y-offsets) } #}) \relative c' { \tweakWholeNoteTremolo #'(-4.4 . 3.3) \repeat tremolo 16 { c32 c' } } NOTE: While y¹off-y²off is a valid symbol in Scheme, I renamed it to something pure ASCII. Also NOTE: This code is no longer backwards compatible due to the use of grob-transformer. -- Aaron Hill