Re: accidentalStyle modern
e.g. : http://lilypond.1069038.n5.nabble.com/Custom-accidental-styles-td190776.html Cheers, Pierre 2016-10-13 23:51 GMT+02:00 Simon Albrecht : > On 12.10.2016 18:49, sail...@mailbox.org wrote: > >> Hi all, >> >> the following remark is written in the lilypond docu for accidentalStyle >> modern: >> "after temporary accidentals, cancellation marks are printed also in the >> following measure". >> Is it possible to change the number of following measures where >> cancellation marks are written to more than one? >> > > I’m afraid there is no easy solution; you’d have to create a custom > accidental style, and even by that would be unusually difficult to achieve > what you want, IIRC. You should be able to find an example of custom > accidental style on the archives to this list. > > HTH a little bit, > Simon > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Controlling hairpin length - revisited!
On 13.10.2016 14:41, David Sumbler wrote: On Wed, 2016-10-12 at 14:10 -0400, Kieren MacMillan wrote: Hi David, But I realise that often what I need in order to get satisfactory hairpins is more space between the note heads, and simply moving the ends of the hairpin does not reposition the relevant notes. Have you tried adjusting the minimum-length? %%% SNIPPET BEGINS \version "2.18.2" \language "english" after = #(define-music-function (parser location t e m) (ly:duration? ly:music? ly:music?) #{ \context Bottom << #m { \skip $t <> -\tweak extra-spacing-width #empty- interval $e } >> #}) testing = \relative e'' { \override Hairpin.minimum-length = #5 e8 cs ds d \after 4 \> \after 4 \mf cs2\< ~ cs4 d8(\p cs) } \score { \testing } %%% SNIPPET ENDS Hope that helps! Kieren. Thanks, that's brilliant. With this and Hairpin.shorten-pair I should be able to solve most or all of the problems I often find with hairpins. I have read all the material in the list archive relating to this function. Which function? \after? after = %% create a music function with three arguments and assign it to the variable `after` #(define-music-function (parser location t e m) ;; give the types of the three arguments as predicate procedures (ly:duration? ly:music? ly:music?) ;; have the expression in #{#} evaluated by the LilyPond parser #{ %% Bottom is a kind of alias usually referring to Voice. %% In this case, it’s there to prevent creating new Voices, %% so the simultaneous music <<>> remains in one Voice. \context Bottom << %% first expression in the simultaneous music: the last argument passed to the function #m %% second expression: %% \skip $t creates a skip of the duration given as first argument of the function %% <> is an empty chord with no duration %% the tweak prevents the spacing to be distorted by the inserted item $e %% empty-interval is defined in scm/lily-library.scm as #'(+inf.0 . -inf.0), %% i.e. actually an infinitely small interval. Maybe #'(0 . 0) would work just as well, %% but it might also cause errors or unwanted behaviour. { \skip $t <> -\tweak extra-spacing-width #empty-interval $e } >> #}) HTH, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: accidentalStyle modern
On 12.10.2016 18:49, sail...@mailbox.org wrote: Hi all, the following remark is written in the lilypond docu for accidentalStyle modern: "after temporary accidentals, cancellation marks are printed also in the following measure". Is it possible to change the number of following measures where cancellation marks are written to more than one? I’m afraid there is no easy solution; you’d have to create a custom accidental style, and even by that would be unusually difficult to achieve what you want, IIRC. You should be able to find an example of custom accidental style on the archives to this list. HTH a little bit, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Controlling hairpin length - revisited!
On Wed, 2016-10-12 at 14:10 -0400, Kieren MacMillan wrote: > Hi David, > > > > > But I realise that often what I need in order to get satisfactory > > hairpins is more space between the note heads, and simply moving > > the > > ends of the hairpin does not reposition the relevant notes. > Have you tried adjusting the minimum-length? > > %%% SNIPPET BEGINS > \version "2.18.2" > \language "english" > > after = > #(define-music-function (parser location t e m) > (ly:duration? ly:music? ly:music?) > #{ > \context Bottom << > #m > { \skip $t <> -\tweak extra-spacing-width #empty- > interval $e } > >> > #}) > > testing = \relative e'' { > \override Hairpin.minimum-length = #5 > e8 cs ds d \after 4 \> \after 4 \mf cs2\< ~ cs4 d8(\p cs) > } > > \score { \testing } > %%% SNIPPET ENDS > > Hope that helps! > Kieren. Thanks, that's brilliant. With this and Hairpin.shorten-pair I should be able to solve most or all of the problems I often find with hairpins. I have read all the material in the list archive relating to this function. Even so I don't really understand how it works. I have a reasonable understanding of basic Scheme, but much less of the internal working of Lilypond and how Lilypond and Scheme interract (and yes, I have read the Extending manual more than once). Still, I think I understand how to use the function, which is the main thing. If anyone has the patience to explain the workings of the function I'd be very interested. If not, I shan't blame you! David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user