Debian Codegraph @

csbeats/syntax.xml

raw symbols SCIP
1 <refsect1>
2 <para>
3 The <emphasis>csbeats</emphasis> language is very simple, having
4 only 5 kinds of statement, and only one of them has any
5 complexity. In general the introductory word for each statement
6 type is case insensitive, so "QUIT", "quit", "QuIt"... are all
7 the same. Comments can be introduced in either ANSI C89 format
8 or C++ (that is either /* ... */ or // to the end of line) or
9 Csound's semicolon.
10 </para>
11 <itemizedlist>
12 <listitem><emphasis>QUIT</emphasis>
13 <para>
14 Causes csbeats to exit. For
15 flexibility the command <emphasis>END</emphasis> is also
16 accepted for the identical action.
17 </para>
18 </listitem>
19 <listitem><emphasis>BEATS</emphasis>=integer
20 <para>
21 Sets the number of beats
22 per minute for the following score until the end or until it is
23 reset. The default value is 60bpm. The token
24 <emphasis>BPS</emphasis> is also acceptable instead of BEATS.
25 </para>
26 </listitem>
27 <listitem><emphasis>PERMEASURE</emphasis>=integer
28 <para>
29 Sets the number of
30 beats in a bar. The default value is 4.
31 </para>
32 </listitem>
33 <listitem><emphasis>BAR</emphasis>
34 <para>
35 Start a new bar.
36 </para>
37 </listitem>
38 <listitem><emphasis>BAR</emphasis> integer
39 <para>
40 Start the bar whose number is
41 given.
42 </para>
43 </listitem>
44 <listitem>
45 <emphasis>i</emphasis> integer attributes
46 <para>
47 Specified a note event for the numbered instrument. The
48 attributes may be any of a pitch, duration or dynamic, or a
49 positioning of the note to a beat or measure, and can be in
50 any order.
51 </para>
52 <para>
53 Pitches are specified with a conventional note name (English
54 form) in upper case optionally followed by a #, x (for
55 double sharp), b (for flat) or bb (for double flat).
56 A note of Z is a rest (think zzzz). All notes except rests
57 must be followed by an octave number, with A4 being
58 international A (440Hz). Pitches are passed to Csound in
59 Hertz in the parameter p4, and are twelve tone equal temprament.
60 </para>
61 <para>
62 Durations are coded in lower case with the initial letter of
63 the name for <emphasis>w</emphasis>hole,
64 <emphasis>h</emphasis>alf, <emphasis>q</emphasis>uarter,
65 <emphasis>e</emphasis>igth and <emphasis>s</emphasis>ixteeth
66 notes, or <emphasis>th</emphasis> for thirtysecondth notes.
67 Except for <emphasis>w</emphasis> these can be moderated by
68 appending as suffix:
69 <itemizedlist>
70 <listitem>
71 <emphasis>d</emphasis> or <emphasis>.</emphasis> Dotted
72 note (half as long again)
73 </listitem>
74 <listitem>
75 <emphasis>dd</emphasis> or <emphasis>..</emphasis> Dotted
76 note (three quarters as long again)
77 </listitem>
78 <listitem>
79 <emphasis>t</emphasis> Triplet note (third notes in
80 two)
81 </listitem>
82 <listitem>
83 <emphasis>t.</emphasis> Dotted triplet note
84 </listitem>
85 <listitem>
86 <emphasis>q</emphasis> Quintuplet (Five notes in four)
87 </listitem>
88 <listitem>
89 <emphasis>s</emphasis> Septuplet (Seven notes in eight)
90 </listitem>
91 </itemizedlist>
92 Durations can be added together by giving more that one
93 duration. To make this more intuitive a + sign can be used
94 instead of white space.
95 </para>
96 <para>
97 The dynamics are written in conventional notation, that is fff,
98 ff, f, mf, mp, p, pp, ppp, pppp. These are passed to the instrument
99 as p5 as 0 for fff, and one less dB for each step below. The
100 default dynamic is fortissimo.
101 </para>
102 <para>
103 Additional parameters (p-fields) can be specified in an
104 instrument statement by giving statements like
105 <emphasis>p6=42</emphasis> which would set the p6 field to 42
106 until it is changed. The number must be 6 or greater as the
107 first 5 fields are taken with fixed information. Each
108 instrument number has its own additional parameters.
109 </para>
110 <para>
111 If any of these attributes is missing it carried forward from the
112 previous note, with beat position being incremented to the end
113 of the previous note.
114 </para>
115 <para>
116 In addition an event can be directed to a particular measure with
117 an m attribute or a particular beat with a b.
118 </para>
119 </listitem>
120 </itemizedlist>
121 </refsect1>
122