Re: fretboard diagram : removing the fret number on the side

2010-12-20 Thread David Kastrup
Carl Sorensen  writes:

> On 12/20/10 8:57 PM, "Marc Mouries"  wrote:
>
>>
>>  The fret diagram prints a fret number indication on the right that is
>> confusing from a Violinist perspective.
>>  Is there any option for the fret diagram not to print it?
>
> Unfortunately, right now there is no way to change it.
>
>>  
>>  For instance, in the 2nd D chord i'd like to get rid of the "iv" or
>> print "i"
>> because on the Violin it is more helpful to think in terms of position than
>> fret as there is none.
>
> So do you want fret indications in your violin "fret" diagrams?
>
> And how is the position calculated?

You can't really calculate it all too well.  In "first position", the
pinky is in the current scale a fifth above the empty string.  In "half
position", it is a diminuished fifth, while the index finger is a half
step above the empty string (if the index finger is a half step above
the empty string, but the pinky is still a full fifth, it is not "half
position" since you can still sound the next empty string).

In "third" position, the index finger is a fourth above the empty
string.  Basically, the position more or less concerns the relation
between the current scale and the hand position and fingering and is a
somewhat fuzzy concept when the number of accidentals rises.

> It seems possible that we could put an option in to label the position
> instead of the fret.  But at this point I don't know how to calculate
> the position.

The position is not independent of the fingering.  Indicating a position
would only make sense in fret diagrams if you also spell out the
fingering.  I don't know whether there is any established scheme for
that with violins.

-- 
David Kastrup


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


Re: fretboard diagram : removing the fret number on the side

2010-12-20 Thread Carl Sorensen



On 12/20/10 8:57 PM, "Marc Mouries"  wrote:

>
>  The fret diagram prints a fret number indication on the right that is
> confusing from a Violinist perspective.
>  Is there any option for the fret diagram not to print it?

Unfortunately, right now there is no way to change it.

>  
>  For instance, in the 2nd D chord i'd like to get rid of the "iv" or print "i"
> because on the Violin it is more helpful to think in terms of position than
> fret as there is none.

So do you want fret indications in your violin "fret" diagrams?

And how is the position calculated?

It seems possible that we could put an option in to label the position
instead of the fret.  But at this point I don't know how to calculate the
position.

Thanks,

Carl


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


Re: fretboard diagram : alignment issue

2010-12-20 Thread Carl Sorensen



On 12/20/10 8:47 PM, "Marc Mouries"  wrote:

> Hi Lilyponders,
> 
> I am trying to generate a chord chart for Violin and i have an alignment
> problem.
> 
> I want to include the different possibilities of playing a chord and
> thus i can't use the command storePredefinedDiagram and thus can't use a
> FretBoard like this
> 
> \score {
><<
>  \new ChordNames { ...}
>  \new Staff { ... }
>  \new FretBoards { }
>>> 
> }

Actually, you *can* use storePredefinedDiagram.

The syntax is slightly different from 2.12 and 2.13

But since your chords have different names, you'll just do something like
(2.12 syntax):

\storePredefinedDiagram  
 #violin-tuning
#"x;o;o;2-1;"
\storePredefinedDiagram  
 #violin-tuning
#"7-4;4-2;5-3;x;"
\storePredefinedDiagram  
 #violin-tuning
 #"x;o;3-2;2-1;"

<<
  \new ChordNames { \chordmode {d1 d1:7}}
  \new Staff { 2 2 1 }
  \new FretBoards {  2 2 1 }
>>   


You don't need to use a chordmode definition for the key to the fretboard;
you just need to have some kind of music that will be the same.


HTH,

Carl

P.S. In 2.14.43 we have alternate fretboard tables, so you can change the
table and have different fretboards for the same chord.  But I don't think
that would help you here, because you have chords in the staff that wouldn't
work with the ChordNames


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


fretboard diagram : removing the fret number on the side

2010-12-20 Thread Marc Mouries


  
  

The fret diagram prints a fret number indication on the right that
is confusing from a Violinist perspective.
Is there any option for the fret diagram not to print it?

For instance, in the 2nd D chord i'd like to get rid of the "iv" or
print "i" because on the Violin it is more helpful to think in terms
of position than fret as there is none.




I checked
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Instrument-Specific-Markup#Instrument-Specific-Markup
but did not find any option to remove the fret number.
  

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


fretboard diagram : alignment issue

2010-12-20 Thread Marc Mouries

Hi Lilyponders,

I am trying to generate a chord chart for Violin and i have an alignment 
problem.


I want to include the different possibilities of playing a chord and 
thus i can't use the command storePredefinedDiagram and thus can't use a 
FretBoard like this


\score {
  <<
\new ChordNames { ...}
\new Staff { ... }
\new FretBoards { }
  >>
}

But i have to use

<<
  \new ChordNames { \chordmode { d1 } }
  \new Staff {
%% D
2 ^\markup \fret-diagram #"w:4;4-x;3-o;2-o;1-2-1;"
2 ^\markup \fret-diagram #"w:4;4-7-4;3-4-2;2-5-3;1-x;"
%% D7
1 ^\markup \fret-diagram #"w:4;4-x;3-o;2-3-2;1-2-1;"
}
>>

Which gives me:

Is there any way to align the fret board using markup? or any other work-around 
to be able to use a fretboard and use several definitions for one chord?

thanks,

Marc

Based on this snippet: http://lsr.dsi.unimi.it/LSR/Item?id=578


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


Re: ChordName Font [was: lilypond cameo]

2010-12-20 Thread Nick Payne

On 21/12/10 14:31, Nick Payne wrote:

On 21/12/10 13:07, Marc M wrote:


Graham Percival-3 wrote:

On Tue, Dec 14, 2010 at 7:27 PM, Marc Hohl  wrote:

and "does it make the download size much much bigger".

How much is "much much"? Gonville is 3.5 MB, the Jazz font is 10 KB.
Downloading lilypond is 20 MB, so personally, I don't think this would
break the "much much bigger" clause.

No, I don't think that's "much much".

Cheers,
- Graham


Excellent! How do we move forward and include this font?
btw are there any other nice fonts that we could include as well?



Two other music fonts that I've installed and used in Lilypond from
time to time are Sonora and Tempera. They're part of a collection of
six free fonts by Christian Texier
(http://christian.texier.pagespro-orange.fr/mididesi/free/index.htm).

Nick


ps. There's an extensive list of music fonts at 
http://cg.scs.carleton.ca/~luc/music.html.


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


Re: ChordName Font [was: lilypond cameo]

2010-12-20 Thread Nick Payne

On 21/12/10 13:07, Marc M wrote:


Graham Percival-3 wrote:

On Tue, Dec 14, 2010 at 7:27 PM, Marc Hohl  wrote:

and "does it make the download size much much bigger".

How much is "much much"? Gonville is 3.5 MB, the Jazz font is 10 KB.
Downloading lilypond is 20 MB, so personally, I don't think this would
break the "much much bigger" clause.

No, I don't think that's "much much".

Cheers,
- Graham


Excellent! How do we move forward and include this font?
btw are there any other nice fonts that we could include as well?
Two other music fonts that I've installed and used in Lilypond from time 
to time are Sonora and Tempera. They're part of a collection of six free 
fonts by Christian Texier 
(http://christian.texier.pagespro-orange.fr/mididesi/free/index.htm).


Nick

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


Re: ChordName Font [was: lilypond cameo]

2010-12-20 Thread Graham Percival
On Mon, Dec 20, 2010 at 06:07:28PM -0800, Marc M wrote:
> 
> Graham Percival-3 wrote:
> > 
> > On Tue, Dec 14, 2010 at 7:27 PM, Marc Hohl  wrote:
> >>> and "does it make the download size much much bigger".
> >>
> >> How much is "much much"? Gonville is 3.5 MB, the Jazz font is 10 KB.
> >> Downloading lilypond is 20 MB, so personally, I don't think this would
> >> break the "much much bigger" clause.
> > 
> > No, I don't think that's "much much".
> 
> Excellent! How do we move forward and include this font?
> btw are there any other nice fonts that we could include as well?

Somebody produces a patch, for lilypond git and/or GUB as
necessary, and we will examine it.  There are no guarantees that
we will accept any patch.

Off the top of my head, I'd estimate at least 10 hours of work for
anybody unfamiliar with both lilypond and GUB to be able to
produce any sort of a patch.

Cheers,
- Graham

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


Re: ChordName Font [was: lilypond cameo]

2010-12-20 Thread Marc M


Graham Percival-3 wrote:
> 
> On Tue, Dec 14, 2010 at 7:27 PM, Marc Hohl  wrote:
>>> and "does it make the download size much much bigger".
>>
>> How much is "much much"? Gonville is 3.5 MB, the Jazz font is 10 KB.
>> Downloading lilypond is 20 MB, so personally, I don't think this would
>> break the "much much bigger" clause.
> 
> No, I don't think that's "much much".
> 
> Cheers,
> - Graham
> 

Excellent! How do we move forward and include this font?
btw are there any other nice fonts that we could include as well?
-- 
View this message in context: 
http://old.nabble.com/lilypond-cameo-tp30416346p30503074.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: ways of using Lilypond?

2010-12-20 Thread Trevor Daniels

I use ConTEXT (http://www.contexteditor.org/), a freeware
text editor for Windows, for all my text editing, including
LilyPond and LilyPond texinfo files.  It has a wide range of 
highlighter files, including one for LilyPond.  Only a highlighter 
for the 2.10 version of LilyPond is available, but this is easily 
edited and extended.  I've set up function keys to save and 
compile the current file, to show the pdf and to play the midi 
file.  The console output is conveniently captured and displayed
in a separate pane.  The main omission is folding. UTF8 support 
is minimal, but adequate for an English speaker like me.


Trevor




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


Re: ways of using Lilypond?

2010-12-20 Thread -Eluze

i use PSPad or Notepad++ under Windows; i have developed my own user
interface (with hiliting) which shows the compilation result (if successful)
or otherwise the log (when errors or warnings occur).

i would be happy if there were a performant editor that supports Lilypond
hiliting, folding, executing the different tasks which Lilypond can perform
(like compiling, converting, read midi, xml or other files). and of course i
would appreciate the Lilypond parser do all the checking!

i have also tried out tools on the web (weblily, noteflight and more) but
they all seemed somehow limited.


-- 
View this message in context: 
http://old.nabble.com/ways-of-using-Lilypond--tp30490140p30501742.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: ways of using Lilypond?

2010-12-20 Thread Ludo Beckers
Hi Wilbert

The 2nd address in your signature is the forum where I reacted on 2 of your
posts, but didn't see a reaction.
I'm "catch22" in that one.

I might be interested in also checking out Frescobaldi, but wonder if it
makes much sense on a non-KDE-system (too many KDE-dependencies)?

Flemish greetings ;-)
Ludo

From: Wilbert Berendsen <
> Op zondag 19 december 2010 schreef Ludo:
>
> > Frescobaldi was the first one I looked at, but asking questions on their
> > Dutch forum (the developer is Dutch, so it seemed the most logical place)
> > was in vain; no replies at all.
>
> Best place for Frescobaldi help is Frescobaldi or LilyPond mailing list, i
> suppose ;-) see http://frescobaldi.org/links
>
> The Dutch LilyPond form is sometimes quite quiet indeed :)
>
> best regards,
> Wilbert Berendsen
>
> --
> Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/
> Nederlands LilyPond forum: http://www.lilypondforum.nl/
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: ways of using Lilypond?

2010-12-20 Thread Tim Reeves
LilypondTool with jEdit (on Windows)



Tim Reeves

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


Re: key signature problem

2010-12-20 Thread Carl Sorensen



On 12/20/10 8:34 AM, "Ralph Palmer"  wrote:

> 
> 
> On Mon, Dec 20, 2010 at 9:31 AM, Jonathan Kulp  wrote:
>> 
>> 
>> I think I've found it. Try using a backtick ` instead of single quote
>> ' on this line:
>> 
>> \set Staff.keySignature = #'(((1 . 1) . ,FLAT)
>> 
>> When I did this it compiled (and notice in the doc example it has a
>> backtick).
>> 
>> Jon
>> 
> 
> Wonderful! That's it, Jon. I'm grateful for your quick reply. I don't recall
> ever having a problem (i.e., didn't have to use) with the backtick and Scheme
> before.


Any time there is a , just before a variable in a Scheme list, you know that
you will need to use the backtick (or accent grave) at the beginning of the
definition.

HTH,

Carl


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


Re: ways of using Lilypond?

2010-12-20 Thread Marc Mouries

On 12/20/2010 8:54 AM, Ludo Beckers wrote:
On Sun, Dec 19, 2010 at 9:22 PM, Marc Mouries > wrote:


On Dec 18, 2010, at 5:19 PM, Ludo Beckers wrote:

> Just wondering, has there ever been a poll about how many
Lilypond users work with a certain specific tool.
> Is the majority in this group using denemo, frescobaldi,
lilypondtool or other tools?


I am on Mac and built my own editor "LilyEditor" very simple with
syntax highlighting and just one button to invoke lilypond and
update the pdf view.

That's probably beyond my present capabilities, but could you explain 
briefly how you achieved a customization like that?


It's not customization, I followed an Objective-C tutorial and built it 
from scratch.
FYI, I have not released it in the open because I used lex for the 
syntax highlighting and it does not support accents.







On PC, i switch between notepad++ and the ecipse plugin Elysium.

Elysium is also on my list to check out, having touched the surface of 
Eclipse (with the Karel program, probably the simplest in the world ;-))


Elysium is good but i miss the ability to just right click and ask to 
open a specific file that is not already in the workspace.

It's and Eclipse limitation.



Ludo





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


Re: Tweaking Jedit LilyPondTool?

2010-12-20 Thread Bertalan Fodor (LilyPondTool)
Currently LilyPondTool doesn't support custom note names in the wizard and
the piano input.

On Mon, Dec 20, 2010 at 4:32 PM, Adam Good  wrote:

> Hi All,
> I'm just now checking out LilyPondTool and have a couple of newbie
> questions regarding midi input.
>
> It looks like the Score Setup Wizard is the place to set up which
> language you would like the pitches to be notated as (cis vs. cs,
> etc). Ok fine but I would like to use my own pitch names since I'm
> marking up Turkish notation on a regular basis (as c# would be notated
> as "cb").
>
> So, is there any place handy I can get in to add my own pitch naming
> system? And midi input will use that naming system? I've snooped
> around but can't find any plugin config files. Hmmm.
>
> Frescobaldi does a great thing with Rumor Settings/Guile scripts to
> load...there I've been able to create my own names.
>
> As always thanks in advance for any advice.
>
> Adam
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Chords symbols for Function Theory (Riemann)

2010-12-20 Thread Music Teacher
Hi Stefan,

Besten Dank, many thanks. I had also a look at the fret-script in
scheme, i must say this is not for me actually :-(
Also to your script, hut ab, chapeau bas. I wait that you send it to
the official lily-distribution, but if can be of any help, just ask
me.

Francois

2010/12/20, Stefan Thomas :
> Dear Francois,
> there is a way to write the symbols of the Riemann-Maler-Functions with
> lilypond.
> I've started to write a little library with these symbols, but I'm not
> finished yet.
> I 've attached the file.
> There is still something to do. As You can see, the position of the
> "verkuerzte D7" ( I don't know the english word for it) is anything but
> perfect.
> Here is my code:
>
> \version "2.12.3"
> \include"funktionen.ly"
>
> \relative c' {
>   \Sdrei c1 \Tdrei g'
>   \verkuerzter f \T  e
> }
>
> Hello,
>>
>> I would like to know if there is a way (i search quite a while
>> whithout success) to write chords according to Riemann's Function
>> Theory. In principle, math would do the trick, but there are some
>> arguments for a own syntax (have a look at
>> )
>>
>> Thanks in advance
>>
>> Francois
>>
>>
>

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


Re: key signature problem

2010-12-20 Thread Ralph Palmer
On Mon, Dec 20, 2010 at 10:54 AM, James  wrote:

>
> http://lists.gnu.org/archive/html/lilypond-devel/2010-06/msg00161.html
>
> Thanks, James -

I know very little about Scheme, but the explanation part way down the
thread (about arguments preceded by a comma versus not) made sense.

Ralph

-- 
Ralph Palmer
Montague City, MA
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: ways of using Lilypond?

2010-12-20 Thread Stjepan Horvat
Becouse it's java..me to..and it's slow..

On Mon, Dec 20, 2010 at 4:47 PM, Henning Hraban Ramm wrote:

>
> Am 2010-12-18 um 23:19 schrieb Ludo Beckers:
>
>
>  Just wondering, has there ever been a poll about how many Lilypond users
>> work with a certain specific tool.
>> Is the majority in this group using denemo, frescobaldi, lilypondtool or
>> other tools?
>>
>
> I use Smultron on Mac and gedit on Linux (sometimes other editors) and my
> own templates, since I normally "engrave" songs in the same style.
> I tried jEdit+LilyPondTool, but I hate the looks of jEdit.
>
> Greetlings from Lake Constance
> ---
> fiëé visuëlle
> Henning Hraban Ramm
> http://www.fiee.net
> http://angerweit.tikon.ch/lieder/
> https://www.cacert.org (I'm an assurer)
>
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>



-- 
Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje. Izreke
12:18
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: ways of using Lilypond?

2010-12-20 Thread Michael Ellis
Oops forgot to attach one of the files to prior message.  Here it is.
Cheers,
Mike


On Mon, Dec 20, 2010 at 11:01 AM, Michael Ellis
wrote:

> Hi Michael,
> Took me a day longer than I thought to get around to this.  Here are the
> main scripts I'm currently using.  They are heavily tailored toward the ways
> I use LilyPond, namely transcribing songs and choral parts in movable do
> solfege and constructing violin exercises in 12 keys.
>
> The files included are:
>
> *mixlyrics.py *-- defines the MixLyrics class that knows how to parse out
> lines beginning with '@@' as lyrics lines beginning with '@H' as chord
> names.
>
> *songtemplate.py* -- The all-purpose template I use for anything that has
> one voice with (optionally) lyrics and/or chord symbols.  When I want to
> transcribe something, I open an empty .py file in vim and read this template
> in.  There are two variables that take triple-quoted strings containing
> LilyPond notation. One is named 'header' and contains title, composer, etc.
>  The other is named 'songly'. This is where you enter the music, e.g.
>
> songly = r"""
> \tempo "Moderato" 4 = 105
> \time 3/4
> \set midiInstrument = #"violin"
> \clef treble
> \key do \major  %% Needed, don't change
>
> @@ A -- las, my love you do me wrong to
> @H r4 la2.:min  do2. sol2. mi2.:min
> \partial 4
> la4 | do2 re4 |
> mi4.( fi8) mi4 |
> re2 ti4 |
> sol4.( la8) ti4 |
>
> @@ cast me out dis -- cour -- teous -- ly.
> @H la2.:min  fa2.  mi2. mi2
> do2 la4 |
> la4.( si8) la4 |
> ti2 si4  |
> mi2
>
> \bar "||"
> """
>
> There are also two list variables, 'keys' and 'octaves'  than control how
> many which keys and octaves are output.
>
> *english-solfa.ly* -- a version of english.ly with solfege syllables
> added.
>
> *lily *-- the shell script that ultimately gets called to process the
> lilypond file created by song template.py. You may need to alter this to
> match your lilypond installation.
>
> *songtemplate.pdf* -- what you should get from running "python
> songtemplate.py" if everything is installed correctly.
>
>
> Even if these aren't useful as is,  they may give you some ideas for using
> python to automate your own tasks.
>
> Cheers,
> Mike
>
>
> On Sat, Dec 18, 2010 at 10:25 PM, Michael Ellis  > wrote:
>
>> Sure. I'll send them out tomorrow afternoon. Need to clean them up a bit.
>>
>> Cheers,
>> Mike
>>
>> On Dec 18, 2010, at 10:18 PM, Michael Webster  wrote:
>>
>> > @mike - would you be willing to share your Python scripts? I'd love to
>> see them... tia
>> >
>> > ___
>> > lilypond-user mailing list
>> > lilypond-user@gnu.org
>> > http://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>
>


english-solfa.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: key signature problem

2010-12-20 Thread James

hello

On 20/12/2010 15:38, Jonathan Kulp wrote:

I don't recall this either. I thought all such constructs used the
single quote. :shrug: Glad to help,


http://lists.gnu.org/archive/html/lilypond-devel/2010-06/msg00161.html

James


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


Re: ways of using Lilypond?

2010-12-20 Thread Henning Hraban Ramm


Am 2010-12-18 um 23:19 schrieb Ludo Beckers:

Just wondering, has there ever been a poll about how many Lilypond  
users work with a certain specific tool.
Is the majority in this group using denemo, frescobaldi,  
lilypondtool or other tools?


I use Smultron on Mac and gedit on Linux (sometimes other editors) and  
my own templates, since I normally "engrave" songs in the same style.

I tried jEdit+LilyPondTool, but I hate the looks of jEdit.

Greetlings from Lake Constance
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/
https://www.cacert.org (I'm an assurer)



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


Re: Tweaking Jedit LilyPondTool?

2010-12-20 Thread Paul Thompson
It would be easy enough to define a variable which would use your preferred 
naming scheme in place of the official one.

So, usually c# is notated as cis.

Define a variable:
cb={cis}

Then you can use cb in place of cis:

a \cb b \cb

You merely need to use the \ to denote a variable.

As someone else suggested, you put this in a file, and then include it at the 
beginning, and that brings your customization to each project.

 Paul Thompson




From: Adam Good 
To: lilypond-user@gnu.org
Sent: Mon, December 20, 2010 9:32:15 AM
Subject: Tweaking Jedit LilyPondTool?

Hi All,
I'm just now checking out LilyPondTool and have a couple of newbie
questions regarding midi input.

It looks like the Score Setup Wizard is the place to set up which
language you would like the pitches to be notated as (cis vs. cs,
etc). Ok fine but I would like to use my own pitch names since I'm
marking up Turkish notation on a regular basis (as c# would be notated
as "cb").

So, is there any place handy I can get in to add my own pitch naming
system? And midi input will use that naming system? I've snooped
around but can't find any plugin config files. Hmmm.

Frescobaldi does a great thing with Rumor Settings/Guile scripts to
load...there I've been able to create my own names.

As always thanks in advance for any advice.

Adam

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


Re: printing A4 pages on A3 paper

2010-12-20 Thread Tiago Morin
Hi,

Here's the Latex source I use for such situation:

The booklet has to be done manually.

\documentclass[a4paper,landscape]{article}
\paperwidth=420mm
\paperheight=297mm
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight
\usepackage{pdfpages}
\begin{document}
\includepdf[pages={2,1},nup=2x1,fitpaper=false,trim=0 0 0 0,delta=0
0,offset=0 
0,scale=1.0,turn=true,noautoscale=true,column=false,columnstrict=false,openright=false]{cover.pdf}
\includepdf[pages={16,1,2,15,14,3,4,13,12,5,6,11,10,7,8,9},nup=2x1,fitpaper=false,trim=0
0 0 0,delta=0 0,offset=0
0,scale=1.0,turn=true,noautoscale=true,column=false,columnstrict=false,openright=false]{inside.pdf}

\end{document}

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


Re: Tweaking Jedit LilyPondTool?

2010-12-20 Thread Stjepan Horvat
Hi, i was looking in /usr/share/lilypond/2.12.3/ly/ and saw that there are
diferent standards..maybe you can use one file as a example and create your
own and save it as turkish.ly and then include it in lilypond file with
\include trukish.ly


On Mon, Dec 20, 2010 at 4:32 PM, Adam Good  wrote:

> Hi All,
> I'm just now checking out LilyPondTool and have a couple of newbie
> questions regarding midi input.
>
> It looks like the Score Setup Wizard is the place to set up which
> language you would like the pitches to be notated as (cis vs. cs,
> etc). Ok fine but I would like to use my own pitch names since I'm
> marking up Turkish notation on a regular basis (as c# would be notated
> as "cb").
>
> So, is there any place handy I can get in to add my own pitch naming
> system? And midi input will use that naming system? I've snooped
> around but can't find any plugin config files. Hmmm.
>
> Frescobaldi does a great thing with Rumor Settings/Guile scripts to
> load...there I've been able to create my own names.
>
> As always thanks in advance for any advice.
>
> Adam
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>



-- 
Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje. Izreke
12:18
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: key signature problem

2010-12-20 Thread Jonathan Kulp
On Mon, Dec 20, 2010 at 9:34 AM, Ralph Palmer  wrote:
>
>> I think I've found it. Try using a backtick ` instead of single quote
>> ' on this line:
>>
>> \set Staff.keySignature = #'(((1 . 1) . ,FLAT)
>>
>> When I did this it compiled (and notice in the doc example it has a
>> backtick).
>>
>> Jon
>>
>
> Wonderful! That's it, Jon. I'm grateful for your quick reply. I don't recall
> ever having a problem (i.e., didn't have to use) with the backtick and
> Scheme before.
>
>

I don't recall this either. I thought all such constructs used the
single quote. :shrug: Glad to help,

Jon

-- 
Jonathan Kulp
http://www.jonathankulp.com

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


Change layout: space after next-padding

2010-12-20 Thread Stjepan Horvat
Hello, when i insert the option annotate-spacing = ##t under paper my pdf
gets some kind of line where you can see what is happening with layout..I
wanted to compress the layout little so i inserted more options under paper
like:
ragged-last-bottom = ##f
between-system-space = 0
between-system-padding = 0
but then when i look at the output i have a big space between Title and
first system..it says 15.82 space after next-padding..how can i incrise
thet..

i tried to (define page-breaking ly:optimal-breaking) and systems-per-page =
#9 but nothing changed..

Stef..


-- 
Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje. Izreke
12:18
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: key signature problem

2010-12-20 Thread Ralph Palmer
On Mon, Dec 20, 2010 at 9:31 AM, Jonathan Kulp wrote:

>
>
> I think I've found it. Try using a backtick ` instead of single quote
> ' on this line:
>
> \set Staff.keySignature = #'(((1 . 1) . ,FLAT)
>
> When I did this it compiled (and notice in the doc example it has a
> backtick).
>
> Jon
>
>
Wonderful! That's it, Jon. I'm grateful for your quick reply. I don't recall
ever having a problem (i.e., didn't have to use) with the backtick and
Scheme before.

Pondly,

Ralph

-- 
Ralph Palmer
Montague City, MA
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Tweaking Jedit LilyPondTool?

2010-12-20 Thread Adam Good
Hi All,
I'm just now checking out LilyPondTool and have a couple of newbie
questions regarding midi input.

It looks like the Score Setup Wizard is the place to set up which
language you would like the pitches to be notated as (cis vs. cs,
etc). Ok fine but I would like to use my own pitch names since I'm
marking up Turkish notation on a regular basis (as c# would be notated
as "cb").

So, is there any place handy I can get in to add my own pitch naming
system? And midi input will use that naming system? I've snooped
around but can't find any plugin config files. Hmmm.

Frescobaldi does a great thing with Rumor Settings/Guile scripts to
load...there I've been able to create my own names.

As always thanks in advance for any advice.

Adam

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


Re: key signature problem

2010-12-20 Thread Jonathan Kulp
On Mon, Dec 20, 2010 at 8:12 AM, Ralph Palmer  wrote:
> Greetings -
>
> I'm running LilyPond 2.12.3 under Ubuntu.
>
> I'm trying to get a non-standard key signature : b-flat and d-flat. When I
> follow the 2.12.3 docs, I get the following error message.
>
> GNU LilyPond 2.12.3
> Processing `key_sign_test.ly'
> Parsing...
> Interpreting music...
> Preprocessing graphical objects...ERROR: In procedure denominator:
>
> ERROR: Wrong type argument in position 1: (unquote FLAT)
>

I think I've found it. Try using a backtick ` instead of single quote
' on this line:

\set Staff.keySignature = #'(((1 . 1) . ,FLAT)

When I did this it compiled (and notice in the doc example it has a backtick).

Jon


> Here's the minimal example file :
>
>  Begin snippet %
>
> % key signature test file
>
> \version "2.12.3"
>
> test =
> \relative c' {
>   \set Staff.keySignature = #'(((1 . 1) . ,FLAT)
>((0 . 6) . ,FLAT))
>
>   \clef treble
>   \time 4/4
>
>   a4 c b d |
>   e4 g f a |
> }
>
> \score {
>   \test
> }
>
>  End snippet %%
>
> And here is the entry from the 2.12.3 docs :
>
>  Snip 
>  Non-traditional key signatures
> The commonly used \key command sets the keySignature property, in the Staff
> context.
> To create non-standard key signatures, set this property directly. The
> format of this command is a list:
>
> \set Staff.keySignature = #`(((octave . step) . alter) ((octave . step) .
> alter) ...) where, for each
> element in the list, octave specifies the octave (0 being the octave from
> middle C to the B above),
>
> step specifies the note within the octave (0 means C and 6 means B), and
> alter is ,SHARP ,FLAT ,DOUBLE-SHARP etc.
> (Note the leading comma.) The accidentals in the key signature will appear
> in the reverse order to that in which
>
> they are specified.
> Alternatively, for each item in the list, using the more concise format
> (step . alter) specifies that the same
> alteration should hold in all octaves.
> For microtonal scales where a "sharp" is not 100 cents, alter refers to the
> alteration as a proportion of a 200-cent whole tone.
>
> Here is an example of a possible key signature for generating a whole-tone
> scale:
>
> \relative c' {
>   \set Staff.keySignature = #`(((0 . 3) . ,SHARP)
>
>((0 . 5) . ,FLAT)
>((0 . 6) . ,FLAT))
>   c4 d e fis
>   aes4 bes c2
>
> }
>
> % Snip 55
>
> Can someone please show me where I'm going wrong?
>
> Gratefully,
>
> Ralph
>
> --
> Ralph Palmer
> Montague City, MA
> USA
> palmer.r.vio...@gmail.com
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
>



-- 
Jonathan Kulp
http://www.jonathankulp.com

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


Re: key signature problem

2010-12-20 Thread Jonathan Kulp
On Mon, Dec 20, 2010 at 8:12 AM, Ralph Palmer  wrote:
> Greetings -
>
> I'm running LilyPond 2.12.3 under Ubuntu.
>
> I'm trying to get a non-standard key signature : b-flat and d-flat. When I
> follow the 2.12.3 docs, I get the following error message.
>
> GNU LilyPond 2.12.3
> Processing `key_sign_test.ly'
> Parsing...
> Interpreting music...
> Preprocessing graphical objects...ERROR: In procedure denominator:
>
> ERROR: Wrong type argument in position 1: (unquote FLAT)
>

I think I've found it. Try using a backtick ` instead of single quote
' on this line:

\set Staff.keySignature = #'(((1 . 1) . ,FLAT)

When I did this it compiled (and notice in the doc example it has a backtick).

Jon


> Here's the minimal example file :
>
>  Begin snippet %
>
> % key signature test file
>
> \version "2.12.3"
>
> test =
> \relative c' {
>   \set Staff.keySignature = #'(((1 . 1) . ,FLAT)
>((0 . 6) . ,FLAT))
>
>   \clef treble
>   \time 4/4
>
>   a4 c b d |
>   e4 g f a |
> }
>
> \score {
>   \test
> }
>
>  End snippet %%
>
> And here is the entry from the 2.12.3 docs :
>
>  Snip 
>  Non-traditional key signatures
> The commonly used \key command sets the keySignature property, in the Staff
> context.
> To create non-standard key signatures, set this property directly. The
> format of this command is a list:
>
> \set Staff.keySignature = #`(((octave . step) . alter) ((octave . step) .
> alter) ...) where, for each
> element in the list, octave specifies the octave (0 being the octave from
> middle C to the B above),
>
> step specifies the note within the octave (0 means C and 6 means B), and
> alter is ,SHARP ,FLAT ,DOUBLE-SHARP etc.
> (Note the leading comma.) The accidentals in the key signature will appear
> in the reverse order to that in which
>
> they are specified.
> Alternatively, for each item in the list, using the more concise format
> (step . alter) specifies that the same
> alteration should hold in all octaves.
> For microtonal scales where a "sharp" is not 100 cents, alter refers to the
> alteration as a proportion of a 200-cent whole tone.
>
> Here is an example of a possible key signature for generating a whole-tone
> scale:
>
> \relative c' {
>   \set Staff.keySignature = #`(((0 . 3) . ,SHARP)
>
>((0 . 5) . ,FLAT)
>((0 . 6) . ,FLAT))
>   c4 d e fis
>   aes4 bes c2
>
> }
>
> % Snip 55
>
> Can someone please show me where I'm going wrong?
>
> Gratefully,
>
> Ralph
>
> --
> Ralph Palmer
> Montague City, MA
> USA
> palmer.r.vio...@gmail.com
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
>



-- 
Jonathan Kulp
http://www.jonathankulp.com

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


key signature problem

2010-12-20 Thread Ralph Palmer
Greetings -

I'm running LilyPond 2.12.3 under Ubuntu.

I'm trying to get a non-standard key signature : b-flat and d-flat. When I
follow the 2.12.3 docs, I get the following error message.

GNU LilyPond 2.12.3
Processing `key_sign_test.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...ERROR: In procedure denominator:
ERROR: Wrong type argument in position 1: (unquote FLAT)

Here's the minimal example file :

 Begin snippet %

% key signature test file

\version "2.12.3"

test =
\relative c' {
  \set Staff.keySignature = #'(((1 . 1) . ,FLAT)
   ((0 . 6) . ,FLAT))
  \clef treble
  \time 4/4

  a4 c b d |
  e4 g f a |
}

\score {
  \test
}


 End snippet %%

And here is the entry from the 2.12.3 docs :

 Snip 
 Non-traditional key signatures
The commonly used \key command sets the keySignature property, in the
Staff context.
To create non-standard key signatures, set this property directly. The
format of this command is a list:
\set Staff.keySignature = #`(((octave . step) . alter) ((octave .
step) . alter) ...) where, for each
element in the list, octave specifies the octave (0 being the octave
from middle C to the B above),
step specifies the note within the octave (0 means C and 6 means B),
and alter is ,SHARP ,FLAT ,DOUBLE-SHARP etc.
(Note the leading comma.) The accidentals in the key signature will
appear in the reverse order to that in which
they are specified.
Alternatively, for each item in the list, using the more concise
format (step . alter) specifies that the same
alteration should hold in all octaves.
For microtonal scales where a "sharp" is not 100 cents, alter refers
to the alteration as a proportion of a 200-cent whole tone.
Here is an example of a possible key signature for generating a
whole-tone scale:

\relative c' {
  \set Staff.keySignature = #`(((0 . 3) . ,SHARP)
   ((0 . 5) . ,FLAT)
   ((0 . 6) . ,FLAT))
  c4 d e fis
  aes4 bes c2
}

% Snip 55

Can someone please show me where I'm going wrong?

Gratefully,

Ralph

-- 
Ralph Palmer
Montague City, MA
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: ways of using Lilypond?

2010-12-20 Thread Ludo Beckers
On Sun, Dec 19, 2010 at 9:22 PM, Marc Mouries  wrote:

> On Dec 18, 2010, at 5:19 PM, Ludo Beckers wrote:
>
> > Just wondering, has there ever been a poll about how many Lilypond users
> work with a certain specific tool.
> > Is the majority in this group using denemo, frescobaldi, lilypondtool or
> other tools?
>
>
> I am on Mac and built my own editor "LilyEditor" very simple with syntax
> highlighting and just one button to invoke lilypond and update the pdf view.
>
> That's probably beyond my present capabilities, but could you explain
briefly how you achieved a customization like that?

>
>
>
> On PC, i switch between notepad++ and the ecipse plugin Elysium.
>
Elysium is also on my list to check out, having touched the surface of
Eclipse (with the Karel program, probably the simplest in the world ;-))

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


Re: A quick way to change 50 lilypond files

2010-12-20 Thread hsweet

Search/Replace in an editor is fine for one or 2 files. + I never remember
regex syntax so this way it's written down : ) +I just wanted to avoid
having to do this manually for >50 files. This does them all at once.  50 or
500.  

Here is one I just  thought of... (Haven't tested yet) It should make copies
transposed for clarinet.
$line=~s:\\relative c':\\transpose c b \\relative c':;
$line=~s:\\chordmode:\\transpose c b \ \chordmode:;
$line=~s:Violin:Clarinet:;



hsweet wrote:
> 
> I had a bunch of band charts I needed to update.  I wanted to assign each
> chart a number and give them all a midi tempo. Then every now and then I
> learn something new that I want to add.   
> 
>  I dusted off an old Perl script, changed a few lines and I was able to
> automate the process. It reads all the lilypond files in a folder, reads
> and changes the text inside and writes the updated file to a temporary
> folder called "changed".  Open to the changed folder in a terminal, type
> "lilypond *" and lily will recompile everything.  
> 
> The key to the whole thing is the line=~s/xxx /yyy /  lines.  If you have
> ever used regex it will make sense.
> 
> open(OUT, ">changed/$file");  #output is to a folder called "Changed" one
> level deeper in tree
> 
>   foreach my $line(@text){
> 
>   $line=~s:\\date:\\italic{ \"Sheet $cnt | 
> Updated \" \\date } :;
> 
>   $line=~s:\\midi { }:$midistring:;   
> 
> 
>   print OUT $line;
> 
>   }
> 
> This is the whole program.  http://old.nabble.com/file/p30495491/lymod.pl
> lymod.pl 
> 

-- 
View this message in context: 
http://old.nabble.com/A-quick-way-to-change-50-lilypond-files-tp30495491p30498043.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: music engraving resources in the internet

2010-12-20 Thread James

Hello,

On 20/12/2010 01:41, Janek Warchoł wrote:

So, any links (or attachments) will be appreciated.


http://www.google.com/search?tbs=bks%3A1&tbo=1&q=music+engraving

?

James


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


Re: ways of using Lilypond?

2010-12-20 Thread Stjepan Horvat
Vim with Evince aside.

On Mon, Dec 20, 2010 at 10:41 AM, Wilbert Berendsen wrote:

> Op zondag 19 december 2010 schreef Ludo:
>
> > Frescobaldi was the first one I looked at, but asking questions on their
> > Dutch forum (the developer is Dutch, so it seemed the most logical place)
> > was in vain; no replies at all.
>
> Best place for Frescobaldi help is Frescobaldi or LilyPond mailing list, i
> suppose ;-) see http://frescobaldi.org/links
>
> The Dutch LilyPond form is sometimes quite quiet indeed :)
>
> best regards,
> Wilbert Berendsen
>
> --
> Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/
> Nederlands LilyPond forum: http://www.lilypondforum.nl/
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>



-- 
Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje. Izreke
12:18
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: how to write a scheme function to override glissando properties

2010-12-20 Thread Marc Hohl

Am 19.12.2010 21:22, schrieb Patrick Schmidt:

[...]

The values for  minimum-length in different contexts influence each 
other. The highest value wins. This is reasonable but unfortunately 
the glissandi staves and tab staves don't have the same length in 
print even when they were given the same value for minimum-length...
Ok, since the property is called minimum-length, of course the greater 
value wins - the
note heads are spaced wide enough so that the greater amount of 
#'minimum-length

fits between. The shorter glissando line will be expanded appropriately...

Thinking about it, I think that the default bounds are too big for 
tablature.


Have a look at

http://lilypond.org/doc/v2.13/Documentation/internals/glissando

In #'bound-details, the padding is set to 1.5 * staff-space, and because 
the staff-space in tablature is
1.5 times the normal space, the glissando lines are way too far away 
from the fret numbers.

Setting these to 1 will improve the output.

\once \override TabVoice.Glissando #'bound-details  = #'((right 
(attach-dir . 0) (padding . 1)) (left (attach-dir . 0) (padding . 1)))

a''2 \glissando e'

Regards,

Marc


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


Re: how to write a scheme function to override glissando properties

2010-12-20 Thread Marc Hohl

Am 19.12.2010 21:26, schrieb jakob lund:

[...]
I think what happens is that the start note, passed to your function,
is already wrapped up in an object. \glissando is meant for use with a
single note, rather than with a music object.

Sounds reasonable.

You can use scheme to add the `start glissando' property to the object though:

\version "2.13.40"

slide = #(define-music-function (parser location length startnote)
(number? ly:music?)
#{
  \once\override Voice.Glissando #'minimum-length = $length
  \once\override Voice.Glissando #'springs-and-rods =
#ly:spanner::set-spacing-rods
  #(begin
(set! (ly:music-property $startnote 'elements)
  (cons (make-music (quote GlissandoEvent))
(ly:music-property $startnote 'elements)
))
   (ly:export $startnote))
#})

{ \slide #7 a'' e'' }

Thanks for this example!

Regards,

Marc

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


Re: ways of using Lilypond?

2010-12-20 Thread Wilbert Berendsen
Op zondag 19 december 2010 schreef Ludo:

> Frescobaldi was the first one I looked at, but asking questions on their
> Dutch forum (the developer is Dutch, so it seemed the most logical place)
> was in vain; no replies at all.

Best place for Frescobaldi help is Frescobaldi or LilyPond mailing list, i 
suppose ;-) see http://frescobaldi.org/links

The Dutch LilyPond form is sometimes quite quiet indeed :)

best regards,
Wilbert Berendsen

-- 
Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/
Nederlands LilyPond forum: http://www.lilypondforum.nl/

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


Re: printing A4 pages on A3 paper

2010-12-20 Thread Ole Hesprich
Nick Payne wrote:

> On Linux you can use psbook, psnup, and pstops for booklet printing. If 
> you Google those terms you'll find numerous pages showing the commands 
> and parameters needed.

On Linux just install the newest pdfjam-package (2.x). It contains
pdfbook which can do that job with only one application.

Ole

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


Chords symbols for Function Theory (Riemann)

2010-12-20 Thread Stefan Thomas
Dear Francois,
there is a way to write the symbols of the Riemann-Maler-Functions with
lilypond.
I've started to write a little library with these symbols, but I'm not
finished yet.
I 've attached the file.
There is still something to do. As You can see, the position of the
"verkuerzte D7" ( I don't know the english word for it) is anything but
perfect.
Here is my code:

\version "2.12.3"
\include"funktionen.ly"

\relative c' {
  \Sdrei c1 \Tdrei g'
  \verkuerzter f \T  e
}

Hello,
>
> I would like to know if there is a way (i search quite a while
> whithout success) to write chords according to Riemann's Function
> Theory. In principle, math would do the trick, but there are some
> arguments for a own syntax (have a look at
> )
>
> Thanks in advance
>
> Francois
>
>
\version "2.12.0"
\layout{
  \context { \Staff  \override TextScript #'staff-padding = #4.0 }
 \context {
   \type "Engraver_group"
   \name "Funktion"
  \alias Voice
  \consists "Output_property_engraver" %keine Ahnung, was das bedeuten soll!
   \consists "Text_spanner_engraver"
   \consists "Text_engraver"
   \consists "Axis_group_engraver"
%\consists "Bar_engraver"
   
   \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
 }
 \context { \Score \accepts Funktion }
 \context { \PianoStaff \accepts Funktion }
 } %Ende Layout

% Inspired by slashed-digit from scm/define-markup.scm:
#(define-markup-command (slashed-char layout props ch) (char?)
"A character, with slash."
(let*
((mag (magstep (chain-assoc-get 'font-size props 0)))
(thickness
(* mag
(ly:output-def-lookup layout 'line-thickness)
(chain-assoc-get 'thickness props 1.6)))
(char-stencil (interpret-markup layout props ch))
(num-x (interval-widen (ly:stencil-extent char-stencil X)
(* mag 0.1)))
(num-y (ly:stencil-extent char-stencil Y))
(is-sane (and (interval-sane? num-x) (interval-sane? num-y)))
(slash-stencil
(if is-sane
(ly:make-stencil
`(draw-line
,thickness
,(car num-x) ,(car num-y)
,(cdr num-x) ,(cdr num-y))
num-x num-y)
#f)))
(ly:stencil-add char-stencil slash-stencil)))

%Zuerst die Hauptfunktionen:
% Alle möglichen Tonikas
%zuerst die Durtonikas

Tonika = \markup {T}
T = #(define-music-function (parser location x) (ly:music?)
#{
   \context Voice <<$x { s1*0_\Tonika} >>
#})

Tonikamitterzimbass = \markup {T { \hspace #-1.5 \raise #0.25 \sub 3  } }
Tdrei = #(define-music-function (parser location x) (ly:music?)
#{
   \context Voice <<$x {  s1*0_\Tonikamitterzimbass} >>
#})

Tonikamitquintimbass = \markup {T { \hspace #-1.5 \raise #0.25  \sub 5 } }
Tfuenf = #(define-music-function (parser location x) (ly:music?)
#{
   \context Voice <<$x {  s1*0_\Tonikamitquintimbass } >>
#})
%Tonika als Textspanner
Tspan = {
   \textSpannerDown
   \override TextSpanner #'bound-details #'left #'text =
  \markup {"T" }
   \once \override TextSpanner #'bound-details #'left-broken #'text = ##f %dieser Quatschkram sorgt dafür, dass der Text nicht auf der nächsten Seite von neuem beginnt!!
  \override TextSpanner #'style =
 #'dashed-line
   \override TextSpanner #'dash-period = #0.01
\override TextSpanner #'bound-details #'right #'attach-dir = #1
  \once \override TextSpanner #'bound-details #'right-broken #'text = ##f %dieser Quatschkram sorgt dafür, dass der Text nicht auf der nächsten Seite von neuem beginnt!!
\override TextSpanner #'bound-details #'right #'padding = #-0.5
   } %damit das klappt, musst Du danach noch "\start" und "\stopTextSpan" einfuegen, erst dann startet das Symbol!
%dasselbe nun in Moll
tonika = \markup {t}
mt = #(define-music-function (parser location x) (ly:music?)
#{
   \context Voice <<$x {  s1*0_\tonika} >>
#})

tonikamitterzimbass = \markup {t { \hspace #-1.5 \raise #0.25 \sub 3 } }
tdrei = #(define-music-function (parser location x) (ly:music?)
#{
   \context Voice <<$x {  s1*0_\tonikamitterzimbass} >>
#})

tonikamitquintimbass = \markup {t { \hspace #-1.5 \raise #0.25 \sub 5 } }
tfuenf = #(define-music-function (parser location x) (ly:music?)
#{
   \context Voice <<$x {  s1*0_\tonikamitquintimbass } >>
#})
%tonika als Textspanner
tspan = {
   \textSpannerDown
   \override TextSpanner #'bound-details #'left #'text =
  \markup {"t" }
   \once \override TextSpanner #'bound-details #'left-broken #'text = ##f %dieser Quatschkram sorgt dafür, dass der Text nicht auf der nächsten Seite von neuem beginnt!!
  \override TextSpanner #'style =
 #'dashed-line
   \override TextSpanner #'dash-period = #0.01
\override TextSpanner #'bound-details #'right #'attach-dir = #1
  \once \override TextSpanner #'bound-details #'right-broken #'text = ##f %dieser Quatschkram sorgt dafür, dass der Text nicht auf der nächsten Seite von neuem beginnt!!
\override TextSpanner #'bound-details #'right #'padding = #-0.5
   }
   %

%Alle Dursubdominanten
Subdominante = \markup {S