audio/chord_track.h file

Object to hold information for the chord track.

Contents

Contains project scale, chord markers, etc.

Functions

auto chord_track_new(void) -> ChordTrack*
Creates a new chord Track.
void chord_track_init(Track* track)
Inits a chord track (e.g.
void chord_track_add_scale(ChordTrack* track, ScaleObject* chord)
Adds a ChordObject to the Track.
void chord_track_remove_scale(ChordTrack* self, ScaleObject* scale, int free)
Removes a scale from the chord Track.
auto chord_track_get_chord_at_pos(const Track* ct, const Position* pos) -> ChordObject*
Returns the ChordObject at the given Position in the TimelineArranger.
auto chord_track_get_scale_at_pos(const Track* ct, const Position* pos) -> ScaleObject*
Returns the ScaleObject at the given Position in the TimelineArranger.
void chord_track_free(ChordTrack* self)
Frees the chord Track.

Defines

#define chord_track_get_chord_at_playhead(ct)
Returns the current chord.
#define chord_track_get_scale_at_playhead(ct)
Returns the current scale.