lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lilypond-user Digest, Vol 110, Issue 8


From: Stefan Thomas
Subject: Re: lilypond-user Digest, Vol 110, Issue 8
Date: Wed, 4 Jan 2012 18:50:46 +0100

Dear David,
thanks for Your answer, Your code works fine in 2.14.2.
Sorry for the problems with html, I'm just using the
goggle-mail-client. maybee it will work better, when I write without
formatting.

2012/1/4 <address@hidden>
>
> Send lilypond-user mailing list submissions to
>       address@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.gnu.org/mailman/listinfo/lilypond-user
> or, via email, send a message with subject or body 'help' to
>       address@hidden
>
> You can reach the person managing the list at
>       address@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of lilypond-user digest..."
>
>
> Today's Topics:
>
>   1. Re:\acciaccatura before barline? (David Kastrup)
>   2. multimeasure rests (Stefan Thomas)
>   3. Re:multimeasure rests (David Kastrup)
>   4. Re:multimeasure rests (David Kastrup)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 04 Jan 2012 09:43:11 +0100
> From: David Kastrup <address@hidden>
> To: address@hidden
> Subject: Re: \acciaccatura before barline?
> Message-ID: <address@hidden>
> Content-Type: text/plain
>
> Father Gordon Gilbert <address@hidden> writes:
>
> > Thanks guys.  That did the trick.
> >
> > Rather than set to ##t and ##f all the time, I did
> >
> > dsl = \set doubleSlurs = ##t
> > dso = \set doubleSlurs = ##f
> >
> > and then used \dsl and \dso as needed.
> >
> > Lily is truly amazing!
>
> \once\dsl should also work with a reasonably current 2.15.
>
> --
> David Kastrup
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 4 Jan 2012 10:05:47 +0100
> From: Stefan Thomas <address@hidden>
> To: lilypond-user <address@hidden>
> Subject: multimeasure rests
> Message-ID:
>        <address@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear community,
> because I'm awfully bad in mathematics I wrote a function for calculating
> the correct length of multimeasure rests.
> Although it doesn't cause a crash (which is a huge sucess for me as a
> "programmer"), it doesn't work as expected. Instead of showing one goupt of
> multimeasure rests, it shows every single multimeasure rest.
> Does someone have an idea to avoid the problem?
> Here is my snippet:
> %%%%%%%%%%%%%%%%%
> \version "2.14.2"
> xR = #(define-music-function (parser location  ANFANG  LAST x ) (number?
> number? ly:music?   )
>    #{ %
>    \repeat unfold $(+ 1(- LAST ANFANG))  $x
> #})
> \layout { \context { \Score skipBars = ##t } }
> \new Staff {
>   R1*5 % this works as expected
>   \xR #6 #11 R1 % this, unfortunately, not, it shows  6 single barrests
>  c'1
> }
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.gnu.org/archive/html/lilypond-user/attachments/20120104/b757a236/attachment.html>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 04 Jan 2012 10:12:09 +0100
> From: David Kastrup <address@hidden>
> To: address@hidden
> Subject: Re: multimeasure rests
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=iso-8859-1
>
> Stefan Thomas <address@hidden> writes:
>
> > Dear community,
> > because I'm awfully bad in mathematics I wrote a function for
> > calculating the correct length of multimeasure rests.
> > Although it doesn't cause a crash (which is a huge sucess for me as a
> > "programmer"), it doesn't work as expected. Instead of showing one
> > goupt of multimeasure rests, it shows every single multimeasure rest.
> > Does someone have an idea to avoid the problem?
>
> *x is not a shorthand for \repeat unfold but a duration modifier.
>
> > Here is my snippet:
> > %%%%%%%%%%%%%%%%%
> > \version "2.14.2"
> > xR = #(define-music-function (parser location? ANFANG? LAST x )
> > (number? number? ly:music??? )
> > ??? #{ %
> > ??? \repeat unfold $(+ 1(- LAST ANFANG))? $x
> > #})
> > \layout { \context { \Score skipBars = ##t } }
> > \new Staff {
> > ?? R1*5 % this works as expected
> > ?? \xR #6 #11 R1 % this, unfortunately, not, it shows? 6 single
> > barrests
> > ? c'1
> > }
>
> If you can't keep your newsreader from completely mangling examples (it
> contains unbreakable spaces as well as line breaks in comments), you
> should likely try attaching the examples as a file instead.
>
> --
> David Kastrup
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 04 Jan 2012 10:23:22 +0100
> From: David Kastrup <address@hidden>
> To: address@hidden
> Subject: Re: multimeasure rests
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=iso-8859-1
>
> David Kastrup <address@hidden> writes:
>
> > Stefan Thomas <address@hidden> writes:
> >
> >> Dear community,
> >> because I'm awfully bad in mathematics I wrote a function for
> >> calculating the correct length of multimeasure rests.
> >> Although it doesn't cause a crash (which is a huge sucess for me as a
> >> "programmer"), it doesn't work as expected. Instead of showing one
> >> goupt of multimeasure rests, it shows every single multimeasure rest.
> >> Does someone have an idea to avoid the problem?
> >
> > *x is not a shorthand for \repeat unfold but a duration modifier.
> >
> >> Here is my snippet:
> >> %%%%%%%%%%%%%%%%%
> >> \version "2.14.2"
> >> xR = #(define-music-function (parser location? ANFANG? LAST x )
> >> (number? number? ly:music??? )
> >> ??? #{ %
> >> ??? \repeat unfold $(+ 1(- LAST ANFANG))? $x
> >> #})
> >> \layout { \context { \Score skipBars = ##t } }
> >> \new Staff {
> >> ?? R1*5 % this works as expected
> >> ?? \xR #6 #11 R1 % this, unfortunately, not, it shows? 6 single
> >> barrests
> >> ? c'1
> >> }
> >
> > If you can't keep your newsreader from completely mangling examples (it
> > contains unbreakable spaces as well as line breaks in comments), you
> > should likely try attaching the examples as a file instead.
>
> Actually, this was because you sent the mail as a mixed HTML/plain text
> mail.  You'll make the average reader of mailing list articles (and of
> mail in general) quite happier if you stop your mail client from
> wastefully creating duplicate HTML content that is not even properly
> usable (in this case).  Switching to the plain text copy, I got the
> example out fine.
>
> Try the following:
> %%%%%%%%%%%%%%%%%
> \version "2.14.2"
> xR = #(define-music-function (parser location  ANFANG  LAST x ) (number?
> number? ly:music?   )
>    #{ \scaleDurations #$(cons (+ 1(- LAST ANFANG)) 1)  $x #})
>
> \layout { \context { \Score skipBars = ##t } }
> \new Staff {
>   R1*5 % this works as expected
>   \xR #6 #11 R1 % this, unfortunately, not, it shows  6 single barrests
>  c'1
> }
>
> I can't vouch for it being correct, not having 2.14 along anymore (the
> syntax for 2.15.22 is slightly different and one could do this much
> easier anyway).
>
> --
> David Kastrup
>
>
>
>
> ------------------------------
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> End of lilypond-user Digest, Vol 110, Issue 8
> *********************************************



reply via email to

[Prev in Thread] Current Thread [Next in Thread]