Re: How to combine accidental glyphs for new note names?

2013-10-29 Thread pls

On 29.10.2013, at 07:52, ArnoldTheresius  wrote:

> Hello,
> I see two options:
> 
> 1. Build your own font which includes the additional glyphs (and all the
> other accidental glyphs, too).
> Then make LILYPOND use this new font for all accidentals.
> 
> 2. Replace the stencil function of the Accidentals by your own scheme
> procedure.
> This will return your "combined stencil" for your additions, but will call
> the original stencil function for all the other standard glyphs. I expect,
> you will have to "wrap" some other callback functions of this GROB in the
> same way.
> 
> You may find some more information how to solve it if your search for:
> sagittal (uses microtonal accidentals from an extra font)
> lilyJAZZ (also uses it's own notation font, as far as I've noticed)
> bold tenuto in the LSR (wraps the stencil function for articulations to
> return stencils build of simple geometry for tenuto and portato)
> 
> I hope, this information will help you to proceed,
> ArnoldTheresius

Hi Arnold,

thanks for your hints!

MeanwhileI found a third solution.  It's somewhat dirty but it does the 
(visual) job without me having to define new note names.  So in case someone 
runs into the same problem: 

\version "2.17.29"
sharpdoublesharp = {
  \once \override Accidental.stencil = #ly:text-interface::print
  \once \override Accidental.text = \markup {
\concat {
\musicglyph #"accidentals.sharp"
\musicglyph #"accidentals.doublesharp"
}
  }
  \once \override Staff.AccidentalPlacement #'right-padding = #1.25
}
{
\sharpdoublesharp
cisis'
}

cheers
patrick


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


Re: How to combine accidental glyphs for new note names?

2013-10-28 Thread ArnoldTheresius
pls-2 wrote
> Hey all,
> 
> I'd like to be able to call some rare accidentals by their own note names.
> ...
> Thanks for your help!
> patrick
> 
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hello,
I see two options:

1. Build your own font which includes the additional glyphs (and all the
other accidental glyphs, too).
Then make LILYPOND use this new font for all accidentals.

2. Replace the stencil function of the Accidentals by your own scheme
procedure.
This will return your "combined stencil" for your additions, but will call
the original stencil function for all the other standard glyphs. I expect,
you will have to "wrap" some other callback functions of this GROB in the
same way.

You may find some more information how to solve it if your search for:
sagittal (uses microtonal accidentals from an extra font)
lilyJAZZ (also uses it's own notation font, as far as I've noticed)
bold tenuto in the LSR (wraps the stencil function for articulations to
return stencils build of simple geometry for tenuto and portato)

I hope, this information will help you to proceed,
ArnoldTheresius



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-to-combine-accidental-glyphs-for-new-note-names-tp153021p153084.html
Sent from the User mailing list archive at Nabble.com.

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


How to combine accidental glyphs for new note names?

2013-10-27 Thread pls
Hey all,

I'd like to be able to call some rare accidentals by their own note names. For 
example "ceseses" should result in a triple flatted note c.  I found a very 
useful snippet: http://lsr.dsi.unimi.it/LSR/Snippet?id=784.  I just added three 
lines to test the new note name and it basically works (here I kept the old 
variable names.):

#(define-public TRIPLE-FLAT -15/10)

arrowedPitchNames = #'(
(ceseses . ,(ly:make-pitch -1 0 TRIPLE-FLAT))
; […]
)

arrowGlyphs = #'(
; […]
(,TRIPLE-FLAT . "accidentals.flatflat")
)

{
  ceseses'
}

Not surprisingly the result is a double flat sign.  LilyPond does not have a 
glyph for a triple flat (probably because it's so rare), so I tried to combine 
accidentals in a couple of ways but none of them were sucessful, e.g.:
(,TRIPLE-FLAT . ("accidentals.flat" "accidentals.flatflat"))

So is it possible at all to associate several values to one key in scheme?  It 
probably is.  I guess I simply defined a list in a list which leads to an 
error.  But what would be the right way to define a combination of several 
accidental glyphs for a new note name?

Thanks for your help!
patrick


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