AuLib  1.0beta
Public Member Functions | List of all members
AuLib::ScorePlayer Class Reference

#include <AuLib/ScorePlayer.h>

Inheritance diagram for AuLib::ScorePlayer:
Inheritance graph
[legend]
Collaboration diagram for AuLib::ScorePlayer:
Collaboration graph
[legend]

Public Member Functions

 ScorePlayer (const Score &sc, uint32_t nchnls=def_nchnls, uint32_t vframes=def_vframes, double sr=def_sr)
 
template<typename... Targs>
const ScorePlayerprocess (Targs &... args)
 
void insert (const Score &input, double offset=0.)
 
uint64_t score_time () const
 
void reset ()
 
void score_time (uint64_t t)
 
void score_time (double t)
 
void prepare ()
 
template<typename T , typename... Targs>
bool play (T &dest, Targs... args)
 
bool check_score () const
 
- Public Member Functions inherited from AuLib::AudioBase
 AudioBase (uint32_t nchnls=def_nchnls, uint32_t vframes=def_vframes, double sr=def_sr)
 
virtual const AudioBaseoperator*= (double scal)
 
virtual const AudioBaseoperator*= (const double *sig)
 
virtual const AudioBaseoperator*= (const AudioBase &obj)
 
virtual const AudioBaseoperator+= (double offs)
 
virtual const AudioBaseoperator+= (const double *sig)
 
virtual const AudioBaseoperator+= (const AudioBase &obj)
 
double & operator[] (uint32_t ndx)
 
const double & operator[] (uint32_t ndx) const
 
iterator begin ()
 
iterator end ()
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const AudioBaseset (const AudioBase &obj)
 
const AudioBaseset (const double *sig)
 
const double * set (double v)
 
double set (double v, uint32_t p)
 
 operator const std::vector< double > & () const
 
 operator const double * () const
 
const double * vector () const
 
double vector (uint32_t frndx, uint32_t chn) const
 
uint32_t vframes (uint32_t frames)
 
uint32_t resize_exact (uint32_t frames)
 
uint32_t vframes () const
 
uint32_t vsamps () const
 
uint32_t nchnls () const
 
uint32_t sr () const
 
uint32_t error () const
 
virtual const char * error_message () const
 

Additional Inherited Members

- Public Types inherited from AuLib::AudioBase
typedef std::vector< double >::iterator iterator
 
typedef std::vector< double >::const_iterator const_iterator
 
- Protected Attributes inherited from AuLib::AudioBase
uint32_t m_nchnls
 
uint32_t m_vframes
 
std::vector< double > m_vector
 
double m_sr
 
uint32_t m_error
 

Constructor & Destructor Documentation

◆ ScorePlayer()

AuLib::ScorePlayer::ScorePlayer ( const Score sc,
uint32_t  nchnls = def_nchnls,
uint32_t  vframes = def_vframes,
double  sr = def_sr 
)
inline

create a score

Member Function Documentation

◆ check_score()

bool AuLib::ScorePlayer::check_score ( ) const
inline

check score for termination msg (Score::end)

◆ insert()

void AuLib::ScorePlayer::insert ( const Score input,
double  offset = 0. 
)
inline

insert score at the current running time with optional offset.

◆ play()

template<typename T , typename... Targs>
bool AuLib::ScorePlayer::play ( T &  dest,
Targs...  args 
)
inline

play loaded score from start position to end into dest object.

◆ prepare()

void AuLib::ScorePlayer::prepare ( )
inline

prepare for playback of score object. Also resets playback time.

◆ process()

template<typename... Targs>
const ScorePlayer & AuLib::ScorePlayer::process ( Targs &...  args)

process instruments obj ... dispatching score commands, for one vector of audio, returning the mixed score audio

◆ reset()

void AuLib::ScorePlayer::reset ( )
inline

reset playback time counter

◆ score_time() [1/3]

uint64_t AuLib::ScorePlayer::score_time ( ) const
inline

get current score time in frames

◆ score_time() [2/3]

void AuLib::ScorePlayer::score_time ( uint64_t  t)
inline

set current score time in frames

◆ score_time() [3/3]

void AuLib::ScorePlayer::score_time ( double  t)
inline

set current score time in secs


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