Just Intonation  Version 1.3.1 (19)
Explore key-independent dynamically adapting tuning in just intonation
KeyData Struct Reference

Structure holding the tuner's data of a single key. More...

#include <tunerkeydata.h>

Collaboration diagram for KeyData:
Collaboration graph

Public Member Functions

 KeyData ()
 Constructor, clearing all data. More...
 
void clear ()
 Function for clearing all fields in the TunerKeyData structure. More...
 

Public Attributes

int key
 Number of the key. More...
 
bool pressed
 Flag indicating a pressed key. More...
 
bool newlyPressed
 Flag indicating a newly pressed key. More...
 
bool emitted
 Flag indicating first emitted tuning. More...
 
double intensity
 Intensity (volume) I(t) More...
 
double memory
 Psychoacoustic memory M(t) More...
 
double sustainDampingFactor
 Sustain damping of the key. More...
 
double releaseDampingFactor
 Release damping of the key. More...
 
qint64 timeStamp
 Time when the key was pressed. More...
 
double pitch
 Actual pitch. More...
 
double previousPitch
 Previously emitted pitch. More...
 

Detailed Description

Structure holding the tuner's data of a single key.

The tuner keeps track of each pressed key. This structure holds the essential data associated with the pressed key.

Definition at line 32 of file tunerkeydata.h.

Constructor & Destructor Documentation

KeyData::KeyData ( )
inline

Constructor, clearing all data.

Definition at line 46 of file tunerkeydata.h.

Here is the call graph for this function:

Member Function Documentation

void KeyData::clear ( )
inline

Function for clearing all fields in the TunerKeyData structure.

Definition at line 49 of file tunerkeydata.h.

Member Data Documentation

bool KeyData::emitted

Flag indicating first emitted tuning.

Definition at line 37 of file tunerkeydata.h.

double KeyData::intensity

Intensity (volume) I(t)

Definition at line 38 of file tunerkeydata.h.

int KeyData::key

Number of the key.

Definition at line 34 of file tunerkeydata.h.

double KeyData::memory

Psychoacoustic memory M(t)

Definition at line 39 of file tunerkeydata.h.

bool KeyData::newlyPressed

Flag indicating a newly pressed key.

Definition at line 36 of file tunerkeydata.h.

double KeyData::pitch

Actual pitch.

Definition at line 43 of file tunerkeydata.h.

bool KeyData::pressed

Flag indicating a pressed key.

Definition at line 35 of file tunerkeydata.h.

double KeyData::previousPitch

Previously emitted pitch.

Definition at line 44 of file tunerkeydata.h.

double KeyData::releaseDampingFactor

Release damping of the key.

Definition at line 41 of file tunerkeydata.h.

double KeyData::sustainDampingFactor

Sustain damping of the key.

Definition at line 40 of file tunerkeydata.h.

qint64 KeyData::timeStamp

Time when the key was pressed.

Definition at line 42 of file tunerkeydata.h.


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