Pointillism

A compositional library for musical composition.

Examples

If you want to see pointillism in action and what it's capable of, run the examples in the examples folder.

Note: Some examples may be loud, dissonant, and/or jarring. Hearing discretion is advised.

Design

The way in which pointillism outputs audio is by writing sample by sample into a 32-bit floating point .wav file. Internal calculations use 64-bit floating points.

For convenience, the [Signal] trait is provided. Types implementing this trait generate sample data frame by frame. If the type also implements [SignalMut], it can be advanced or retriggered.

Signals may be composed to create more complex signals, using for instance the [MapSgn] and [MutSgn] structs. Moreover, you can implement the [Signal] and [SignalMut] traits for your own structs, giving you vast control over the samples you're producing.

We categorize signals into two broad families. Signals that generate audio on their own are called generators. Their names are suffixed by Gen. Signals that modify the output from another signal are called effects.

Compile-time

You can think of pointillism as a compile-time modular synthesizer, where every new struct is its own module.

Advantages of this design are extensibility and generality. It's relatively easy to create a highly customizable and complex signal with many layers by composing some functions together.

The downside is that these synths end up having unwieldy type signatures. Moreso, it's really hard to build synths in real time.

Features

The project uses the following features:

| Feature | Enables | |-|-| | human-duration | Pretty-printing for the RawRawTime type. |

(todo: rodio integration)

Versions

The following versions of pointillism exist:

Goals

Future goals of pointillism are:

Disclaimer

This is a passion project made by one college student. I make no guarantees on it being well-designed, well-maintained, or useable for your own goals.

That said, if you happen to stumble across this and make something cool, please let me know!