encapsulating woodwind diagrams

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

encapsulating woodwind diagrams

Jaime Oliver La Rosa
Hi all,

I am using the following code to place diagrams in a score:

c^\markup
     \center-column {
        \override #'(size . .75)
        \override #'(thickness . 0.05){
        \woodwind-diagram
           #'flute-b-extension
           #'((cc . (one1h three))
                                  (lh . (b  gis))
                                  (rh . (d dis ees cis c b)))
     }
   }

however, since I have several of these, I'd like to store them as
separate encapsulated commands that I'd like to call such as

position1 = {\markup
     \center-column {
        \override #'(size . .75)
        \override #'(thickness . 0.05){
        \woodwind-diagram
           #'flute-b-extension
           #'((cc . (one1h three))
                                  (lh . (b  gis))
                                  (rh . (d dis ees cis c b)))
     }
   }

}

And then call it in the score with

c^\position1

but I get all sorts of errors. Not sure how to proceed. Can anyone point
me to some information?

best,

J


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: encapsulating woodwind diagrams

caagr98
Try removing the brackets ({ ... }) around the \markup.

On 06/13/2017 04:46 PM, Jaime Oliver La Rosa wrote:

> Hi all,
>
> I am using the following code to place diagrams in a score:
>
> c^\markup
>      \center-column {
>         \override #'(size . .75)
>         \override #'(thickness . 0.05){
>         \woodwind-diagram
>            #'flute-b-extension
>            #'((cc . (one1h three))
>                                   (lh . (b  gis))
>                                   (rh . (d dis ees cis c b)))
>      }
>    }
>
> however, since I have several of these, I'd like to store them as
> separate encapsulated commands that I'd like to call such as
>
> position1 = {\markup
>      \center-column {
>         \override #'(size . .75)
>         \override #'(thickness . 0.05){
>         \woodwind-diagram
>            #'flute-b-extension
>            #'((cc . (one1h three))
>                                   (lh . (b  gis))
>                                   (rh . (d dis ees cis c b)))
>      }
>    }
>
> }
>
> And then call it in the score with
>
> c^\position1
>
> but I get all sorts of errors. Not sure how to proceed. Can anyone point
> me to some information?
>
> best,
>
> J
>
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/lilypond-user

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: encapsulating woodwind diagrams

Jaime Oliver La Rosa
that works! thanks...
J

On 06/13/2017 09:51 AM, [hidden email] wrote:

> Try removing the brackets ({ ... }) around the \markup.
>
> On 06/13/2017 04:46 PM, Jaime Oliver La Rosa wrote:
>> Hi all,
>>
>> I am using the following code to place diagrams in a score:
>>
>> c^\markup
>>      \center-column {
>>         \override #'(size . .75)
>>         \override #'(thickness . 0.05){
>>         \woodwind-diagram
>>            #'flute-b-extension
>>            #'((cc . (one1h three))
>>                                   (lh . (b  gis))
>>                                   (rh . (d dis ees cis c b)))
>>      }
>>    }
>>
>> however, since I have several of these, I'd like to store them as
>> separate encapsulated commands that I'd like to call such as
>>
>> position1 = {\markup
>>      \center-column {
>>         \override #'(size . .75)
>>         \override #'(thickness . 0.05){
>>         \woodwind-diagram
>>            #'flute-b-extension
>>            #'((cc . (one1h three))
>>                                   (lh . (b  gis))
>>                                   (rh . (d dis ees cis c b)))
>>      }
>>    }
>>
>> }
>>
>> And then call it in the score with
>>
>> c^\position1
>>
>> but I get all sorts of errors. Not sure how to proceed. Can anyone
>> point me to some information?
>>
>> best,
>>
>> J
>>
>>
>> _______________________________________________
>> lilypond-user mailing list
>> [hidden email]
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/lilypond-user


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