libsmp

A C++ library for symbolic music processing


libsmp is a library for Symbolic Music Processing. It can be useful for writting programs that have to deal with basic musical concepts such as notes, intervals and chords in the equally tempered musical system.

libsmp defines these new data types:

libsmp defines the LA3 and DO3 constant NOTEs, the double LA3FREQ = 440 (Hz) and the double HALFTONEFACTOR as the 12-th root of 2.
Here's a summary of the libsmp functions with a brief explanation:


Human-readable notation is case sensitive. Square bracket mean that a parameter is mandatory.
Notes:
[pitch]{accidental}{octave}
Italian-style (default) pitch symbols are: do, re, mi, fa, sol, la, si.
English-style pitch symbols are: C, D, E, F, G, A, B.

Unique-style accidental symbols are: # (sharp), b (flat), default (no symbol) is natural.

Italian-style octave symbols are: numbers (0, 1, 2...) or B (lower), C (central), A (higher).
English-style octave symbols are: numers (0, 1, 2...) or l (lower), c (central), h (higher).

Here you can find gzipped libsmp source code (and some example). The first liboopsmp alpha version is also avaiable.


Home