audio/chord_descriptor.h file

Descriptors for chords.

Contents

Classes

struct ChordDescriptor
A ChordDescriptor describes a chord and is not linked to any specific object by itself.

Enums

enum ChordType { CHORD_TYPE_MAJ, CHORD_TYPE_MIN, CHORD_TYPE_DIM, CHORD_TYPE_SUS4, CHORD_TYPE_SUS2, CHORD_TYPE_AUG, NUM_CHORD_TYPES }
Chord type.
enum ChordAccent { CHORD_ACC_NONE, CHORD_ACC_7, CHORD_ACC_j7, CHORD_ACC_b9, CHORD_ACC_9, CHORD_ACC_S9, CHORD_ACC_11, CHORD_ACC_b5_S11, CHORD_ACC_S5_b13, CHORD_ACC_6_13, NUM_CHORD_ACCENTS }
Chord accents.

Typedefs

using ChordType = enum ChordType
Chord type.
using ChordAccent = enum ChordAccent
Chord accents.
using ChordDescriptor = struct ChordDescriptor
A ChordDescriptor describes a chord and is not linked to any specific object by itself.

Functions

auto chord_descriptor_new(MusicalNote root, int has_bass, MusicalNote bass, ChordType type, ChordAccent accent, int inversion) -> ChordDescriptor*
Creates a ChordDescriptor.
auto chord_descriptor_is_key_in_chord(ChordDescriptor* chord, MusicalNote key) -> int
Returns if the given key is in the chord represented by the given ChordDescriptor.
auto chord_descriptor_clone(ChordDescriptor* src) -> ChordDescriptor*
Clones the given ChordDescriptor.
auto chord_descriptor_chord_type_to_string(ChordType type) -> const char*
Returns the chord type as a string (eg.
auto chord_descriptor_chord_accent_to_string(ChordAccent accent) -> const char*
Returns the chord accent as a string (eg.
auto chord_descriptor_note_to_string(MusicalNote note) -> const char*
Returns the musical note as a string (eg.
auto chord_descriptor_to_string(ChordDescriptor* chord) -> char*
Returns the chord in human readable string.
void chord_descriptor_free(ChordDescriptor* self)
Frees the ChordDescriptor.