help-gnu-music
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \mark before \key


From: Laurent Martelli
Subject: Re: \mark before \key
Date: 20 Feb 2001 02:09:44 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "Han-Wen" == Han-Wen Nienhuys <address@hidden> writes:

  Han-Wen> address@hidden writes:
  >> I am using this little hack to number exercices in Arban's
  >> trumpet method :


  >> It works fine except that the mark is placed after the \key whose
  >> width may vary. Of course I can adjust the hspace for each key,
  >> but I'd rather not have to do this.

  Han-Wen> maybe you can use an Staff.instrument ?

Yep. Great !

Since I wanted a bigger font I used this :

  \property Staff.InstrumentName \set #'font-relative-size  = #4
  \property Staff.InstrumentName \set #'font-series  = #'bold
  \property Staff.instrument = "46."

And since lily could not find that font, I added 

    ((4 bold upright roman cmbx 17) . "cmbx17")

to the definition of paper20-style-sheet-alist in font.scm.

I am now a happy man :-) 


And with the following definitions :

        #(define counter 0)
        #(define (make-instr-name n) (string-append (number->string counter) 
"."))
        #(define (counter->next) (set! counter (+ 1 counter)))
        numSettings = {
          \property Staff.InstrumentName \set #'font-relative-size  = #4
          \property Staff.InstrumentName \set #'font-series  = #'bold
        }

I just have to type this in order to automatically generate the
numbers for each exercise :

  \numSettings
  \property Staff.instrument = #(make-instr-name (counter->next))  


However, one thing is still worrying me : there must be a way to set
the Staff.InstrumentName properties once for all. But I really don't
undertsand everything about properties.

Thanks,
Laurent

-- 
Laurent Martelli
address@hidden              http://www.linuxfan.com/~laurent




reply via email to

[Prev in Thread] Current Thread [Next in Thread]