lilypond-user
[Top][All Lists]
Advanced

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

Re: Randomness in layout


From: Malte Meyn
Subject: Re: Randomness in layout
Date: Fri, 21 Aug 2015 13:16:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0



Am 21.08.2015 um 12:55 schrieb Malte Meyn:
I think that it should be possible to redefine "(" to tweak every slur
with some randomness.

Here you go:

%%%%%%%%%%%%%%%
\version "2.19.25"

"(" =
#(define-event-function () ()
   #{
     \single \override Slur.eccentricity = #(* 0.5 (random:normal))
   #(make-span-event 'SlurEvent START)
   #})

\relative {
  c'2( d)
  c( d)
  c( d)
  c( d)
  c( d)
  c( d)
  c( d)
  c( d)
  c( d)
  c( d)
  c( d)
  c( d)
  c( d)
  c( d)
  c( d)
  c( d)
}
%%%%%%%%%%%%%%%



reply via email to

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