Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chord_track.h File Reference

Object to hold information for the chord track. More...

#include <stdint.h>
#include "dsp/track.h"
Include dependency graph for chord_track.h:

Go to the source code of this file.

Macros

#define P_CHORD_TRACK   (TRACKLIST->chord_track)
 
#define chord_track_get_chord_at_playhead(ct)    chord_track_get_chord_at_pos (ct, PLAYHEAD)
 Returns the current chord.
 
#define chord_track_get_scale_at_playhead(ct)    chord_track_get_scale_at_pos (ct, PLAYHEAD)
 Returns the current scale.
 

Typedefs

typedef struct _ChordTrackWidget ChordTrackWidget
 

Functions

ChordTrack * chord_track_new (int track_pos)
 Creates a new chord Track.
 
void chord_track_init (Track *track)
 Inits a chord track (e.g.
 
void chord_track_insert_chord_region (ChordTrack *track, ZRegion *region, int idx)
 Inserts a chord region to the Track at the given index.
 
void chord_track_insert_scale (ChordTrack *track, ScaleObject *scale, int pos)
 Inserts a scale to the track.
 
void chord_track_add_scale (ChordTrack *track, ScaleObject *scale)
 Adds a scale to the track.
 
void chord_track_remove_scale (ChordTrack *self, ScaleObject *scale, bool free)
 Removes a scale from the chord Track.
 
void chord_track_remove_region (ChordTrack *self, ZRegion *region)
 Removes a region from the chord track.
 
bool chord_track_validate (Track *self)
 
ChordObjectchord_track_get_chord_at_pos (const Track *ct, const Position *pos)
 Returns the ChordObject at the given Position in the TimelineArranger.
 
ScaleObjectchord_track_get_scale_at_pos (const Track *ct, const Position *pos)
 Returns the ScaleObject at the given Position in the TimelineArranger.
 
void chord_track_clear (ChordTrack *self)
 Removes all objects from the chord track.
 

Detailed Description

Object to hold information for the chord track.

Contains project scale, chord markers, etc.

Definition in file chord_track.h.