On Mon, 13 Aug 2001, Samy Abbes wrote:

> Standard notation does exist ! In fact it's the same as western
> notation. The difference is in the "exotic" accidentals, and
> the numerous scales, including sharps, flats, but also half sharps
> and half flats in the same scale.
>
> The symbols are quiet simple : a flat with a bar makes the half
> flat, and a sharp with only one vertical bar instead of two makes
> the half sharp.
>
> The problem is : how could I introduce them in MusiXTeX,
> and how can I totally decide of the signature ?
> Samy

For the moment you could set up your own font by copying the appropriate
lines of musixgen.mf and musix<nn>.mf (where <nn> is the pt music-size)
to another new metafont input file and modify it to your needs. Then
you'll have to define a new font inside your MusixTeX input file by
\font\musix=arabmus scaled 1000
if you called your metafont file arabmus.mf and use something like
\loffset{\SomeNumber}{\zcharnote{\SomePitch}{{\YourFont\char{\CharNumber}}}}
to put the character you want to have.

The code for the sharp I've copied below (coming from musixgen.mf) where
you just have to find out (by adding %-comment characters) which draw
command is responsible for which bar of the sharp. The values of the
constants used here are set in musix<nn>.mf which you'll have to copy also
to your file.

Note that z<n> is a pair of coordinates automatically composed by metafont
using the variables x<n> and y<n>. The flat seems to me to be a bit more
of work since you have to add something. Which means you'll first have to
find out about all the variables, where they are set and what they
control.

def sharp (expr reduction, zshift) =
  sthick:= .5reduction*thick;
  nx:= reduction*1.5nhh;
  ny:= reduction*.8nhw;
  y1 =-y7= nx-1.5sthick; y2 =-y8 = .5sthick-nx;
  x1 = x2 = y3 = -y6 = ny-x7 = ny-x8 = 2sthick;
  y4 =-y5 = y3 + 3sthick;
  x3 = x5 = 0; x4 = x6 = ny;
  pickup penrazor scaled max(1,thin) rotated angle(z4-z3);
  draw z1--z2; draw z8--z7;
  pickup penrazor scaled 3sthick rotated 90;
  draw z3--z4; draw z5--z6;
  shift_pic (zshift, 0);
  labels (range 1 thru 8)
enddef;

beginchar(52, nhw#, 1.5nhh#, 1.5nhh#); "sharp";
  sharp (1, 0);
endchar;

The first number in the argument here tells that character no 52 of the
font created by this file will be what's defined hereafter.

If you feel you don't get through this messy procedure, ask me for
further help. I have a similar job on my schedule for modifying some
continuo figures. I hope, I manage to attack it in September.

Bernhard

_______________________________________________
TeX-music mailing list
[EMAIL PROTECTED]
http://sunsite.dk/mailman/listinfo/tex-music

Reply via email to