Skip to content

Struct Ase::AudioTransport

ClassList > Ase > AudioTransport

Transport information for AudioSignal processing.

  • #include <transport.hh>

Public Attributes

Type Name
int32 current_bar = = 0
Bar of current_tick position.
int64 current_bar_tick = = 0
int8 current_beat = = 0
Beat within bar of current_tick position.
float current_bpm = = 0
Running tempo in beats per minute.
int64 current_frame = = 0
Number of sample frames processed since playback start.
int32 current_minutes = = 0
Minute of current_tick position.
double current_seconds = = 0
Seconds of current_tick position.
double current_semiquaver = = 0
The sixteenth with fraction within beat.
int64 current_tick = = 0
const double inyquist
Precalculated 1.0 / nyquist .
const double isamplerate
Precalculated 1.0 / samplerate .
int64 next_bar_tick = = 0
const uint nyquist
Half the samplerate .
const uint samplerate
Sample rate (mixing frequency) in Hz used for rendering.
const SpeakerArrangement speaker_arrangement
Audio output configuration.
TickSignature tick_sig

Public Static Attributes

Type Name
constexpr int64 ppqn = = TRANSPORT_PPQN

Public Functions

Type Name
AudioTransport (SpeakerArrangement speakerarrangement, uint samplerate)
virtual __attribute__ ((aligned(64))) = 0
Current position measured via TRANSPORT_PPQN __
void advance (uint nsamples)
bool running () const
void running (bool r)
int64 sample_from_tick (int64 tick) const
int64 sample_to_tick (int64 sample) const
void set_beat (TickSignature::Beat b)
void set_tick (int64 newtick)
void tempo (double newbpm, uint8 newnumerator, uint8 newdenominator)
void tempo (const TickSignature & ticksignature)
void update_current ()

Public Attributes Documentation

variable current_bar

int32 Ase::AudioTransport::current_bar;

variable current_bar_tick

int64 Ase::AudioTransport::current_bar_tick;

variable current_beat

int8 Ase::AudioTransport::current_beat;

variable current_bpm

float Ase::AudioTransport::current_bpm;

variable current_frame

int64 Ase::AudioTransport::current_frame;

variable current_minutes

int32 Ase::AudioTransport::current_minutes;

variable current_seconds

double Ase::AudioTransport::current_seconds;

variable current_semiquaver

double Ase::AudioTransport::current_semiquaver;

variable current_tick

int64 Ase::AudioTransport::current_tick;

variable inyquist

const double Ase::AudioTransport::inyquist;

variable isamplerate

const double Ase::AudioTransport::isamplerate;

variable next_bar_tick

int64 Ase::AudioTransport::next_bar_tick;

variable nyquist

const uint Ase::AudioTransport::nyquist;

variable samplerate

const uint Ase::AudioTransport::samplerate;

variable speaker_arrangement

const SpeakerArrangement Ase::AudioTransport::speaker_arrangement;

variable tick_sig

TickSignature Ase::AudioTransport::tick_sig;

Public Static Attributes Documentation

variable ppqn

constexpr int64 Ase::AudioTransport::ppqn;

Public Functions Documentation

function AudioTransport

explicit Ase::AudioTransport::AudioTransport (
    SpeakerArrangement speakerarrangement,
    uint samplerate
) 

function __attribute__

virtual Ase::AudioTransport::__attribute__ (
    (aligned(64))
) = 0

function advance

void Ase::AudioTransport::advance (
    uint nsamples
) 

function running [1/2]

inline bool Ase::AudioTransport::running () const

function running [2/2]

void Ase::AudioTransport::running (
    bool r
) 

function sample_from_tick

inline int64 Ase::AudioTransport::sample_from_tick (
    int64 tick
) const

function sample_to_tick

inline int64 Ase::AudioTransport::sample_to_tick (
    int64 sample
) const

function set_beat

void Ase::AudioTransport::set_beat (
    TickSignature::Beat b
) 

function set_tick

void Ase::AudioTransport::set_tick (
    int64 newtick
) 

function tempo [1/2]

void Ase::AudioTransport::tempo (
    double newbpm,
    uint8 newnumerator,
    uint8 newdenominator
) 

function tempo [2/2]

void Ase::AudioTransport::tempo (
    const TickSignature & ticksignature
) 

function update_current

void Ase::AudioTransport::update_current () 


The documentation for this class was generated from the following file /__w/anklang/anklang/ase/transport.hh