How to put current date in footer?

2008-04-13 Thread Alain
Hi NG

I'm trying to have a timestamp in the footer of every page. nice would
also be to have subversion revision as metainformation printed.
I'm quite new to Lilypnd...

How can I do that?

I've tried it the LaTeX way:
\paper{
  ...
  oddFooterMarkup = "Compiled: \today"
}

but like this it doesn't work.

Thanks
Alain



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


How to have everything noted in C major even if transposed for another instrument

2008-04-13 Thread Alain
Hi NG

In modal jazz it can make sense to write everything in C major key
because it is not always obvious what key a piece is in.
All the flats and sharps will then be noted at every appearance.

My problem is the following. I define a melody in concert key:

melody = {
  \key c \major
  \time 4/4
  c4 cis4 .
}

then I use this melody for a concert sheet and a Bb sheet.
For Bb of course I use

\book{
  \score{
\transpose bes c' <<
  \context ChordNames \chords { \override ChordName #'font-size = #6
  \harmonies
  }
  \context Voice = "mel" {
\melody
  } 
>>
  }
}

And here's the problem. The Bb sheet is now notated in D major. But I'd
like to have it in C major as well!

thanks for any help

Alain



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


Re: How to put current date in footer?

2008-04-13 Thread Alain
Arvid Grøtting wrote:
> Alain <[EMAIL PROTECTED]> writes:
> 
>> Hi NG
>>
>> I'm trying to have a timestamp in the footer of every page. nice would
>> also be to have subversion revision as metainformation printed.
>> I'm quite new to Lilypnd...
>>
>> How can I do that?
>>
>> I've tried it the LaTeX way:
>> \paper{
>>   ...
>>   oddFooterMarkup = "Compiled: \today"
>> }
>>
>> but like this it doesn't work.
> 
> You need a bit of Scheme, the Lilypond manuals and the Guile manual.
> Try something like this:
> 
> %%  cut here ->8
> 
> \version "2.11.43"
> 
> revision = #"$Revision: 1.2 $"
> 
> today = #(strftime "%Y-%m-%d" (localtime (current-time)))
> 
> \paper {
>   oddFooterMarkup = #(ly:format "Compiled ~a by ~a (~a)"
> today (cuserid) revision)
> }
> 
> \score {
> 
>   \context Score <<
> \relative c'' { c c c c }
>   >>
>   \layout {}
>  }
> 
> %%  cut here ->8
> 
> Cheers,
> 

Thanks for this very quick answer.

I seem to have a problem here, maybe because I'm running lilypond 2.10.10?

/home/brenzi/svn_local/lilypond-songs/test.ly:8:21: Fehler: GUILE
signalisierte einen Fehler für den hier beginnenden Ausdruck
  oddFooterMarkup = #
 (ly:format "Compiled ~a by ~a (~a)"
Unbound variable: ly:format

sorry for the german error msg ;-)

does this only work with lily 2.11?

Alain



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


Re: How to put current date in footer?

2008-04-13 Thread Alain
Alain wrote:
> Arvid Grøtting wrote:
>> Alain <[EMAIL PROTECTED]> writes:
>>
>>> Hi NG
>>>
>>> I'm trying to have a timestamp in the footer of every page. nice would
>>> also be to have subversion revision as metainformation printed.
>>> I'm quite new to Lilypnd...
>>>
>>> How can I do that?
>>>
>>> I've tried it the LaTeX way:
>>> \paper{
>>>   ...
>>>   oddFooterMarkup = "Compiled: \today"
>>> }
>>>
>>> but like this it doesn't work.
>> You need a bit of Scheme, the Lilypond manuals and the Guile manual.
>> Try something like this:
>>
>> %%  cut here ->8
>>
>> \version "2.11.43"
>>
>> revision = #"$Revision: 1.2 $"
>>
>> today = #(strftime "%Y-%m-%d" (localtime (current-time)))
>>
>> \paper {
>>   oddFooterMarkup = #(ly:format "Compiled ~a by ~a (~a)"
>> today (cuserid) revision)
>> }
>>
>> \score {
>>
>>   \context Score <<
>> \relative c'' { c c c c }
>>   >>
>>   \layout {}
>>  }
>>
>> %%  cut here ->8
>>
>> Cheers,
>>
> 
> Thanks for this very quick answer.
> 
> I seem to have a problem here, maybe because I'm running lilypond 2.10.10?
> 
> /home/brenzi/svn_local/lilypond-songs/test.ly:8:21: Fehler: GUILE
> signalisierte einen Fehler für den hier beginnenden Ausdruck
>   oddFooterMarkup = #
>  (ly:format "Compiled ~a by ~a (~a)"
> Unbound variable: ly:format
> 
> sorry for the german error msg ;-)
> 
> does this only work with lily 2.11?
> 
> Alain


just found the solution thanks to Valentin's post.

revision = #"$Revision$"
today = #(strftime "%Y-%m-%d" (localtime (current-time)))

pieceFooter = #( ly:export ( string-append "Compiled " today " SVN:"
revision))

great.

thanks for your help!
Alain



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


Re: How to have everything noted in C major even if transposed for another instrument

2008-04-13 Thread Alain
Alain wrote:
> Hi NG
> 
> In modal jazz it can make sense to write everything in C major key
> because it is not always obvious what key a piece is in.
> All the flats and sharps will then be noted at every appearance.
> 
> My problem is the following. I define a melody in concert key:
> 
> melody = {
>   \key c \major
>   \time 4/4
>   c4 cis4 .
> }
> 
> then I use this melody for a concert sheet and a Bb sheet.
> For Bb of course I use
> 
> \book{
>   \score{
> \transpose bes c' <<
>   \context ChordNames \chords { \override ChordName #'font-size = #6
>   \harmonies
>   }
>   \context Voice = "mel" {
>   \melody
>   }   
> >>
>   }
> }
> 
> And here's the problem. The Bb sheet is now notated in D major. But I'd
> like to have it in C major as well!
> 
> thanks for any help
> 
> Alain


Ok, it works just by not defining the key at all. simple ;-)

thanks Jonathan

Alain



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


Band In A Box to Lilypond!

2004-12-06 Thread Alain
Hi Lilypond users
I'm working on a biab file converter. It reads most biab files and 
writes lilypond and mma output. Find a beta release under:
http://people.ee.ethz.ch/~brenzala/builder.php?content=projects_biabconverter&lang=en

regards
Alain
___
lilypond-user mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-user