File: style.pure

package info (click to toggle)
abc2ps 1.3.3-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 548 kB
  • ctags: 1,066
  • sloc: ansic: 9,511; makefile: 50
file content (104 lines) | stat: -rw-r--r-- 3,368 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*  
 *  This file is part of abc2ps, Copyright (C) 1996  Michael Methfessel
 *  See file abc2ps.c for details.
 */

/*   Global style parameters for the note spacing and Knuthian glue. */

/*   Parameters here are used to set spaces around notes.
     Names ending in p: prefered natural spacings
     Names ending in x: expanded spacings  
     Units: everything is based on a staff which is 24 points high
     (ie. 6 pt between two staff lines). */

/* name for this set of parameters */
#define STYLE "pure"

/* ----- Parameters for the length-to-width mapping ----- */
/* f0p, f5p, f1p are the return values for notes of zero duration, 
   half notes, and whole notes. A simple parabolic interpolation is 
   used for other note durations. The aim is to permit a non-linear 
   relation between the note duration and the spacing on the paper. */

float f0p=0.0;
float f5p=0.5; 
float f1p=1.0;  

float f0x=0.0;    
float f5x=0.5;
float f1x=1.0;


/* ----- Parameters for the note-note spacing ----- */
/* That is: the internote spacing between two notes that follow 
   each other without a bar in between.  

   -- lnn is an overall multiplier, i.e. the final note width in points
      is the return value of function nwidth times lnn.
   -- bnn determines how strongly the first note enters into the spacing.
      For bnn=1, the spacing is calculated using the first note.
      For bnn=0, the spacing is the average for the two notes. 
   -- fnn multiplies the spacing under a beam, to compress the notes a bit 
   -- gnn multiplies the spacing a second time within an n-tuplet */
   
float lnnp=30;        
float bnnp=1.0;
float fnnp=1.0;
float gnnp=1.0;

float lnnx=60;     
float bnnx=1.0;
float fnnx=1.0;
float gnnx=1.0;


/* ---- Parameters for the bar-note spacing ----- */
/* That is: the spacing between a bar and note at the measure start.

   -- lbn is the overall multiplier for the return values from nwidth.
   -- vbn is the note duration which defines the default spacing.
   -- bbn determines how strongly the note duration enters into the spacing.
      For bbn=1, the spacing is lbn times the return value of nwidth.
      For bbn=0, the spacing is lbn times the width of rbn times timesig. */

float lbnp=30;   
float bbnp=0.0;
float rbnp=0.125;

float lbnx=60;     
float bbnx=0.0;
float rbnx=0.125;


/* ---- Parameters for the note-bar spacing ----- */
/* That is: the spacing between a note at the measure end and the bar.

   -- lnb is the overall multiplier for the return values from nwidth.
   -- vnb is the note duration which defines the default spacing.
   -- bnb determines how strongly the note duration enters into the spacing.
      For bnb=1, the spacing is lnb times the return value of nwidth.
      For bnb=0, the spacing is lnb times the width of rbn times timesig. */

float lnbp=30;    
float bnbp=1.0;
float rnbp=0.125;

float lnbx=60;    
float bnbx=1.0;
float rnbx=0.125;  


/* ---- Parameters for centered single note in a measure ----- */
/* That is: the total length = bar-note + note-bar spacings

   -- ln0 is the overall multiplier for the return values from nwidth.
   -- bn0 interpolates between two limiting cases
      For bn0=0, this case is treated like bar-note and note-bar cases
      For bn0=1, the note is centered in the measure.  */

float ln0p=30;
float bn0p=0;

float ln0x=60;
float bn0x=0;