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.

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to