Debian Codegraph @

overview/recentdev.xml

raw symbols SCIP
1
2 <chapter id="RecentDevelopments">
3
4 <title>Recent Developments</title>
5
6 <para>In the time since Barry Vercoe wrote the original Preface to
7 this manual, printed above, many further contributions have been made
8 to Csound. CsoundAC is an extended version of Csound 5.</para>
9
10 <section id="newFeaturesInCsound5">
11
12 <title>Features of Csound 5</title>
13
14 <para>Csound 5 begins a new major version of Csound that includes the
15 following new features:</para>
16
17 <itemizedlist>
18
19 <listitem>
20 <simpara>Now licensed under the GNU Lesser General Public License, an
21 open source license.</simpara>
22 </listitem>
23
24 <listitem>
25 <simpara>A new, easier to manage build system using
26 <application>SCons</application>.</simpara>
27 </listitem>
28
29 <listitem>
30 <simpara>The use of widely--accepted open source libraries:</simpara>
31
32 <itemizedlist>
33
34 <listitem><simpara>libsndfile for soundfile input and output.</simpara></listitem>
35
36 <listitem><simpara>PortAudio with ASIO drivers for low-latency, real-time audio input and output.</simpara></listitem>
37
38 <listitem><simpara>FLTK for graphical widgets that can be programmed in orchestra code.</simpara></listitem>
39
40 <listitem><simpara>PortMidi for real-time MIDI input and output.</simpara></listitem>
41
42 </itemizedlist>
43
44 <simpara>In addition, Istvan Varga has contributed native MIDI and audio drivers for Windows and Linux.</simpara>
45
46 </listitem>
47
48 <listitem><simpara>Simplified audio buffering system.</simpara></listitem>
49
50 <listitem><simpara>Status returns from all internal functions, including opcode functions.</simpara></listitem>
51
52 <listitem><simpara>MIDI interop opcodes, that enable the same instrument
53 definitions to be used interchangeably for either live MIDI
54 performance or off-line, score-driven performance.</simpara></listitem>
55
56 <listitem><simpara>Plugin opcodes are working and becoming more widely
57 accepted. Many opcodes have been moved to plugins. Most new opcodes
58 are plugins, including:</simpara>
59
60 <itemizedlist>
61
62 <listitem><simpara>The FluidSynth-based SoundFont opcodes.</simpara></listitem>
63
64 <listitem><simpara>Python opcodes allowing Python code to execute in the
65 orchestra header or in instrument code, at <literal>i</literal>-rate or <literal>k</literal>-rate.</simpara></listitem>
66
67 <listitem><simpara>Loris opcodes for time/frequency analysis and resynthesis.</simpara></listitem>
68
69 <listitem><simpara>Control bus opcodes.</simpara></listitem>
70
71 <listitem><simpara>Audio mixer opcodes.</simpara></listitem>
72
73 <listitem><simpara>String conversion opcodes.</simpara></listitem>
74
75 <listitem><simpara>Improved Open Sound Control (OSC) opcodes.</simpara></listitem>
76
77 <listitem><simpara>Vectorial opcodes.</simpara></listitem>
78
79 <listitem><simpara>The <application>pvs</application> opcodes
80 for real-time spectral processing, a port of Mark Dolson's
81 phase vocoder code.</simpara></listitem>
82
83 <listitem><simpara>The <application>ATS</application> opcodes
84 for spectral Analysis, Transformation, and Synthesis of sound
85 based on a sinusoidal plus critical-band noise model. A sound
86 in ATS is a symbolic object representing a spectral model that
87 can be sculpted using a variety of transformation
88 functions. These opcodes can read, transform and resynthesize
89 ATS analysis files. Please note that you need the ATS
90 application to produce analysis files.</simpara></listitem>
91
92 <listitem><simpara>The STK opcodes, consisting of Perry Cook's
93 original Synthesis Toolkit in C++ instruments, in C++, adapted
94 as opcodes.</simpara></listitem>
95
96 <listitem><simpara><application>DSSI</application>
97 and <application>LADSPA</application> adapter opcodes for
98 hosting <application>DSSI</application>
99 and <application>LADSPA</application> plugins in
100 Csound.</simpara></listitem>
101
102 <!-- <listitem><simpara><application>vst4cs</application> VST -->
103 <!-- adapter opcodes for hosting VST plugins in -->
104 <!-- Csound. (Distributed in source form only due to the VST SDK -->
105 <!-- licence restrictions.)</simpara></listitem> -->
106 </itemizedlist>
107 </listitem>
108
109 <listitem><simpara>The <filename>OpcodeBase.hpp</filename> header file for
110 writing plugin opcodes in C++. This is based on the technique of
111 static polymorphism via template inheritance.</simpara></listitem>
112
113 <listitem><simpara>Istvan Varga's csound5gui frontend for Csound, simplifying
114 the editing of Csound, the use of Csound especially for live performance,
115 and the monitoring of performances.</simpara></listitem>
116
117 <listitem><simpara>Victor Lazzarini's Tcl/Tk frontends for
118 Csound, <application>cstclsh</application>
119 and <application>cswish</application>.</simpara></listitem>
120
121 <listitem><simpara>The Csound API is becoming more standardized
122 and more widely used. There are interfaces or wrappers
123 to the API in the following languages:</simpara>
124
125 <itemizedlist>
126
127 <listitem><simpara>C
128 (include <literal>csound.h</literal>).</simpara></listitem>
129
130 <listitem><simpara>C++
131 (include <literal>csound.hpp)</literal>). This API includes
132 Csound score and orchestra file container
133 functions.</simpara></listitem>
134
135 <listitem><simpara>Python (<literal>import
136 csnd</literal>).</simpara></listitem>
137
138 <listitem><simpara>Java (<literal>import
139 csnd.*;</literal>).</simpara></listitem>
140
141 <listitem><simpara>Lua (<literal>require
142 "csnd";</literal>).</simpara></listitem>
143
144 <listitem><simpara>Lisp (use the CFFI
145 file <literal>csound5.lisp</literal>).</simpara></listitem>
146
147 </itemizedlist>
148 </listitem>
149
150 <listitem><simpara>Csound is now truly re-entrant, meaning that
151 multiple instances of Csound can run at the same time, in the same
152 process.</simpara></listitem>
153
154 </itemizedlist>
155
156 <para>John ffitch plans to replace the handwritten parser with one
157 written using a parser generator, which should make it more
158 bug-free and perhaps more efficient.</para>
159
160 </section>
161
162 <section id="featuresOfCsoundAC">
163
164 <title>Features of CsoundAC</title>
165
166 <para>CsoundAC is a Python extension module for writing music by programming in Python. CsoundAC is based
167 on Michael Gogins' concept of music graphs, in which a score is represented as hierarchical tree of nodes,
168 which can contain notes, score generators, score transforms, and other nodes.</para>
169
170 <para>CsoundAC also provides a Python interface to the Csound API. This makes it very easy to use Csound to render
171 CsoundAC compositions. Using Python's triple quotes, it is even possible to embed the formatted Csound orchestra
172 code for a piece directly into the Python code for that piece, so that all programming for a composition can be
173 maintained in a single file.</para>
174
175 <para>The coordinate system in CsoundAC is based on a Euclidean music space with dimensions {time, duration, event type, instrument number,
176 pitch as MIDI key, loudness as MIDI velocity, phase, spatial X coordinate, spatial Y coordinate, spatial Z coordinate, pitch-class set, 1}.
177 A point in music space can be a note, an inflection of a note, or even a grain of sound.</para>
178
179 <para>A music graph is a directed acyclical graph, or tree, of nodes in music space. These nodes are associated with local transformations
180 of coordinate system. There are nodes for containing scores or fragments of scores, for generating scores, and for
181 transforming scores. In addition, any node may contain child nodes that inherit the parent's coordinate system.</para>
182
183 <para>Thus, it is possible to compose a musical score by containing or generating notes in lower level nodes, assembling them into a
184 score using higher level nodes, and finally rendering the score with Csound. The process is strictly analogous to the
185 construction of a 3-dimensional scene in computer graphics by generating primitive objects such as spheres, cones, and cubes and
186 moving them around in space to assemble a scene.</para>
187
188 <para>Some of the node classes included in CsoundAC are:</para>
189
190 <itemizedlist>
191
192 <listitem><simpara>ScoreNode: Simply contains a sequence of notes or other points in music space, perhaps imported from a MIDI file.</simpara></listitem>
193
194 <listitem><simpara>Rescale: Rescales child points to fit a desired range in time, duration, pitch, and/or other dimensions.</simpara></listitem>
195
196 <listitem><simpara>Cell: Repeats child points in a sequence at regular intervals;
197 the interval can be shorter or longer than the actual duration of the child points.</simpara></listitem>
198
199 <listitem><simpara>Hocket: Hockets points produced by child nodes.</simpara></listitem>
200
201 <listitem><simpara>Lindenmayer: Generates scores using O-L Lindenmayer systems.</simpara></listitem>
202
203 <listitem><simpara>StrangeAttractor: Generates scores from a variety of tunable chaotic dynamical systems.</simpara></listitem>
204
205 <listitem><simpara>MCRM: Generates scores using the Multiple Copy Reducing Machine algorithm.</simpara></listitem>
206
207 <listitem><simpara>ImageToScore: Generates scores by translating image files into points in music space.</simpara></listitem>
208
209 <listitem><simpara>Random: Randomizes child points on any dimension or dimensions of music space, using a variety of random variables.</simpara></listitem>
210
211 <listitem><simpara>VoiceleadingNode: Generates chord progressions and voice-leadings for child notes, using operations based on the mathematical music theory
212 of Dmitri Tymoczko.</simpara></listitem>
213
214 </itemizedlist>
215
216 <para>Finally, is is possible to derive a new Node class in Python from any existing Node,
217 in order to create new score generators and transforms as part of the composing process.</para>
218
219 </section>
220
221 </chapter>