libline

libline is an ANSI C library for generating audio-rate line segments and curves for computer-based music. Libline can easily interface with sample-accurate audio libraries like Soundpipe, and a local copy is used inside of Sporth via Polysporth.

The source code for libline is written using the literate programming system known as CWEB, which can generate a full typeset PDF of the program via TeX.

Some Sample Lines

Here are some plots of lines drawn using libline and Runt via runt-cairo.

2 Linear points.

2 linear points

2 exponential points.

2 exponential points

2 exponential points with a different slope.

2 exponential points

Steps

Steps

A few linear points

A few linear points

A few exponential points

A few exponential points

Different line types mixed and matched

mixed and matched

Ticks

When set to tick-mode, points will be turned into sporth-compatible trigger signals.

Ticks

Bezier Curves

Points can be set to draw quadratic bezier curves

Bezier Curves