[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Woodwind Fingerings
From: |
Bernardo Barros |
Subject: |
Re: Woodwind Fingerings |
Date: |
Mon, 12 Apr 2010 20:04:01 -0300 |
With
c' \woodfing #'(#t #t #t #t #t #t)
it prints the word "woodfing" instead of the drawing.
I got this:
Processing `fingerings6.ly'
Parsing...
fingerings6.ly:126:11: error: unknown escaped string: `\woodfing'
c'
\woodfing #'(#t #t #t #t #t #t)
fingerings6.ly:126:11: error: syntax error, unexpected STRING
c'
\woodfing #'(#t #t #t #t #t #t)
fingerings6.ly:117:0: error: errors found, ignoring music expression
\new Staff {
error: failed files: "fingerings6.ly"
On 12 April 2010 19:59, Bernardo Barros <address@hidden> wrote:
> I followed your instructions, I have now another kind of error, but it
> still doesn't work.
>
> I DID:
>
> #(define-markup-command (woodfing layout props fingers)
> (list?)
> "Woodwind fingerings."
> (interpret-markup layout props
>
> (markup
> #:line (#:override (baseline-skip . 1.5)
> (#:halign 1
> (#:column
> (#:line
> (#:simple
> " "
> #:override
> (font-size . -3)
> (#:natural))
> #:simple
> " "
> #:simple
> " "
> #:line
> (#:override (font-size . -2) "g# "))))
> #:override
> (baseline-skip . 1.5)
> (#:column
> (#:draw-circle
> 0.5
> 0.1
> (first fingers)
> #:draw-circle
> 0.5
> 0.1
> (second fingers)
> #:draw-circle
> 0.5
> 0.1
> (third fingers)
> #:draw-circle
> 0.5
> 0.1
> (forth fingers)
> #:draw-circle
> 0.5
> 0.1
> (fifth fingers)
> #:draw-circle
> 0.5
> 0.1
> (sixth fingers)
> #:override
> (font-size . -2)
> " D#"))))
> ))
>
> AND:
>
>
> c'^\woodfing #'(##t ##t ##t ##t ##t ##t)
>
> AND I GOT:
>
>
> Processing `fingerings6.ly'
> Parsing...
> fingerings6.ly:124:11: error: unknown escaped string: `\woodfing'
> c'^
> \woodfing '(##t ##t ##t ##t ##t ##t)
> fingerings6.ly:124:21: error: syntax error, unexpected '''
> c'^\woodfing
> '(##t ##t ##t ##t ##t ##t)
> fingerings6.ly:124:46: error: syntax error, unexpected ')'
> c'^\woodfing '(##t ##t ##t ##t ##t ##t
> )
> fingerings6.ly:115:0: error: errors found, ignoring music expression
>
> \new Staff {
> fingerings6.ly:0: warning: no \version statement found, please add
>
> \version "2.12.3"
>
> for future compatibility
> error: failed files: "fingerings6.ly"
>
>
> On 12 April 2010 19:27, Neil Puttock <address@hidden> wrote:
>>
>> On 12 April 2010 22:57, Bernardo Barros <address@hidden> wrote:
>> > nor this one. If someone made it works tell me.
>> >
>> > #(define-markup-command (fing layout props finger1 finger2 finger3 finger4
>> > finger5 finger6)
>> > (boolean? boolean? boolean? boolean? boolean? boolean?)
>>
>> You'll have to put the booleans in a list, since you're passing too
>> many arguments: LilyPond will only accept three scheme types in a row
>> for a markup command.
>>
>> #(define-markup-command (fing layout props fingers)
>> (list?)
>>
>> If you pass your markup through \displayMusic, it'll give you the
>> scheme version which you can then use for the markup command:
>>
>> (markup
>> #:line
>> (#:override
>> (baseline-skip . 1.5)
>> (#:halign
>> 1
>> (#:column
>> (#:line
>> (#:simple
>> " "
>> #:override
>> (font-size . -3)
>> (#:natural))
>> #:simple
>> " "
>> #:simple
>> " "
>> #:line
>> (#:override (font-size . -2) "g# "))))
>> #:override
>> (baseline-skip . 1.5)
>> (#:column
>> (#:draw-circle
>> 0.5
>> 0.1
>> #t
>> #:draw-circle
>> 0.5
>> 0.1
>> #t
>> #:draw-circle
>> 0.5
>> 0.1
>> #t
>> #:draw-circle
>> 0.5
>> 0.1
>> #t
>> #:draw-circle
>> 0.5
>> 0.1
>> #t
>> #:draw-circle
>> 0.5
>> 0.1
>> #t
>> #:override
>> (font-size . -2)
>> " D#"))))
>>
>> You just need to replace the `#t' in the draw-circle commands with the
>> relevant entry from the list,
>>
>> (first fingers)
>> ...
>> (sixth fingers)
>>
>> and ensure the #:override pairs are quoted properly,
>>
>> #:override '(font-size . -2)
>>
>> Regards,
>> Neil
>
- Re: Woodwind Fingerings, (continued)
- Re: Woodwind Fingerings, Mark Polesky, 2010/04/12
- Re: Woodwind Fingerings, Mark Polesky, 2010/04/12
- Re: Woodwind Fingerings, Bernardo Barros, 2010/04/12
- Re: Woodwind Fingerings, Bernardo Barros, 2010/04/12
- Re: Woodwind Fingerings, Bernardo Barros, 2010/04/12
- Re: Woodwind Fingerings, Neil Puttock, 2010/04/12
- Re: Woodwind Fingerings, Bernardo Barros, 2010/04/12
- Re: Woodwind Fingerings,
Bernardo Barros <=
- Re: Woodwind Fingerings, Neil Puttock, 2010/04/12
- Re: Woodwind Fingerings, Bernardo Barros, 2010/04/12
- Re: Woodwind Fingerings, Carl Sorensen, 2010/04/12
- Re: Woodwind Fingerings, Bernardo Barros, 2010/04/12
- Re: Woodwind Fingerings, Bernardo Barros, 2010/04/12
- Re: Woodwind Fingerings, Mark Polesky, 2010/04/12
- Re: Woodwind Fingerings, Bernardo Barros, 2010/04/12
Re: Woodwind Fingerings, Mark Polesky, 2010/04/13