Re: Creating a 11-line system

2017-09-22 Thread Nathan Ho

On 2017-09-22 00:55, Ståle Ødegården wrote:

Thank you, this is excactly what I was looking for!

I have another challenge: making the key signature also mimic a
standard PianoStaff setup.
I have a partial solution with «\override KeySignature.flat-positions
= #'((-10 . 10))» and similar, but I don’t want the «extra»
accidentals in the middle.

How do I do this?


hi Ståle,

you can intercept the stencil and tell it to print the default key 
signature twice with different translations:


{
  \override Staff.StaffSymbol.line-count = #11

  \override Staff.KeySignature.stencil =
#(lambda (grob)
   (let ((stencil (ly:key-signature-interface::print grob)))
 (ly:stencil-add
   (ly:stencil-translate-axis stencil 3.5 Y)
   (ly:stencil-translate-axis stencil -3.5 Y

  \override Staff.Clef.stencil = #ly:text-interface::print
  \override Staff.Clef.text =
\markup
  \combine
\raise #2 \musicglyph #"clefs.G"
\lower #2 \musicglyph #"clefs.F"
  \clef alto
  \key es \minor
  c'1
}


nathan



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


Re: Creating a 11-line system

2017-09-22 Thread Ståle Ødegården
Thank you, this is excactly what I was looking for!

I have another challenge: making the key signature also mimic a standard 
PianoStaff setup.
I have a partial solution with «\override KeySignature.flat-positions = #'((-10 
. 10))» and similar, but I don’t want the «extra» accidentals in the middle.

How do I do this?


Ståle



> 22. sep. 2017 kl. 02.44 skrev Nathan Ho :
> 
> On 2017-09-21 14:05, Ståle Ødegården wrote:
>> Hi!
>> I wonder how I can create a 11-line system with both treble and bass
>> clefs present.
>> I have two ideas, but I can’t make any of them work:
>> - Create a PianoStaff or ChoirStaff and force the spacing between them
>> to be _excactly_ one line apart - then add the extra line
>> - Create lots of extra lines in a single staff and set up the two
>> clefs to mimic a PianoStaff
>> What could be the best solution to this problem?
> 
> hi Ståle,
> 
> personally i'd go with the second idea. this part of the notation manual 
> concerns staff modification: 
> http://lilypond.org/doc/v2.18/Documentation/notation/modifying-single-staves
> 
> the main tricky part is modifying the Clef stencil, which can be done using a 
> markup:
> 
> {
>  \override Staff.StaffSymbol.line-count = #11
>  \override Staff.Clef.stencil = #ly:text-interface::print
>  \override Staff.Clef.text =
>\markup
>  \combine
>\raise #2 \musicglyph #"clefs.G"
>\lower #2 \musicglyph #"clefs.F"
>  \clef alto
>  c'1
> }
> 
> 
> 
> nathan
> 




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


Re: Creating a 11-line system

2017-09-21 Thread Nathan Ho

On 2017-09-21 14:05, Ståle Ødegården wrote:

Hi!

I wonder how I can create a 11-line system with both treble and bass
clefs present.

I have two ideas, but I can’t make any of them work:
- Create a PianoStaff or ChoirStaff and force the spacing between them
to be _excactly_ one line apart - then add the extra line
- Create lots of extra lines in a single staff and set up the two
clefs to mimic a PianoStaff

What could be the best solution to this problem?


hi Ståle,

personally i'd go with the second idea. this part of the notation manual 
concerns staff modification: 
http://lilypond.org/doc/v2.18/Documentation/notation/modifying-single-staves


the main tricky part is modifying the Clef stencil, which can be done 
using a markup:


{
  \override Staff.StaffSymbol.line-count = #11
  \override Staff.Clef.stencil = #ly:text-interface::print
  \override Staff.Clef.text =
\markup
  \combine
\raise #2 \musicglyph #"clefs.G"
\lower #2 \musicglyph #"clefs.F"
  \clef alto
  c'1
}



nathan

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


Re: Creating a 11-line system

2017-09-21 Thread Ben
On 9/21/2017 5:05 PM, Ståle Ødegården wrote:
> Hi!
>
> I wonder how I can create a 11-line system with both treble and bass clefs 
> present.
>
> I have two ideas, but I can’t make any of them work:
> - Create a PianoStaff or ChoirStaff and force the spacing between them to be 
> _excactly_ one line apart - then add the extra line
> - Create lots of extra lines in a single staff and set up the two clefs to 
> mimic a PianoStaff
>
> What could be the best solution to this problem?
>
>
>
> Regards,
> Ståle Ødegården
>
>
Hello,

What is your goal with this, is it a worksheet-type document? A custom
instrument that is similar to a piano grand staff?

I would assume you could do something like "\override
Staff.StaffSymbol.line-count = #11" and then just add the clefs in the
exact position you need them to be in...if I understand you correctly.

(see attached)

Is that on the right track for what you want?


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


Creating a 11-line system

2017-09-21 Thread Ståle Ødegården
Hi!

I wonder how I can create a 11-line system with both treble and bass clefs 
present.

I have two ideas, but I can’t make any of them work:
- Create a PianoStaff or ChoirStaff and force the spacing between them to be 
_excactly_ one line apart - then add the extra line
- Create lots of extra lines in a single staff and set up the two clefs to 
mimic a PianoStaff

What could be the best solution to this problem?



Regards,
Ståle Ødegården


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