Just Intonation  Version 1.3.0 (18)
Explore scale-independent dynamically adapting tuning in just intonation
Voice Class Reference

Voice - a set of scales, keeping the acoustic data of an instrument. More...

#include <voice.h>

Inheritance diagram for Voice:
Inheritance graph
Collaboration diagram for Voice:
Collaboration graph

Signals

void setProgressText (QVariant text)
 
void setProgress (QVariant percent)
 
void signalArtificialSoundGenerationComplete (bool)
 

Public Member Functions

 Voice ()
 Constructor. More...
 
void init ()
 
void exit ()
 
void generateArtificialSound (int samplerate)
 
bool write (QIODevice &iodevice)
 
bool read (QIODevice &iodevice)
 
void cancel ()
 
void clear ()
 
bool insert (const int scale, const int key, const QVector< qint32 > &L, const QVector< qint32 > &R, const int sampleRate, const double amplification)
 
void printInfo ()
 
ScalegetScale (int i)
 
int getNumberOfScales () const
 
int getSampleRate () const
 
int getHighestDampedKey () const
 
bool isVolumeDynamic () const
 
double getRecordedPitch (int key) const
 
void setVerbosity (int verbosity)
 

Static Public Attributes

static int mVerbosity = 2
 Verbosity of qDebug() message. More...
 

Protected Attributes

int mSampleRate
 
int mHighestDampedKey
 
bool mDynamicVolume
 
QVector< ScalemScales
 
QVector< double > mRecordedPitchInCents
 

Detailed Description

Voice - a set of scales, keeping the acoustic data of an instrument.

Definition at line 39 of file voice.h.

Constructor & Destructor Documentation

Voice::Voice ( )

Constructor.

Definition at line 45 of file voice.cpp.

Member Function Documentation

void Voice::cancel ( )

Definition at line 172 of file voice.cpp.

void Voice::clear ( )

Definition at line 182 of file voice.cpp.

void Voice::exit ( )
inline

Definition at line 46 of file voice.h.

Here is the call graph for this function:

void Voice::generateArtificialSound ( int  samplerate)

Definition at line 58 of file voice.cpp.

int Voice::getHighestDampedKey ( ) const
inline

Definition at line 62 of file voice.h.

int Voice::getNumberOfScales ( ) const
inline

Definition at line 60 of file voice.h.

double Voice::getRecordedPitch ( int  key) const
inline

Definition at line 65 of file voice.h.

int Voice::getSampleRate ( ) const
inline

Definition at line 61 of file voice.h.

Scale& Voice::getScale ( int  i)
inline

Definition at line 59 of file voice.h.

void Voice::init ( )
inline

Definition at line 45 of file voice.h.

bool Voice::insert ( const int  scale,
const int  key,
const QVector< qint32 > &  L,
const QVector< qint32 > &  R,
const int  sampleRate,
const double  amplification 
)
bool Voice::isVolumeDynamic ( ) const
inline

Definition at line 63 of file voice.h.

void Voice::printInfo ( )

Definition at line 193 of file voice.cpp.

bool Voice::read ( QIODevice &  iodevice)

Definition at line 117 of file voice.cpp.

Here is the call graph for this function:

void Voice::setProgress ( QVariant  percent)
signal
void Voice::setProgressText ( QVariant  text)
signal
void Voice::setVerbosity ( int  verbosity)
inline

Definition at line 68 of file voice.h.

void Voice::signalArtificialSoundGenerationComplete ( bool  )
signal
bool Voice::write ( QIODevice &  iodevice)

Definition at line 76 of file voice.cpp.

Here is the call graph for this function:

Member Data Documentation

bool Voice::mDynamicVolume
protected

Definition at line 77 of file voice.h.

int Voice::mHighestDampedKey
protected

Definition at line 76 of file voice.h.

QVector<double> Voice::mRecordedPitchInCents
protected

Definition at line 79 of file voice.h.

int Voice::mSampleRate
protected

Definition at line 75 of file voice.h.

QVector<Scale> Voice::mScales
protected

Definition at line 78 of file voice.h.

int Voice::mVerbosity = 2
static

Verbosity of qDebug() message.

Definition at line 67 of file voice.h.


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