Re: Figured Bass - Alignment - Definitions?

2009-11-17 Thread grisu_76

Great, I had the fear I'm the only one with that problem ;-)
let me know if there is something new; - maybe I can contribute with some
testing...
Regards, Christian


Bugzilla from reinh...@kainhofer.com wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Am Montag, 16. November 2009 21:17:59 schrieb grisu_76:
>> maybe it is not the appropriate way, but is there a possibility that
>> anyone
>> could have a look to the figured bass alignment defintions? Neil looked
>> at
>> some definitions (fontsize, y-positioning: see messages form october
>> 21st)
>> to make it look more professional.
>> Can someone give me a hint to change the definitions in a way to
>> manipulate
>> the accidentals used without numbers  wrt the y-position, so that f.i.
>> the
>> extenders are in the same line? (see the examples)
> 
> I can't give you any particular hints on that one, I just wanted to
> mention 
> that I'm working on the vertical alignment of bass figures with extenders.
> 
> Cheers,
> Reinhold
> 
> - -- 
> - --
> Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
>  * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
>  * http://www.fam.tuwien.ac.at/, DVR: 0005886
>  * LilyPond, Music typesetting, http://www.lilypond.org
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
> 
> iD8DBQFLAm+uTqjEwhXvPN0RAomyAJ910rzt2634qKe49NcW9UQOk566jQCfZUPr
> ZxhuSGVg2QRl7KYe07wIKbQ=
> =MMPv
> -END PGP SIGNATURE-
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Figured-Bass---Alignment---Definitions--tp26378755p26389690.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: Figured Bass - Alignment - Definitions?

2009-11-17 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Montag, 16. November 2009 21:17:59 schrieb grisu_76:
> maybe it is not the appropriate way, but is there a possibility that anyone
> could have a look to the figured bass alignment defintions? Neil looked at
> some definitions (fontsize, y-positioning: see messages form october 21st)
> to make it look more professional.
> Can someone give me a hint to change the definitions in a way to manipulate
> the accidentals used without numbers  wrt the y-position, so that f.i. the
> extenders are in the same line? (see the examples)

I can't give you any particular hints on that one, I just wanted to mention 
that I'm working on the vertical alignment of bass figures with extenders.

Cheers,
Reinhold

- -- 
- --
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFLAm+uTqjEwhXvPN0RAomyAJ910rzt2634qKe49NcW9UQOk566jQCfZUPr
ZxhuSGVg2QRl7KYe07wIKbQ=
=MMPv
-END PGP SIGNATURE-


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


Figured Bass - Alignment - Definitions?

2009-11-16 Thread grisu_76

Dear members,

maybe it is not the appropriate way, but is there a possibility that anyone
could have a look to the figured bass alignment defintions? Neil looked at
some definitions (fontsize, y-positioning: see messages form october 21st)
to make it look more professional. 
Can someone give me a hint to change the definitions in a way to manipulate
the accidentals used without numbers  wrt the y-position, so that f.i. the
extenders are in the same line? (see the examples)
Regards,
Christian

http://old.nabble.com/file/p26378755/test_fig_bass_default.pdf
test_fig_bass_default.pdf 
http://old.nabble.com/file/p26378755/test_fig_bass_fontsize_0.pdf
test_fig_bass_fontsize_0.pdf 
http://old.nabble.com/file/p26378755/test_fig_bass_definition_changed.pdf
test_fig_bass_definition_changed.pdf 
-- 
View this message in context: 
http://old.nabble.com/Figured-Bass---Alignment---Definitions--tp26378755p26378755.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


Figured Bass-Alignment - follow up

2009-11-09 Thread grisu_76

Dear Members,

a while ago I discussed with Neil (thanks again!) th alignment of the
figured-bass-items:

for illustration, see the attached examples:

_default: as it is programmed in 2.12:
here, the combination of accidentals and numbers work well, but if one uses
the accidental solely (i.e. the third is changed) a small accidental makes
diffuculties in reading 

_fontsize_0: with the changed font-size in the translation-functions:
changed fontsize causes unexpected results regarding to the y-position of
numbers with accidentals especially in combination with the natural-sign 

_definition_changed: with Neils suggestion to solve the alignment-problem:
the y-position of accidentals with numbers now work perfect;

in addition, from the state of practice, it would be great if anyone has an
idea to solve the following: 

if one uses the accidental solely (see above) the y-position is different
(clearly seen if extenders are used); is there a way to handle accidentals
eqal to the numbers (in respect to the y-position) if they are used solely? 

thanks and best regards, Christian
 
http://old.nabble.com/file/p26267481/test_fig_bass_default.pdf
test_fig_bass_default.pdf 
http://old.nabble.com/file/p26267481/test_fig_bass_fontsize_0.pdf
test_fig_bass_fontsize_0.pdf 
http://old.nabble.com/file/p26267481/test_fig_bass_definition_changed.pdf
test_fig_bass_definition_changed.pdf 
-- 
View this message in context: 
http://old.nabble.com/Figured-Bass-Alignment---follow-up-tp26267481p26267481.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: Figured Bass - Alignment

2009-10-21 Thread grisu_76

Neil, it works wunderfully, the problem is gone! - Thanks!

for illustration, I made some output to show the differences:

_default: as it is programmed in 2.12

_fontsize_0: with the changed font-size in the translation-functions

_definition_changed: with you suggestion to solve the alignment-problem;

one would be great to be changed as well:
if one uses the accidental solely (i.e. as a "number"), the y-position is
different; is there a way to handle accidental eqal to the numbers if they
are used solely? 

best regards, Christian


Neil Puttock wrote:
> 
> 2009/10/19 grisu_76 :
> 
>> now I've got the problem that the flat-sign changes the Y-position of the
>> numbers; I suppose that is beause the flat-sign uses more space above;
>> see
>> example:
> 
> I think you mean the natural sign: it's taller than the flat, so it
> sticks out at the top when combined with larger font sizes.
> 
>> does anyone has an idea to change the translation-functions.scm to lower
>> only the flat-sign when it has a number?
> 
> As a quick hack (untested; might have other side-effects in real-world
> examples), you could reduce the Y-extent of the accidental markup.
> 
> Add this to define-markup-commands.scm:
> 
> (define-builtin-markup-command (with-y-dim layout props y arg)
>   (number-pair? markup?)
>   other
>   ()
>   "Set the vertical extent of @var{arg} to @var{y} and use the
> default extent horizontally."
>   (let* ((m (interpret-markup layout props arg))
>(x-ext (ly:stencil-extent m X)))
> (ly:make-stencil (ly:stencil-expr m) x-ext y)))
> 
> Change this line in format-bass-figure,
> 
> #:pad-x 0.2 alt-markup
> 
> to this:
> 
> #:pad-x 0.2 #:with-y-dim '(0 . 1.5) alt-markup
> 
>>
>> by the way: after a while of playing with that, I wounder if the second
>> parameter has no? effect on the fontsize..?
> 
> If you mean the second digit (next to the parenthesis), then it's used
> to set the fontsize of double sharps.
> 
> Regards,
> Neil
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 
http://www.nabble.com/file/p25991353/test_fig_bass_default.pdf
test_fig_bass_default.pdf 
http://www.nabble.com/file/p25991353/test_fig_bass_fontsize_0.pdf
test_fig_bass_fontsize_0.pdf 
http://www.nabble.com/file/p25991353/test_fig_bass_definition_changed.pdf
test_fig_bass_definition_changed.pdf 
-- 
View this message in context: 
http://www.nabble.com/Figured-Bass---Alignment-tp25965234p25991353.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: Figured Bass - Alignment

2009-10-20 Thread Neil Puttock
2009/10/19 grisu_76 :

> now I've got the problem that the flat-sign changes the Y-position of the
> numbers; I suppose that is beause the flat-sign uses more space above; see
> example:

I think you mean the natural sign: it's taller than the flat, so it
sticks out at the top when combined with larger font sizes.

> does anyone has an idea to change the translation-functions.scm to lower
> only the flat-sign when it has a number?

As a quick hack (untested; might have other side-effects in real-world
examples), you could reduce the Y-extent of the accidental markup.

Add this to define-markup-commands.scm:

(define-builtin-markup-command (with-y-dim layout props y arg)
  (number-pair? markup?)
  other
  ()
  "Set the vertical extent of @var{arg} to @var{y} and use the
default extent horizontally."
  (let* ((m (interpret-markup layout props arg))
 (x-ext (ly:stencil-extent m X)))
(ly:make-stencil (ly:stencil-expr m) x-ext y)))

Change this line in format-bass-figure,

#:pad-x 0.2 alt-markup

to this:

#:pad-x 0.2 #:with-y-dim '(0 . 1.5) alt-markup

>
> by the way: after a while of playing with that, I wounder if the second
> parameter has no? effect on the fontsize..?

If you mean the second digit (next to the parenthesis), then it's used
to set the fontsize of double sharps.

Regards,
Neil


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


Figured Bass - Alignment

2009-10-19 Thread grisu_76

Dear Lilyponders,

as ist was discussed in the group earlier, one can alter the size of
accidentals in figuredbass-mode with a bit of a "hack" changing the
translation-functions.scm:

(alt (ly:event-property event 'alteration))
 (alt-markup
  (if (number? alt)
  (markup
   #:general-align Y DOWN #:fontsize
   (if (not (= alt DOUBLE-SHARP))
   0 0)  %** 
this was
default -2 -2;
   (alteration->text-accidental-markup alt))

now I've got the problem that the flat-sign changes the Y-position of the
numbers; I suppose that is beause the flat-sign uses more space above; see
example:

\include "deutsch.ly"

<<
\new Staff{
\clef "bass"
\relative c{
b8-. \fz b' b b b,-. \fz b' b b
 es, \p es es es es es es es
}   }
  
\new FiguredBass {
\figuremode{
\bassFigureStaffAlignmentDown

\bassFigureExtendersOn  
\repeat unfold 8 {<7>}
 <8 3> <8 3> <8 3> <5! 3\!> <6 4> <6 4> <5- 3> <_>

 
}
}
>>


does anyone has an idea to change the translation-functions.scm to lower
only the flat-sign when it has a number?

by the way: after a while of playing with that, I wounder if the second
parameter has no? effect on the fontsize..?

cheers, Christian

 

-- 
View this message in context: 
http://www.nabble.com/Figured-Bass---Alignment-tp25965234p25965234.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