# Aradine User Manual

| Property | Value |
| --- | --- |
| CREATOR | Mark Raynsford |
| DATE | 2023-02-26T20:18:22+00:00 |
| DESCRIPTION | Documentation for the Aradine system. |
| IDENTIFIER | ded07ce8-21a9-4226-bfb8-261e7a1895f7 |
| LANGUAGE | en |
| RIGHTS | Public Domain |
| TITLE | Aradine User Manual |


## Table Of Contents

- [1. Introduction](#id_b7885f37-90fe-4a85-a9a7-5b7e63d1627f)
- [2. Design And Implementation](#id_7d03d742-9d75-4c69-b225-803d98735cc5)
  - [2.1. Overview](#d0e48)
  - [2.2. Design Principles](#id_880548f1-1861-4b96-bd83-7a6faf2d1b6f)
  - [2.3. Audio Model](#id_88bd6518-4ea9-461d-af88-229297ec652e)
  - [2.4. Instrument Model](#id_32acb7f3-e968-4cf3-a43c-c5a49d9dd505)
- [3. Command Line](#id_7735e443-cf6b-43da-913c-f8622f849458)
  - [3.1. Overview](#d0e1061)
  - [3.2. help](#id_7c9cb3b4-530c-344e-adf6-f1498d48245a)
  - [3.3. info](#id_d623cb93-197c-320a-96af-5261a85226c3)
  - [3.4. check](#id_b30f507f-8986-393f-b20c-209e1060aa03)
  - [3.5. codegen](#id_c92ba65f-29d1-39df-bbf5-d44bdb5dbe2f)
  - [3.6. install-instrument](#id_4019ef79-06ca-36b9-bbcc-1f044005bd9e)
  - [3.7. install-sample-map](#id_0c622d52-a7d1-3e56-bc9f-0ccff952f1c8)
  - [3.8. list-instruments](#id_1bce7fa6-4869-328a-b242-fc3b73899649)
  - [3.9. list-sample-maps](#id_c2369e6a-b1bf-30e5-b64a-5e77e4531bde)
  - [3.10. uninstall-instrument](#id_e14ef4ec-ce34-35d7-852d-904f324f6c74)
  - [3.11. uninstall-sample-map](#id_3122c626-5128-3e43-8ced-3a18e6f575a2)
  - [3.12. version](#id_7540264d-c0c3-34de-8eea-272ac16b1960)
- [4. DSP Modules](#id_dca26aba-d23f-4dce-8534-4b2a348732a3)
  - [4.1. com.io7m.aradine.envelope.table1](#id_ef185f17-270f-4582-8c19-e0e7feb12ea5)
  - [4.2. com.io7m.aradine.filter.biquad1](#id_1ef6f735-d732-4ce6-aca0-2c6d31a5ca39)
  - [4.3. com.io7m.aradine.filter.recursive1](#id_96246446-169f-4518-a162-442c4b9776c8)
  - [4.4. com.io7m.aradine.filter.statevar1](#id_8fdc11a6-3ec6-492d-af98-9b706b1611aa)
- [5. API](#d0e2996)
  - [5.1. JavaDoc](#d0e2998)


<a id="id_b7885f37-90fe-4a85-a9a7-5b7e63d1627f"/>

## 1. Introduction

The **aradine** package provides a modular system for digital signal processing with an emphasis on musical applications.

<a id="id_7d03d742-9d75-4c69-b225-803d98735cc5"/>

## 2. Design And Implementation

<a id="d0e48"/>

### 2.1. Overview

This section of the documentation describes the design and implementation of the **aradine** package.

<a id="id_880548f1-1861-4b96-bd83-7a6faf2d1b6f"/>

### 2.2. Design Principles

<a id="d0e59"/>

### 2.2.1. Overview

The **aradine** package is developed according to a set of strict design principles described in the following subsections.

<a id="id_8404813f-562e-43aa-95a0-3527b590a1f6"/>

### 2.2.2. Portability & Reproducibility

The **aradine** package is carefully designed to ensure long-term portability of the code and long-term reproducibility of the outputs of audio processing. The package is developed in a platform-independent manner. The intention is that [instruments](#id_32acb7f3-e968-4cf3-a43c-c5a49d9dd505) developed today will still be usable thirty years from now and will produce byte-for-byte identical output as the day they were written.

Existing music software (both commercial and open-source) simply cannot be relied upon to **reproduce** a session a year later. Opening a project file that one has not opened for a while will inevitably give different results because instruments and effects plugins will inevitably have been updated over time and will tend to have subtly different outputs. The **aradine** package treats this as the solved problem that it already is in software development: [Instruments](#id_32acb7f3-e968-4cf3-a43c-c5a49d9dd505) are strictly versioned and are identified by the same coordinates under which they are published to a repository such as [Maven Central](http://central.sonatype.com). An [ensemble](#id_32acb7f3-e968-4cf3-a43c-c5a49d9dd505) records the exact identifier and version of every instrument in it. Rebuilding an environment simply means telling **aradine** to download and install the exact instruments that were used in a given ensemble. Because instruments are portable platform-independent bytecode, users can freely migrate between different operating systems and different hardware architectures and be confident that they will get the exact same results everywhere. The scourge of commercial music vendors dropping support for "obsolete" systems is entirely eliminated; no more "I can't open this music project anymore because I don't have the computer it was created on anymore and none of the plugins work on the new system".

<a id="id_10f53ed9-97b9-4a27-a1d6-3a039cff8bb0"/>

### 2.2.3. Stability

Music software is perpetually unstable. To prevent this, the **aradine** package is written in a memory-safe and type-safe language, and it must not crash, ever.

User data ([ensembles](#id_32acb7f3-e968-4cf3-a43c-c5a49d9dd505)) are backed by reliable SQLite databases that store a full version history of all changes. The **aradine** package must never lose the user's data, ever.

<a id="id_f2e0b30c-7c1e-44a9-a585-bf3a01599c80"/>

### 2.2.4. Declarative, Host-Rendered UI

Current music software tends to be tied to poorly-written GUI libraries such as JUCE with each synthesizer plugin bundling an entire GUI library into its code. The bundled GUI libraries inevitably become subtly incompatible with the host system over time, causing crashes.

In contrast, an **aradine** [instrument](#id_32acb7f3-e968-4cf3-a43c-c5a49d9dd505) supplies a simple declarative data structure that describes what it would like its user interface to look like, and the **aradine** **host** handles rendering of the UI. **Instruments** carry no GUI code.

<a id="id_817b63af-b3e4-48e0-b1b4-e3485a70bf5e"/>

### 2.2.5. Extensive And Precise Documentation

The documentation is extensive and precise, and covers, at minimum:

<a id="d0e147"/>

#### 2.2.5.2. Minimum Coverage

- API semantics.
- [Instrument](#id_32acb7f3-e968-4cf3-a43c-c5a49d9dd505) DSP behaviour.
- File and data formats.
- The versioning and compatibility guarantees.


The standard of precision is that behaviour is fully specified such that independent implementations would agree.

<a id="id_7bff98a9-bfde-45bb-ae0c-a1acbdf1daa9"/>

### 2.2.6. Extensive Testing & Validation

There is extensive testing to ensure that semantics do not drift over time. The test suite is the enforcement mechanism for the compatibility guarantees of the [portability](#id_8404813f-562e-43aa-95a0-3527b590a1f6) principle.

[Instrument](#id_32acb7f3-e968-4cf3-a43c-c5a49d9dd505) module metadata is validated at load time. Sample data is not code: it is a defined binary format, managed by the **inventory**, and referenced by ID.

<a id="id_120dcd05-131b-48ee-9b86-36978c0bd404"/>

### 2.2.7. Determinism & Self-Containment

An [instrument](#id_32acb7f3-e968-4cf3-a43c-c5a49d9dd505) is given no obvious route to any source of nondeterminism. Randomness is only available through the SPI's deterministic RNG, whose algorithm is published and not allowed to change in new versions of the software. Time is only reachable through the **instrument context** (in frames and milliseconds), never through the wall clock. This is the mechanism that makes the byte-for-byte identity guarantee of the [portability](#id_8404813f-562e-43aa-95a0-3527b590a1f6) principle achievable.

The **instrument context** exposes: [event buffers](#id_cbf22334-3431-4198-9895-53ba40dc8110), [parameters](#id_df1ddaf5-9c8e-4c82-8c51-b1f10bf6db13), [ports](#id_44cff131-9097-4843-a753-9171bc5188da), **sample maps**, deterministic RNG, and time. [Instruments](#id_32acb7f3-e968-4cf3-a43c-c5a49d9dd505) do not access the filesystem, the network, the environment, and do not use reflection.

<a id="id_e2f894de-648a-4d1a-95fd-2d9026531d8e"/>

### 2.2.8. Fault Isolation

Each [instrument](#id_32acb7f3-e968-4cf3-a43c-c5a49d9dd505) is executed as a separate task with a timeout; a misbehaving **instrument** cannot hang or kill the audio loop. This is the enforcement of the [stability](#id_10f53ed9-97b9-4a27-a1d6-3a039cff8bb0) principle at the **instrument** boundary.

<a id="id_88bd6518-4ea9-461d-af88-229297ec652e"/>

### 2.3. Audio Model

<a id="d0e244"/>

### 2.3.1. Overview

The **aradine** package works in terms of a standard **discretized sampled audio** model. Informally, the system generates a **buffer** of audio [samples](#id_d3aa3565-be3e-40cc-9831-b02b39179cd7) at a fixed [rate](#id_48cd9d12-46d1-43d4-8833-e0e2e07068d5) determined by the underlying audio hardware.

<a id="id_b907d714-e5a9-44b0-b71f-3603ce4a6b9b"/>

### 2.3.2. Continuous Signals

A **continuous signal** in the **time domain** can be considered as a function from **time** to **amplitude**. At any given time **t**, we can evaluate a continuous time domain signal **A(t)** to obtain the **amplitude** of the signal **A** at time **t**.

<a id="d0e298"/>

#### 2.3.2.2. Continuous Signal Example

![A continuous signal.](continuous.png)

<a id="id_74037c75-4cc1-42e7-82ad-3832ecbe5093"/>

### 2.3.3. Discrete Signals

A **discrete signal** can be considered as a **discretized** form of a [continuous](#id_b907d714-e5a9-44b0-b71f-3603ce4a6b9b) signal. In digital audio systems, in modern computing environments, both **time** and **amplitude** are treated as discrete values. Time is discretized by dividing it into a fixed [sample rate](#id_48cd9d12-46d1-43d4-8833-e0e2e07068d5) (typically specified in **samples per second**). Amplitude values are discretized by expressing them as either machine integer values of a chosen size, or floating-point values of a chosen size. The **aradine** package expresses amplitude values as 64-bit IEEE754 floating point values.

As an example, a continuous signal **A** could be discretized as the discrete signal **Q** as follows:

<a id="d0e344"/>

#### 2.3.3.3. Discrete Signal Example

![A discreate signal.](pcm.png)

<a id="id_d3aa3565-be3e-40cc-9831-b02b39179cd7"/>

### 2.3.4. Sample

A **sample** is a single amplitude value in a [discrete signal](#id_74037c75-4cc1-42e7-82ad-3832ecbe5093).

<a id="id_48cd9d12-46d1-43d4-8833-e0e2e07068d5"/>

### 2.3.5. Sample Rate

The **sample rate** of a discrete signal is the number of [samples](#id_d3aa3565-be3e-40cc-9831-b02b39179cd7) that comprise one second of the signal. The unit of measurement is **hertz (hz)**.

At the time of writing, most consumer audio hardware works in terms of a **48000 hz** sample rate.

<a id="id_57ea8c41-af4a-41d0-a801-3c06c3b60664"/>

### 2.3.6. Sample Period

The **sample period** of a discrete signal is the length of time represented by one sample in the signal. This is a function of the [sample rate](#id_48cd9d12-46d1-43d4-8833-e0e2e07068d5) of the signal. In a signal with sample rate **r**, the sample period **p** of the signal is **p = 1 / r**.

For example, in a signal that has a **48000 hz** sample rate, the sample period is **1 / 48000 ≈ 0.00002083 seconds ≈ 20.83 microseconds**.

<a id="id_f9ed1ec0-27d0-4472-aa7a-825c7759f85e"/>

### 2.3.7. Buffer

The physical realities of digital audio hardware and software mean that audio signals are not typically produced one-sample-at-a-time. There are many different limitations at all parts of the hardware and software stack that ultimately mean that it is more efficient to produce a **buffer** of samples **less** frequently, than a single sample **more** frequently. At a configurable (but constant) rate, the audio hardware and software will request a buffer of samples from applications. The **buffer size** specifies the number of samples that must be produced in a single request, and is typically configurable (although most hardware will have a minimum buffer size that it can handle).

The **buffer duration** of a buffer is simply the number of samples in the buffer multiplied by the [sample period](#id_57ea8c41-af4a-41d0-a801-3c06c3b60664) of the samples.

Buffering increases **latency** in the system. If an audio system is configured such that the **buffer duration** equals **10 milliseconds**, then each time the system requests a buffer of samples, the system is essentially saying "Produce the most recent 10 milliseconds of audio for playback right now". This means that a listener is necessarily going to hear the audio 10 milliseconds later than the events that actually produced it. There is, therefore, a tension between specifying a **larger** buffer size in order to reduce the hardware and software overhead of producing the audio, and specifying a **smaller** buffer size in order to reduce the effective latency of the system.

For example, in a system with sample duration **P** and a buffer duration **B**, at **Time = 8**, the listener is going to hear the contents of the sample buffer **SB0**, even though the first sample in that buffer occurred at **Time = 0**:

<a id="d0e477"/>

#### 2.3.7.5. Buffered Audio

![Buffered audio.](sampled_audio.png)

At the time of writing, on most consumer and professional hardware, typical buffer sizes are in the **64-512** range. This implies a typical latency of around **2** milliseconds, which is mostly below the threshold of human perception.

<a id="id_d0612b03-634f-4ac3-9b73-8154ee0304ec"/>

### 2.3.8. Frame Index

A **frame index** is an integer index that refers to a set of samples across a set of [buffers](#id_f9ed1ec0-27d0-4472-aa7a-825c7759f85e). A **frame index** is a non-negative **relative** index, with a value of **0** referring to the first sample in a buffer.

As an example, assume a buffer size of **8**, and three signals **S0**, **S1**, and **S2**. At **Time = 16**, a frame index of **4** refers to the sample values in the buffers at **Time = 20**:

<a id="id_07b75ca6-e791-4921-b2d1-0ad25b8287c1"/>

#### 2.3.8.3. Frame Index

![Frame indices.](frame.png)

The term **frame** comes from the general term **sampling frame** in DSP. In other systems, audio signals are often divided into multiple **channels**. For example, stereo audio is divided into **left** and **right** channels. In an audio signal with **n** channels, the individual sample values in each of the channels at a given time are collectively referred to as a **sampling frame** (or **frame**, in short). For example, in a stereo audio signal **A**, the sample value **x** in the left channel at time **0**, and the sample value **y** in the right channel at time **0** can be viewed as the frame **(x, y)** at time **0**. Conceptually, the audio signal **A** can be seen as a function **A(t) = (p, q)**, where **t** is time, and **(p, q)** is the sampling frame at time **t**. The **aradine** package only works with audio signals that have a single channel, but re-uses the term **frame** to refer to samples across coincident audio buffers.

<a id="id_72f0502f-c887-4d03-ae6b-b49b97834204"/>

### 2.3.9. Buffer Underrun

Much of the practical aspect of digital signal processing is concerned with avoiding **buffer underrun**. This occurs when the operations required to produce a buffer of samples take longer to execute than the **buffer duration**. Essentially, the system has asked for a buffer of samples, but it has taken the application code longer than this duration to actually produce the buffer. Therefore, the buffer of samples is not ready in time and the audio system has nothing to play! This manifests as audible glitches in the audio output.

<a id="id_c8c09eff-b3a6-48df-a326-dbbb4917e4c9"/>

### 2.3.10. Audio Callback

In the **aradine** package, the underlying audio system periodically requests that a [buffer](#id_f9ed1ec0-27d0-4472-aa7a-825c7759f85e) of samples be produced for each audio output in the system. We refer to this request as the **audio callback**. More precisely, we say that the underlying audio system periodically calls the **aradine** **audio callback**, and the code in the **aradine** package referenced by the callback performs all of the required processing and then writes out the resulting buffer of samples.

<a id="id_54147355-7aa9-4581-89c2-3b13e999ff98"/>

### 2.3.11. Processing Cycle

A **processing cycle** is the bounded period of processing that occurs in response to a single [audio callback](#id_c8c09eff-b3a6-48df-a326-dbbb4917e4c9). During one processing cycle, the **aradine** graph is run exactly once, and each instrument in the graph consumes and produces one [buffer](#id_f9ed1ec0-27d0-4472-aa7a-825c7759f85e) of [samples](#id_d3aa3565-be3e-40cc-9831-b02b39179cd7), and, where applicable, a buffer of events.

The [buffer](#id_f9ed1ec0-27d0-4472-aa7a-825c7759f85e) is the data produced during a processing cycle, the [audio callback](#id_c8c09eff-b3a6-48df-a326-dbbb4917e4c9) is the request that begins it, and the **processing cycle** is the interval in which the processing to produce that buffer is performed. One processing cycle occurs per audio callback, and its length is bounded by the [buffer duration](#id_f9ed1ec0-27d0-4472-aa7a-825c7759f85e); if the processing in a cycle exceeds the buffer duration, a [buffer underrun](#id_72f0502f-c887-4d03-ae6b-b49b97834204) occurs.

<a id="id_32acb7f3-e968-4cf3-a43c-c5a49d9dd505"/>

### 2.4. Instrument Model

<a id="d0e697"/>

### 2.4.1. Overview

The **aradine** package collects DSP code into **instruments**, and **instruments** can be connected together arbitrarily to form an **ensemble**.

Within an **ensemble**, the [ports](#id_44cff131-9097-4843-a753-9171bc5188da) of the instruments are connected together to form a graph. A **target** port may be connected to at most one **source** port at any given time. An **source** port may be connected to zero or more **target** ports at any given time. The [types](#id_7f823646-248a-473a-a3a8-8cd078d6c3e2) of ports must match; it is not permitted to try to connect a port of an **audio** type to a port of a **note** type, for example.

<a id="id_44cff131-9097-4843-a753-9171bc5188da"/>

### 2.4.2. Ports

Instruments have zero or more **ports**. A **port** may either be a **source** port or a **target** port. A **target** port **consumes** data, while a **source** port **produces** data.

<a id="id_7f823646-248a-473a-a3a8-8cd078d6c3e2"/>

Ports have a **type**. Currently, ports may have either an **audio** type or a **note** type.

A **target** port **I** of an **audio** type will, at [audio callback](#id_c8c09eff-b3a6-48df-a326-dbbb4917e4c9) time, consume a buffer of audio samples that was produced by whatever **source** port **O** is connected to **I**. If no **source** port is connected to **I**, then **I** will be presented with a buffer of audio samples where every sample value is equal to **0.0**.

A **target** port **I** of a **note** type will, at [audio callback](#id_c8c09eff-b3a6-48df-a326-dbbb4917e4c9) time, consume a buffer of [note events](#id_8e3ae382-497c-4312-aa5f-ebed6fb18c80) that was produced by whatever **source** port **O** is connected to **I**. If no **source** port is connected to **I**, then **I** will be presented with an empty buffer.

A **source** port **O** of a **audio** type will, at [audio callback](#id_c8c09eff-b3a6-48df-a326-dbbb4917e4c9) time, produce a buffer of audio samples that is then consumed by each of the target ports connected to **O**.

A **source** port **O** of a **note** type will, at [audio callback](#id_c8c09eff-b3a6-48df-a326-dbbb4917e4c9) time, produce a buffer of [note events](#id_8e3ae382-497c-4312-aa5f-ebed6fb18c80) that is then consumed by each of the target ports connected to **O**.

<a id="id_cbf22334-3431-4198-9895-53ba40dc8110"/>

### 2.4.3. Events

An **event** is a discrete, typed, timestamped value delivered to an instrument.

An event may be one of the following base types:

<a id="id_516ac342-da88-4cb1-8501-819466ac2f39"/>

#### 2.4.3.3. Event Base Types

- A **note** event type.
- A **configuration** event type.


<a id="id_8e3ae382-497c-4312-aa5f-ebed6fb18c80"/>

A **note**-typed event may be one of the following types:

<a id="id_06ca3255-9fc2-416c-a3f0-9dfbec70a295"/>

#### 2.4.3.5. Note Event Types

- A **note-on** event type. This event type is published when the user presses a key on a musical keyboard.
- A **note-off** event type. This event type is published when the user releases a key on a musical keyboard.
- A **pitch-bend** event type. This event type is published when the user touches the pitch bend control on a musical keyboard.


A **configuration**-typed event may be one of the following types:

<a id="id_78d92efb-2e45-4321-879c-01f62ed8639f"/>

#### 2.4.3.7. Configuration Event Types

- A **buffer-size-changed** event type. This event type is published when the underlying audio system is reconfigured to use a different [buffer size](#id_f9ed1ec0-27d0-4472-aa7a-825c7759f85e).
- A **sample-rate-changed** event type. This event type is published when the underlying audio system is reconfigured to use a different [sample rate](#id_48cd9d12-46d1-43d4-8833-e0e2e07068d5).
- A **parameter-changed** event type. This event type is published when the value of a [parameter](#id_df1ddaf5-9c8e-4c82-8c51-b1f10bf6db13) is changed on an instrument.


Events are typically delivered to instruments via an **event buffer**. An **event buffer** is an opaque buffer type that, given a [frame index](#id_07b75ca6-e791-4921-b2d1-0ad25b8287c1), returns all events that occurred at that frame index.

<a id="id_df1ddaf5-9c8e-4c82-8c51-b1f10bf6db13"/>

### 2.4.4. Parameters

Instruments have zero or more **parameters**. A **parameter** is effectively a named and typed mutable variable, the value of which can be read and/or modified (atomically) at any time. Parameters have unique (within an instrument) integer **identifiers**, and humanly-readable string **labels**. Additionally, parameters that are of numeric types are declared with **minimum** and **maximum** value range constraints. All parameters also have defined **default** values.

A parameter may be of one of the following types:

<a id="id_9b8ff7ef-c1d4-4618-b5c2-fd843a05b837"/>

#### 2.4.4.3. Parameter Types

- 64-bit integer.
- 64-bit floating point.
- Sample map.


<a id="id_7735e443-cf6b-43da-913c-f8622f849458"/>

## 3. Command Line

<a id="d0e1061"/>

## 3.1. Overview

The **aradine** package provides a command-line interface for performing tasks such as managing the local inventory, checking instrument files, and etc. The base **aradine-cli** command is broken into a number of subcommands which are documented over the following sections.

<a id="d0e1072"/>

#### 3.1.2. Command-Line Overview

```
aradine-cli: usage: aradine-cli [command] [arguments ...]

  Modular programmable synthesis (Command-line).

  Use the "help" command to examine specific commands:

    $ aradine-cli help help.

  Command-line arguments can be placed one per line into a file, and
  the file can be referenced using the @ symbol:

    $ echo help > file.txt
    $ echo help >> file.txt
    $ aradine-cli @file.txt

  Commands:
    help          Show usage information for a command.
    info          Display system information.
    instrument    Instrument commands.
    inventory     Inventory commands.
    version       Show the application version.

  Documentation:
    https://www.io7m.com/software/aradine
```


All subcommands accept a **--verbose** parameter that may be set to one of **trace**, **debug**, **info**, **warn**, or **error**. This parameter sets the lower bound for the severity of messages that will be logged. For example, at **debug** verbosity, only messages of severity **debug** and above will be logged. Setting the verbosity to **trace** level effectively causes everything to be logged, and will produce large volumes of debugging output.

<a id="id_af94bb25-2f6c-4fef-ae9f-3f40a9216121"/>

The **aradine-cli** command-line tool uses [quarrel](https://www.io7m.com/software/quarrel/) to parse command-line arguments, and therefore supports placing command-line arguments into a file, one argument per line, and then referencing that file with **@**. For example:

<a id="d0e1120"/>

#### 3.1.5. @ Syntax

```
$ aradine-cli instrument check --file sampler.jar
{
  "Message" : "Instrument passed all checks.",
  "Level" : "INFO"
}

$ (cat <<EOF
instrument
check
--file
sampler.jar
EOF
) > args.txt

$ aradine-cli @args.txt
{
  "Message" : "Instrument passed all checks.",
  "Level" : "INFO"
}
```


All subcommands, unless otherwise specified, yield an exit code of **0** on success, and a non-zero exit code on failure.

<a id="id_7c9cb3b4-530c-344e-adf6-f1498d48245a"/>

## 3.2. help

<a id="d0e1135"/>

### 3.2.1. Name

**help** - Show usage information for a command.

<a id="d0e1143"/>

### 3.2.2. Description

The **help** command shows the help for a given command.

<a id="d0e1152"/>

### 3.2.3. Examples

<a id="d0e1154"/>

#### 3.2.3.1. Example

```
$ aradine-cli help instrument check
aradine-cli: usage: check [named-arguments ...]

  Check an instrument file.

  Named parameters:
  * --file
      Description       : The instrument jar file.
      Type              : Path
      Cardinality       : [1]; Specify exactly once.
      Syntax            : <platform-specific path syntax>
    --verbose
      Description       : Set the logging level of the application.
      Type              : QLogLevel
      Cardinality       : [1]; Specify exactly once, or use the default.
      Default value     : info
      Syntax            : trace|debug|info|warn|error

  The command does not accept any positional arguments.
```


<a id="id_d623cb93-197c-320a-96af-5261a85226c3"/>

## 3.3. info

<a id="d0e1163"/>

### 3.3.1. Name

**info** - Display system information.

<a id="d0e1171"/>

### 3.3.2. Description

The **info** command displays information about the current system.

<a id="d0e1180"/>

### 3.3.3. Parameters

<a id="id_d59df12b-7489-36b7-990f-8b8efff47384"/>

#### 3.3.3.1. --verbose

| Attribute | Value |
| --- | --- |
| Name | **--verbose** |
 | Type | **com.io7m.quarrel.ext.logback.QLogLevel** |
 | Default Value | **info** |
 | Cardinality | **[1, 1]** |
 | Description | Set the logging level of the application. |


<a id="d0e1240"/>

### 3.3.4. Examples

<a id="d0e1242"/>

#### 3.3.4.1. Example

```
{
  "CacheDirectory" : "/opt/aradine/com.io7m.aradine/cache",
  "ConfigurationDirectory" : "/opt/aradine/com.io7m.aradine/config",
  "DataDirectory" : "/opt/aradine/com.io7m.aradine/data",
  "InventoryDatabase" : "/opt/aradine/com.io7m.aradine/data/inventory/inventory.db",
  "InventoryBlobDirectory" : "/opt/aradine/com.io7m.aradine/data/inventory/blobs"
}
```


<a id="id_b30f507f-8986-393f-b20c-209e1060aa03"/>

## 3.4. check

<a id="d0e1251"/>

### 3.4.1. Name

**check** - Check an instrument file.

<a id="d0e1259"/>

### 3.4.2. Description

The **check** command checks a given instrument file for validity.

<a id="d0e1268"/>

### 3.4.3. Parameters

<a id="id_41c4018d-dc34-3b6b-975d-800d8a7cada6"/>

#### 3.4.3.1. --file

| Attribute | Value |
| --- | --- |
| Name | **--file** |
 | Type | **java.nio.file.Path** |
 | Default Value | **** |
 | Cardinality | **[1, 1]** |
 | Description | The instrument jar file. |


<a id="id_fd4fbdca-eeeb-3c1d-ab67-eceabefec2c5"/>

#### 3.4.3.2. --verbose

| Attribute | Value |
| --- | --- |
| Name | **--verbose** |
 | Type | **com.io7m.quarrel.ext.logback.QLogLevel** |
 | Default Value | **info** |
 | Cardinality | **[1, 1]** |
 | Description | Set the logging level of the application. |


<a id="d0e1384"/>

### 3.4.4. Examples

<a id="d0e1386"/>

#### 3.4.4.1. Example

```
$ aradine-cli instrument check --file sampler.jar
{
  "Message" : "Instrument passed all checks.",
  "Level" : "INFO"
}
```


<a id="id_c92ba65f-29d1-39df-bbf5-d44bdb5dbe2f"/>

## 3.5. codegen

<a id="d0e1395"/>

### 3.5.1. Name

**codegen** - Generate code for an instrument file.

<a id="d0e1403"/>

### 3.5.2. Description

The **codegen** command generates code from an instrument description.

<a id="d0e1412"/>

### 3.5.3. Parameters

<a id="id_0ffa90c6-8739-34c7-a78e-51c491707962"/>

#### 3.5.3.1. --file

| Attribute | Value |
| --- | --- |
| Name | **--file** |
 | Type | **java.nio.file.Path** |
 | Default Value | **** |
 | Cardinality | **[1, 1]** |
 | Description | The instrument description file. |


<a id="id_2c1c3f5c-cdf9-3eb4-a06a-e997d22677ad"/>

#### 3.5.3.2. --output-resource-directory

| Attribute | Value |
| --- | --- |
| Name | **--output-resource-directory** |
 | Type | **java.nio.file.Path** |
 | Default Value | **** |
 | Cardinality | **[1, 1]** |
 | Description | The output resource directory. |


<a id="id_d2b1e55a-85af-3b55-9bd8-c286016f23f6"/>

#### 3.5.3.3. --output-source-directory

| Attribute | Value |
| --- | --- |
| Name | **--output-source-directory** |
 | Type | **java.nio.file.Path** |
 | Default Value | **** |
 | Cardinality | **[1, 1]** |
 | Description | The output Java source directory. |


<a id="id_c7d45b5c-0fe8-3e81-a232-416d5a0cf372"/>

#### 3.5.3.4. --package-name

| Attribute | Value |
| --- | --- |
| Name | **--package-name** |
 | Type | **com.io7m.lanark.core.RDottedName** |
 | Default Value | **** |
 | Cardinality | **[1, 1]** |
 | Description | The Java package name. |


<a id="id_230969b2-6730-383f-86d5-30047a3f7606"/>

#### 3.5.3.5. --verbose

| Attribute | Value |
| --- | --- |
| Name | **--verbose** |
 | Type | **com.io7m.quarrel.ext.logback.QLogLevel** |
 | Default Value | **info** |
 | Cardinality | **[1, 1]** |
 | Description | Set the logging level of the application. |


<a id="d0e1696"/>

### 3.5.4. Examples

<a id="d0e1698"/>

#### 3.5.4.1. Example

```
$ aradine-cli instrument codegen \
--package-name com.io7m.example
--output-source-directory src
--output-resource-directory res
--file sampler.json

{
  "Message" : "Generated class: src/com/io7m/example/Parameters.java",
  "Level" : "INFO"
}
{
  "Message" : "Generated class: src/com/io7m/example/Ports.java",
  "Level" : "INFO"
}
{
  "Message" : "Generated instrument file: res/com/io7m/example/instrument.json",
  "Level" : "INFO"
}
```


<a id="id_4019ef79-06ca-36b9-bbcc-1f044005bd9e"/>

## 3.6. install-instrument

<a id="d0e1708"/>

### 3.6.1. Name

**install-instrument** - Install instruments into the local inventory.

<a id="d0e1716"/>

### 3.6.2. Description

The **install-instrument** command installs an instrument into the local inventory.

<a id="d0e1725"/>

### 3.6.3. Parameters

<a id="id_03e0540d-3a96-3f46-9aff-f19a1e09a3e1"/>

#### 3.6.3.1. --file

| Attribute | Value |
| --- | --- |
| Name | **--file** |
 | Type | **java.nio.file.Path** |
 | Default Value | **** |
 | Cardinality | **[1, 1]** |
 | Description | The instrument jar file. |


<a id="id_e8ac834c-34ee-314e-b361-949fdb27423c"/>

#### 3.6.3.2. --verbose

| Attribute | Value |
| --- | --- |
| Name | **--verbose** |
 | Type | **com.io7m.quarrel.ext.logback.QLogLevel** |
 | Default Value | **info** |
 | Cardinality | **[1, 1]** |
 | Description | Set the logging level of the application. |


<a id="d0e1841"/>

### 3.6.4. Examples

<a id="d0e1843"/>

#### 3.6.4.1. Example

```
$ aradine-cli inventory install-instrument --file sampler.jar
```


<a id="id_0c622d52-a7d1-3e56-bc9f-0ccff952f1c8"/>

## 3.7. install-sample-map

<a id="d0e1852"/>

### 3.7.1. Name

**install-sample-map** - Install sample maps into the local inventory.

<a id="d0e1860"/>

### 3.7.2. Description

The **install-sample-map** command installs a sample map into the local inventory.

<a id="d0e1869"/>

### 3.7.3. Parameters

<a id="id_02c6f2f9-4363-3ecb-908b-da6d5cbf6952"/>

#### 3.7.3.1. --file

| Attribute | Value |
| --- | --- |
| Name | **--file** |
 | Type | **java.nio.file.Path** |
 | Default Value | **** |
 | Cardinality | **[1, 1]** |
 | Description | The sample map file. |


<a id="id_32d0a946-8183-3d34-9db2-42b29d3310c5"/>

#### 3.7.3.2. --verbose

| Attribute | Value |
| --- | --- |
| Name | **--verbose** |
 | Type | **com.io7m.quarrel.ext.logback.QLogLevel** |
 | Default Value | **info** |
 | Cardinality | **[1, 1]** |
 | Description | Set the logging level of the application. |


<a id="d0e1985"/>

### 3.7.4. Examples

<a id="d0e1987"/>

#### 3.7.4.1. Example

```
$ aradine-cli inventory install-sample-map --file drums.aam
```


<a id="id_1bce7fa6-4869-328a-b242-fc3b73899649"/>

## 3.8. list-instruments

<a id="d0e1996"/>

### 3.8.1. Name

**list-instruments** - List instruments in the local inventory.

<a id="d0e2004"/>

### 3.8.2. Description

The **list-instruments** command lists instruments installed in the local inventory.

<a id="d0e2013"/>

### 3.8.3. Parameters

<a id="id_080d3944-5e00-38de-bcfe-63b5e87a48d5"/>

#### 3.8.3.1. --verbose

| Attribute | Value |
| --- | --- |
| Name | **--verbose** |
 | Type | **com.io7m.quarrel.ext.logback.QLogLevel** |
 | Default Value | **info** |
 | Cardinality | **[1, 1]** |
 | Description | Set the logging level of the application. |


<a id="d0e2073"/>

### 3.8.4. Examples

<a id="d0e2075"/>

#### 3.8.4.1. Example

```
$ aradine-cli inventory list-instruments
[ {
  "Type" : "Instrument",
  "Group" : "com.io7m.aradine",
  "Name" : "com.io7m.aradine.instrument.sampler_m0",
  "Version" : "0.0.2",
  "Identifier" : "com.io7m.aradine:com.io7m.aradine.instrument.sampler_m0:0.0.2",
  "Title" : "Sampler M0",
  "Description" : "The simplest monophonic sampler."
} ]
```


<a id="id_c2369e6a-b1bf-30e5-b64a-5e77e4531bde"/>

## 3.9. list-sample-maps

<a id="d0e2084"/>

### 3.9.1. Name

**list-sample-maps** - List sample maps in the local inventory.

<a id="d0e2092"/>

### 3.9.2. Description

The **list-sample-maps** command lists sample maps installed in the local inventory.

<a id="d0e2101"/>

### 3.9.3. Parameters

<a id="id_395e45bb-8c35-3df1-9b58-eb236d6de6c2"/>

#### 3.9.3.1. --verbose

| Attribute | Value |
| --- | --- |
| Name | **--verbose** |
 | Type | **com.io7m.quarrel.ext.logback.QLogLevel** |
 | Default Value | **info** |
 | Cardinality | **[1, 1]** |
 | Description | Set the logging level of the application. |


<a id="d0e2161"/>

### 3.9.4. Examples

<a id="d0e2163"/>

#### 3.9.4.1. Example

```
$ aradine-cli inventory list-sample-maps
[ {
  "Type" : "SampleMap",
  "Group" : "com.io7m.example_group",
  "Name" : "com.io7m.example",
  "Version" : "1.0.0",
  "Identifier" : "com.io7m.example_group:com.io7m.example:1.0.0",
  "Title" : "",
  "Description" : "",
  "MIMEType" : "application/vnd.com.io7m.aurantium.sample_map",
  "Size" : "7139504"
} ]
```


<a id="id_e14ef4ec-ce34-35d7-852d-904f324f6c74"/>

## 3.10. uninstall-instrument

<a id="d0e2172"/>

### 3.10.1. Name

**uninstall-instrument** - Uninstall instruments from the local inventory.

<a id="d0e2180"/>

### 3.10.2. Description

The **uninstall-instrument** command uninstalls an instrument from the local inventory.

<a id="d0e2189"/>

### 3.10.3. Parameters

<a id="id_145c0162-2249-3af1-9a16-a49bf76243cd"/>

#### 3.10.3.1. --id

| Attribute | Value |
| --- | --- |
| Name | **--id** |
 | Type | **com.io7m.aradine.api.instrument.ARInstrumentID** |
 | Default Value | **** |
 | Cardinality | **[1, 1]** |
 | Description | The instrument identifier. |


<a id="id_10f2c41e-2f3c-3d6e-b031-619aa4ee4ab4"/>

#### 3.10.3.2. --verbose

| Attribute | Value |
| --- | --- |
| Name | **--verbose** |
 | Type | **com.io7m.quarrel.ext.logback.QLogLevel** |
 | Default Value | **info** |
 | Cardinality | **[1, 1]** |
 | Description | Set the logging level of the application. |


<a id="d0e2305"/>

### 3.10.4. Examples

<a id="d0e2307"/>

#### 3.10.4.1. Example

```
$ aradine-cli inventory uninstall-instrument --id com.io7m.aradine:com.io7m.aradine.instrument.sampler_m0:0.0.2
```


<a id="id_3122c626-5128-3e43-8ced-3a18e6f575a2"/>

## 3.11. uninstall-sample-map

<a id="d0e2316"/>

### 3.11.1. Name

**uninstall-sample-map** - Uninstall sample maps from the local inventory.

<a id="d0e2324"/>

### 3.11.2. Description

The **uninstall-sample-map** command uninstalls a sample map from the local inventory.

<a id="d0e2333"/>

### 3.11.3. Parameters

<a id="id_7ff1b0fa-0d3c-3629-8226-ae7d6f90d3cb"/>

#### 3.11.3.1. --id

| Attribute | Value |
| --- | --- |
| Name | **--id** |
 | Type | **com.io7m.aradine.api.sample_map.ARSampleMapID** |
 | Default Value | **** |
 | Cardinality | **[1, 1]** |
 | Description | The sample map identifier. |


<a id="id_5188dfa1-653d-3340-985c-4f1bdf78dbc5"/>

#### 3.11.3.2. --verbose

| Attribute | Value |
| --- | --- |
| Name | **--verbose** |
 | Type | **com.io7m.quarrel.ext.logback.QLogLevel** |
 | Default Value | **info** |
 | Cardinality | **[1, 1]** |
 | Description | Set the logging level of the application. |


<a id="d0e2449"/>

### 3.11.4. Examples

<a id="d0e2451"/>

#### 3.11.4.1. Example

```
$ aradine-cli inventory uninstall-sample-map --id com.io7m.example_group:com.io7m.example:1.0.0
```


<a id="id_7540264d-c0c3-34de-8eea-272ac16b1960"/>

## 3.12. version

<a id="d0e2461"/>

### 3.12.1. Name

**version** - Show the application version.

<a id="d0e2469"/>

### 3.12.2. Description

The **version** command shows the application version.

<a id="d0e2478"/>

### 3.12.3. Examples

<a id="d0e2480"/>

#### 3.12.3.1. Example

```
$ aradine-cli version
com.io7m.aradine.cmdline 0.0.2-SNAPSHOT 776ce9dc06476debd406813b753e27d8b64b0754
```


<a id="id_dca26aba-d23f-4dce-8534-4b2a348732a3"/>

## 4. DSP Modules

<a id="id_ef185f17-270f-4582-8c19-e0e7feb12ea5"/>

## 4.1. com.io7m.aradine.envelope.table1

<a id="d0e2492"/>

### 4.1.1. Overview

The **com.io7m.aradine.envelope.table1** module contains a table-based envelope implementation.

<a id="d0e2501"/>

### 4.1.2. Interpolation

<a id="d0e2503"/>

### 4.1.2.1. Overview

The envelope supports a number of different interpolation functions to produce amplitude values between breakpoints. For a hypothetical breakpoint **B** at frame **frame(B)** with amplitude **amplitude(B)**, and a hypothetical breakpoint **C** at frame **frame(C)** with amplitude **amplitude(C)**, where **frame(B) < frame(C)**, the interpolation function specified for **B** is used to produce interpolated amplitude values for all frames greater than **frame(B)** and less than **frame(C)**.

The definitions below are explained in terms of a pair of breakpoints **B** and **C** where **frame(B) = 0**, **amplitude(B) = 0**, **frame(C) = 1000**, and **amplitude(C) = 1**.

<a id="id_7563b504-6ee0-46f2-894e-78c23cc4a6cc"/>

### 4.1.2.2. CONSTANT_CURRENT

If a breakpoint **B** uses the interpolation function **CONSTANT_CURRENT**, then all frames between **B** and **C** will have an amplitude equal to **amplitude(B)**.

<a id="d0e2582"/>

#### 4.1.2.2.2. CONSTANT_CURRENT Graph

![CONSTANT_CURRENT Graph](chart_constant_current.png)

<a id="id_8f14a7b8-3afe-45ba-bbdd-30d18d2f3d00"/>

### 4.1.2.3. CONSTANT_NEXT

If a breakpoint **B** uses the interpolation function **CONSTANT_NEXT**, then all frames between **B** and **C** will have an amplitude equal to **amplitude(C)**.

<a id="d0e2609"/>

#### 4.1.2.3.2. CONSTANT_NEXT Graph

![CONSTANT_NEXT Graph](chart_constant_next.png)

<a id="id_78d750f0-5e5b-4d3f-b79b-2e52c3e371f0"/>

### 4.1.2.4. COSINE

If a breakpoint **B** uses the interpolation function **COSINE**, then all frames between **B** and **C** will have amplitudes produced by a cosine interpolation of **amplitude(B)** and **amplitude(C)**.

<a id="d0e2640"/>

#### 4.1.2.4.2. COSINE Graph

![COSINE Graph](chart_cosine.png)

<a id="id_a2e975c9-b43c-4ac2-9e9f-276cdc45af4a"/>

### 4.1.2.5. EXPONENTIAL

If a breakpoint **B** uses the interpolation function **EXPONENTIAL**, then all frames between **B** and **C** will have amplitudes produced by an exponential interpolation of **amplitude(B)** and **amplitude(C)**.

<a id="d0e2671"/>

#### 4.1.2.5.2. EXPONENTIAL Graph

![EXPONENTIAL Graph](chart_exponential.png)

This is equivalent to [linear interpolation](#id_e130e12f-c8cd-44c7-a90d-15b5c80e758a) where the interpolation factor is the square of the normal linear factor.

<a id="id_e130e12f-c8cd-44c7-a90d-15b5c80e758a"/>

### 4.1.2.6. LINEAR

If a breakpoint **B** uses the interpolation function **LINEAR**, then all frames between **B** and **C** will have amplitudes produced by a linear interpolation of **amplitude(B)** and **amplitude(C)**.

<a id="d0e2709"/>

#### 4.1.2.6.2. LINEAR Graph

![LINEAR Graph](chart_linear.png)

<a id="id_b1308a11-0c62-4f6f-8176-cfc1b66d9669"/>

### 4.1.2.7. LOGARITHMIC

If a breakpoint **B** uses the interpolation function **LOGARITHMIC**, then all frames between **B** and **C** will have amplitudes produced by a logarithmic interpolation of **amplitude(B)** and **amplitude(C)**.

<a id="d0e2740"/>

#### 4.1.2.7.2. LOGARITHMIC Graph

![LOGARITHMIC Graph](chart_logarithmic.png)

This is equivalent to [linear interpolation](#id_e130e12f-c8cd-44c7-a90d-15b5c80e758a) where the interpolation factor is the square root of the normal linear factor.

<a id="id_1ef6f735-d732-4ce6-aca0-2c6d31a5ca39"/>

## 4.2. com.io7m.aradine.filter.biquad1

<a id="d0e2757"/>

### 4.2.1. Overview

The **com.io7m.aradine.filter.biquad1** module contains biquad filter implementations.

<a id="d0e2766"/>

### 4.2.2. Applications

<a id="d0e2768"/>

### 4.2.2.1. Cascading

Biquad filters can be composed to produce stronger filters. The output signal of one filter is fed into the input of another filter in a process known as **cascading**. The main filter implementation included in the **com.io7m.aradine.filter.biquad1** module is a filter of order **2** (specifically, it has two poles, and two zeroes). It would be theoretically possible to use the same algorithm with more filter coefficients to produce a single filter of order **N**, but in practice it is better to **cascade** **N / 2** filters of order **2**; the resulting filter will be much more numerically stable and less subject to issues such as those involving floating point precision.

For example, the following code uses four filters of order **2** to produce an effective filter of order **8**:

<a id="d0e2804"/>

#### 4.2.2.1.3. Order 8

```
final var stage0 = new ARBQ1BiquadBPFO2();
final var stage1 = new ARBQ1BiquadBPFO2();
final var stage2 = new ARBQ1BiquadBPFO2();
final var stage3 = new ARBQ1BiquadBPFO2();

final var s0 = stage0.processOneFrame(input);
final var s1 = stage1.processOneFrame(s0);
final var s2 = stage2.processOneFrame(s1);
final var out = stage3.processOneFrame(s2);
```


<a id="d0e2810"/>

### 4.2.2.2. Uses

Biquad filters are relatively suitable for use in EQ applications, or when the filter cutoff value is not expected to be modulated over time. For rapidly modulating filter cutoff values, a [state variable filter](#id_8fdc11a6-3ec6-492d-af98-9b706b1611aa) may be more suitable.

<a id="d0e2820"/>

### 4.2.3. References

The filter implementation is loosely based upon the C++ implementation provided at [https://www.earlevel.com/main/2012/11/26/biquad-c-source-code/](https://www.earlevel.com/main/2012/11/26/biquad-c-source-code/) .

<a id="id_96246446-169f-4518-a162-442c4b9776c8"/>

## 4.3. com.io7m.aradine.filter.recursive1

<a id="d0e2832"/>

### 4.3.1. Overview

The **com.io7m.aradine.filter.recursive1** module contains simple recursive filter implementations.

<a id="d0e2841"/>

### 4.3.2. Applications

The filter implementations provided in the **com.io7m.aradine.filter.recursive1** module are extremely simple 1-pole filters. They represent the bare minimum in terms of filter implementations and may be useful in terms of eliminating low frequency grounds hum from audio, or reducing high frequency noise.

<a id="d0e2850"/>

### 4.3.3. References

The filter implementations are based on the descriptions given in [The Scientist and Engineer's Guide to Digital Signal Processing](https://www.dspguide.com/ch19.htm) by Steven W. Smith (ISBN-13 978-0966017632).

<a id="id_8fdc11a6-3ec6-492d-af98-9b706b1611aa"/>

## 4.4. com.io7m.aradine.filter.statevar1

<a id="d0e2862"/>

### 4.4.1. Overview

The **com.io7m.aradine.filter.statevar1** module contains state variable filter implementations.

<a id="d0e2871"/>

### 4.4.2. Applications

<a id="d0e2873"/>

### 4.4.2.1. Overview

The filter implementations provided in the **com.io7m.aradine.filter.statevar1** module are fairly direct translations of the hardware filters used on many analogue synthesizers. They offer good resolution at all frequencies, but can become unstable at certain frequencies unless **oversampling** is used.

<a id="d0e2885"/>

### 4.4.2.2. Stability

State variable filters accept separate **Q** and **C** parameters, where **Q** is a positive real value, and **C** is a real value in the range **[0, 1]**. Filters may become unstable in the sense that particular combinations of **Q** and **C** values may cause the filter to start oscillating and massively increase the gain of the signal passing through it. This can be directly observed by running the filter on a sample of white noise, picking various **Q** and **C** values, and seeing if the resulting output contains one or more frequency bands where the amplitude is greater than or equal to **0.6**. In an unfiltered white noise sample, every frequency band should have an amplitude of roughly **0.5**, so any band with a value much greater than this can indicate that the filter has begun to self oscillate. The following diagram shows an increasing **Q** downwards along the Y axis, and an increasing **C** rightwards along the X axis:

<a id="id_83accd86-9c75-4ab3-a73b-a0f9b9523079"/>

#### 4.4.2.2.2. Stability (1)

![Stability with one filter sample.](stable_eval1.png)

In the diagram, a green square indicates that no frequency band in the output had an amplitude of greater than or equal to **0.6**, whilst a red square indicates that one or more frequency bands had an amplitude of greater than or equal to **0.6**. As should be fairly obvious, much of the parameter space is essentially unusable. Fortunately, this problem can be mitigated through **oversampling**; simply evaluate the filter multiple times per input sample, and discard all but the output sample from the last evaluation.

<a id="d0e2949"/>

#### 4.4.2.2.4. Oversampling

```
final var input = sampleBuffer.frameGetExact(index);
for (int oversample = 0; oversample < sampleCount; ++oversample) {
  f.processOneFrame(input);
}
final var output = f.highPassOutput();
```


Applying the exact same **Q** and **C** values as in the [original diagram](#id_83accd86-9c75-4ab3-a73b-a0f9b9523079), but evaluating the filter four times instead of one, yields the following output instead:

<a id="id_cccc757e-b133-43a6-9d6a-8bd35da798f6"/>

#### 4.4.2.2.6. Stability (4)

![Stability with four filter samples.](stable_eval4.png)

The resulting audio output is not drastically different than for the single sample case, but it is clear from the diagram that a much wider range of **Q** and **C** values have become usable.

<a id="d0e2984"/>

### 4.4.3. References

The filter implementation is derived from the description given in **Musical Applications Of Microprocessors** by Hal Chamberlin (ISBN 0-8104-5768-7).

<a id="d0e2996"/>

## 5. API

<a id="d0e2998"/>

## 5.1. JavaDoc

The entire **aradine** API is documented the included [JavaDoc](apidocs/index.html).

