Entropy Piano Tuner
1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
|
Structure of a single tone. More...
#include <synthesizer.h>
Public Attributes | |
int | keynumber |
Identification tag (negativ=sine) More... | |
double | frequency |
Fundamental frequency. More... | |
double | leftamplitude |
Left stereo volume. More... | |
double | rightamplitude |
Right stereo volume. More... | |
double | phaseshift |
Stereo phase shift. More... | |
Envelope | envelope |
Dynamic properties of the tone. More... | |
int_fast64_t | clock |
Running time in sample cycles. More... | |
int | stage |
1=attack 2=decay 3=sustain 4=release. More... | |
double | amplitude |
current envelope amplitude More... | |
WaveformGenerator::Waveform | waveform |
Copy of the waveform. More... | |
Structure of a single tone.
This structure contains all data elements which characterize a single tone. Each tone carries an identifying keynumber. The tone is characterized mainly by the sound (static properties) and the envelope (dynamics).
The clock variable counts the number of samples from the beginning of the tone. The clock_timeout limits the maximal duration of a tone. The variables 'stage' indicates the dynamical state of the envelope.
Definition at line 75 of file synthesizer.h.
double Tone::amplitude |
current envelope amplitude
Definition at line 86 of file synthesizer.h.
int_fast64_t Tone::clock |
Running time in sample cycles.
Definition at line 84 of file synthesizer.h.
Envelope Tone::envelope |
Dynamic properties of the tone.
Definition at line 82 of file synthesizer.h.
double Tone::frequency |
Fundamental frequency.
Definition at line 78 of file synthesizer.h.
int Tone::keynumber |
Identification tag (negativ=sine)
Definition at line 77 of file synthesizer.h.
double Tone::leftamplitude |
Left stereo volume.
Definition at line 79 of file synthesizer.h.
double Tone::phaseshift |
Stereo phase shift.
Definition at line 81 of file synthesizer.h.
double Tone::rightamplitude |
Right stereo volume.
Definition at line 80 of file synthesizer.h.
int Tone::stage |
1=attack 2=decay 3=sustain 4=release.
Definition at line 85 of file synthesizer.h.
WaveformGenerator::Waveform Tone::waveform |
Copy of the waveform.
Definition at line 88 of file synthesizer.h.