Re: change the key signature

2013-08-14 Thread Givaldo de Cidra
Hi Thomas Morley

This code fully solved the problem...


Thanks very much.

Givaldo de Cidra




2013/8/14 Thomas Morley 

> 2013/7/28 Givaldo de Cidra 
> >
> >
> > \set Staff.keySignature '= # (((1. 0.), SHARP) ((1. 3.), natural))
> >
> > I want the key signature have a natural sign of caution.
> >
> > Is it possible?
>
>
> Hi,
>
> I'm a bit ashamed not having found a better method.
> It's Fischer-Technik/Tinkertoy at it's worst.
>
> Anyway, here it is:
>
> \version "2.16.2"
>
> #(define NEARNULL 1/10)
> #(define OTHERNEARNULL -1/10)
>
> very-kludgy-method-to-get-parenthesized-accidentals-in-key-signature =
> \override Staff.KeySignature #'before-line-breaking =
>   #(lambda (grob)
>  (let* ((glyph-name-alist (ly:grob-property grob 'glyph-name-alist))
> (lst (list (cons NEARNULL  "accidentals.leftparen")
>(cons OTHERNEARNULL  "accidentals.rightparen"
>
> (ly:grob-set-property! grob 'glyph-name-alist
> (append lst glyph-name-alist
>
> \layout {
>   \context {
> \Staff
> \very-kludgy-method-to-get-parenthesized-accidentals-in-key-signature
>   }
> }
>
> \new Staff {
> \set Staff.keySignature =
>   #`(((1 . 0) . ,SHARP)
>  ((1 . 3) . ,NEARNULL)
>  ((1 . 3) . ,NATURAL)
>  ((1 . 3) . ,OTHERNEARNULL)
>  ((1 . -1) . ,NEARNULL)
>  ((1 . -1) . ,FLAT)
>  ((1 . -1) . ,OTHERNEARNULL)
>  )
>  a'
> }
>
>
> Cheers,
>   Harm
>



-- 
Abraços,

Givaldo de Cidra
"Ser e Pensar Sempre no Objetivo é o Caminho para Alcançar o Sucesso"
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: change the key signature

2013-08-14 Thread Thomas Morley
2013/7/28 Givaldo de Cidra 
>
>
> \set Staff.keySignature '= # (((1. 0.), SHARP) ((1. 3.), natural))
>
> I want the key signature have a natural sign of caution.
>
> Is it possible?


Hi,

I'm a bit ashamed not having found a better method.
It's Fischer-Technik/Tinkertoy at it's worst.

Anyway, here it is:

\version "2.16.2"

#(define NEARNULL 1/10)
#(define OTHERNEARNULL -1/10)

very-kludgy-method-to-get-parenthesized-accidentals-in-key-signature =
\override Staff.KeySignature #'before-line-breaking =
  #(lambda (grob)
 (let* ((glyph-name-alist (ly:grob-property grob 'glyph-name-alist))
(lst (list (cons NEARNULL  "accidentals.leftparen")
   (cons OTHERNEARNULL  "accidentals.rightparen"

(ly:grob-set-property! grob 'glyph-name-alist
(append lst glyph-name-alist

\layout {
  \context {
\Staff
\very-kludgy-method-to-get-parenthesized-accidentals-in-key-signature
  }
}

\new Staff {
\set Staff.keySignature =
  #`(((1 . 0) . ,SHARP)
 ((1 . 3) . ,NEARNULL)
 ((1 . 3) . ,NATURAL)
 ((1 . 3) . ,OTHERNEARNULL)
 ((1 . -1) . ,NEARNULL)
 ((1 . -1) . ,FLAT)
 ((1 . -1) . ,OTHERNEARNULL)
 )
 a'
}


Cheers,
  Harm
<>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: change the key signature

2013-07-27 Thread Givaldo de Cidra
2013/7/27 David Rogers 

> Givaldo de Cidra  writes:
>
> > Could you help me with a code in lilypond?
> >
> > I have a musical example it was necessary to change the key signature.
> > I made the change with the code below:
> >
> > \ set Staff.keySignature '= # (((1. 0.), SHARP) ((1. 3.), natural))
> >
> > Placing a hash in C and makes the natural inf F
> >
> > Solved for a moment, but now I think it would be better that instead
> > of NATURAL was one natural sign of caution ...
> >
> > I would take into the key signature a C sharp and natural sign in
> > brackets.
> > Is this possible?
>
>
> I just want to make sure I understand your question: Are you only
> looking for a way to get brackets around the natural, in the key
> signature you already have?
>

Yes, just it.

\set Staff.keySignature '= # (((1. 0.), SHARP) ((1. 3.), natural))

I want the key signature have a natural sign of caution.

Is it possible?

Thanks

-- 
Givaldo de Cidra
"Ser e Pensar Sempre no Objetivo é o Caminho para Alcançar o Sucesso"
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: change the key signature

2013-07-27 Thread David Rogers
Givaldo de Cidra  writes:

> Could you help me with a code in lilypond?
>
> I have a musical example it was necessary to change the key signature.
> I made the change with the code below:
>
> \ set Staff.keySignature '= # (((1. 0.), SHARP) ((1. 3.), natural))
>
> Placing a hash in C and makes the natural inf F
>
> Solved for a moment, but now I think it would be better that instead
> of NATURAL was one natural sign of caution ...
>
> I would take into the key signature a C sharp and natural sign in
> brackets.
> Is this possible?


I just want to make sure I understand your question: Are you only
looking for a way to get brackets around the natural, in the key
signature you already have?


-- 
David R

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


change the key signature

2013-07-25 Thread Givaldo de Cidra
Could you help me with a code in lilypond?

I have a musical example it was necessary to change the key signature.
I made the change with the code below:

\ set Staff.keySignature '= # (((1. 0.), SHARP) ((1. 3.), natural))

Placing a hash in C and makes the natural inf F

Solved for a moment, but now I think it would be better that instead of
NATURAL was one natural sign of caution ...


I would take into the key signature a C sharp and natural sign in brackets.
Is this possible?



-- 
Thanks,

Givaldo de Cidra
"Ser e Pensar Sempre no Objetivo é o Caminho para Alcançar o Sucesso"
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user