lilypond-user
[Top][All Lists]
Advanced

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

Re: Multiple exercises on a single line


From: Jacques Menu Muzhic
Subject: Re: Multiple exercises on a single line
Date: Wed, 7 Jun 2017 10:05:32 +0200

Now that’s great, thanks David!

JM

> Le 7 juin 2017 à 09:15, David Kastrup <address@hidden> a écrit :
> 
> Gianmaria Lari <address@hidden> writes:
> 
>> I would like to write short exercises of one measure consecutively on the
>> same line. Something similar to what I attached. How I can do it?
> 
> You could try something along the following lines:
> 
> exercises =
> #(define-scheme-function (cm seq)
>  (ly:context-mod? ly:music?)
>  (let ((elts (ly:music-property seq 'elements)))
>   #{ \markuplist \wordwrap-lines {
>   #@(map (lambda (m n)
>          #{
>            \markup \score {
>              \new Staff \with {
>                #cm
>                instrumentName = #(format "~d." n)
>                \override InstrumentName.self-alignment-X = #RIGHT
>              }
>              { #m }
>              \layout {
>                    indent = 24\pt
>              } } #})
>     elts (iota (length elts) 1)) } #}))
> 
> \exercises \with { \clef bass
>                  \override TimeSignature.style = #'numbered }
> {
>  { \time 3/4 c,4 e, g, }
>  { \time 4/4 c,4 e, e, c, }
>  { \time 4/4 c,8-3 d,-2 e,-3-- f,-4 g,-2 f,-4 e,-3-- d,-2 }
> }
> 
> 
> -- 
> David Kastrup
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

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