Articulation says how a note changes while it plays: envelopes, low frequency oscillators, filter, pan, the response to MIDI controllers. In DLS it is a list of connection blocks, each routing a source to a destination. This page describes the chunks and the block; the numbers they use are on Connections and units. Sections 1.4.2, 1.6, 1.13, 1.14.9, 2.9 and 2.10 of Downloadable Sounds Level 2.2 and the Level 1 document.
lart and lar2 lists
An lart list holds art1 chunks (Level 1) and an
lar2 list holds art2 chunks (Level 2); either can start with a
cdl chunk. A list
in an ins list is global articulation: it applies to all the
regions of the instrument. A list in a region is local. Level 1 allows global
articulation only in melodic instruments and local articulation only in drum
instruments; Level 2 allows both.
Local articulation takes precedence over global. Global articulation, with its implied
default connections, is used as a monolithic block: either as a whole, or discarded in
favour of the local articulation if the region has any that applies (that is, that
exists and passes its conditional chunk). Default connections, by contrast, are
overridden connection by connection, at the global and the local level alike.
Level 2 devices treat art1 and art2 chunks identically, so if
both set the same connection to different values the result is undefined; the
specification advises guarding the art1 list with a conditional chunk that
a Level 2 device fails (see levels).
art1 and art2
Both chunks have the same layout; only the meaning of usTransform differs.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 4 | u32 | cbSize | the size of this header in bytes, not counting the connection blocks (8); it lets the structure grow, and cannot be worked out from the chunk size |
| 4 | 4 | u32 | cConnectionBlocks | the number of connection blocks that follow |
cbSize | 12 × cConnectionBlocks | records | connection blocks | the blocks, immediately after the header |
A connection block
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 2 | u16 | usSource | the source of the connection (sources) |
| 2 | 2 | u16 | usControl | the control, a second source that scales the first |
| 4 | 2 | u16 | usDestination | the destination (destinations) |
| 6 | 2 | u16 | usTransform | Level 1: the transform, 0 none or 1 concave. Level 2: the input and output transforms, below |
| 8 | 4 | i32 | lScale | the scaling value, in the units of the destination |
A connection block routes a signal like this (section 1.6.2):
usDestination = usDestination + usTransform(Norm(usSource) × (Norm(usControl) × lScale)).
All connections to one destination are summed. An unconnected input counts as full scale,
so with usControl CONN_SRC_NONE the block is a scaled
source (lScale sets how much of the source reaches the destination),
and with both CONN_SRC_NONE it is a scaled connection, a bias on the
destination: it sets the playback frequency, the initial gain, the initial filter cutoff
and so on. Each combination of source, control and destination is one connection in a
region; the default is used where no block names it, a block overrides the default for
that connection only, and duplicates within one region are not allowed (behaviour
undefined).
usTransform in art2
| Bits | Field | Meaning |
|---|---|---|
| 0 to 3 | output transform | one of 16; there are none defined in Level 2: the bits must be 0 |
| 4 to 7 | control transform | the transform applied to usControl |
| 8 | control bipolar | maps the control to −1 to +1 |
| 9 | control invert | inverts the control |
| 10 to 13 | source transform | the transform applied to usSource |
| 14 | source bipolar | maps the source to −1 to +1 |
| 15 | source invert | inverts the source |
This is Figure 12 of the specification (section 2.10): for the source, bit 15 is Invert,
bit 14 Bipolar and bits 13 to 10 the Transform; for the control, bit 9 is Invert, bit 8
Bipolar and bits 7 to 4 the Transform; bits 3 to 0 are the Output Transform. The transform numbers are in
Connections and units, with
the equations of section 1.6.5: invert flips the input before it is normalised
(input = MaxValue − input), and bipolar maps the input to −1 to +1.
Default and implied connections
A device applies the default connections of Tables 2 to 6 unless the articulation names the same source, control and destination; an unspecified connection takes the default value of the routing table. Connections that the architecture implies must not be written to the file; the rules list them. A Level 2 synthesiser needs 8,192 explicit connections available at once (section 1.3), not counting the defaults, and Level 1 needs 128 sets of articulation data.
The explorer’s Articulation tab lists every connection block of the file: where it is
(instrument, global or region), its chunk, source, control, destination, transform,
lScale and its meaning in the destination’s units, and notes whether it
sets one of the defaults of the tables, whether the specification says it is implied
and must not be written, and whether it is not a connection of the tables (allowed only
in a list guarded by a conditional chunk, section 1.4.2).