lilypond-user
[Top][All Lists]
Advanced

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

Re: Blank bars for scribbling in


From: Schneidy
Subject: Re: Blank bars for scribbling in
Date: Sun, 24 Jan 2016 04:53:11 -0700 (MST)

Richard Shann-2 wrote
> [...]
> Thanks - that works well. I've found this too:
> 
> \newSpacingSection
> \override Score.SpacingSpanner.spacing-increment = #4
> [...]

Yep! Much smarter!!

blankBarAlter =
#(define-music-function (span-lgth notes) (number? ly:music?)
  #{
    \newSpacingSection
    \temporary\override Score.SpacingSpanner.spacing-increment = #span-lgth 
    \hideNotes
    #notes
    \unHideNotes
    \newSpacingSection
    \revert Score.SpacingSpanner.spacing-increment
  #})

\relative {
  %% example 1
  c'4 d e f
  %% Notes are kwnown but won't be shown
  \blankBarAlter #12.8 { g a b c }
  c b a g
 
  %% example 2
  \break
  c d e f
  %% Unknown notes 
  \blankBarAlter #1.5 { s1 }
  c4 b a g
} 

~Pierre




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Blank-bars-for-scribbling-in-tp186334p186340.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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