TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::TimelineClip Struct Reference

An audio track's sound on its lane. More...

#include <gui_controls/gui_timeline_types.h>

Public Member Functions

bool operator== (const TimelineClip &) const =default

Public Attributes

float start = 0.0f
 where it starts, in seconds
float length = 0.0f
 how long it plays, in seconds
float offset = 0.0f
 How far into the sound it starts playing, in seconds: trimming its start moves it on.
float sourceLength = 0.0f
 The whole sound's length, in seconds, which peaks cover; 0: offset + length.
std::vector< float > peaks
 The sound's loudness over its whole length, 0 to 1, evenly spaced: the waveform's bars.

Detailed Description

An audio track's sound on its lane.

Member Function Documentation

◆ operator==()

bool tachyon::TimelineClip::operator== ( const TimelineClip & ) const
default

Member Data Documentation

◆ start

float tachyon::TimelineClip::start = 0.0f

where it starts, in seconds

◆ length

float tachyon::TimelineClip::length = 0.0f

how long it plays, in seconds

◆ offset

float tachyon::TimelineClip::offset = 0.0f

How far into the sound it starts playing, in seconds: trimming its start moves it on.

◆ sourceLength

float tachyon::TimelineClip::sourceLength = 0.0f

The whole sound's length, in seconds, which peaks cover; 0: offset + length.

◆ peaks

std::vector<float> tachyon::TimelineClip::peaks

The sound's loudness over its whole length, 0 to 1, evenly spaced: the waveform's bars.


The documentation for this struct was generated from the following file: