Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
staffpad::TimeAndPitch::impl Struct Reference
Collaboration diagram for staffpad::TimeAndPitch::impl:
[legend]

Public Member Functions

 impl (int fft_size)
 

Public Attributes

FourierTransform fft
 
std::mt19937 randomGenerator
 
CircularSampleBuffer< float > inResampleInputBuffer [2]
 
CircularSampleBuffer< float > inCircularBuffer [2]
 
CircularSampleBuffer< float > outCircularBuffer [2]
 
CircularSampleBuffer< float > normalizationBuffer
 
SamplesReal fft_timeseries
 
SamplesComplex spectrum
 
SamplesReal norm
 
SamplesReal phase
 
SamplesReal last_phase
 
SamplesReal phase_accum
 
SamplesReal cosWindow
 
SamplesReal sqWindow
 
SamplesReal last_norm
 
SamplesReal random_phases
 
double exact_hop_a = 512.0
 
double hop_a_err = 0.0
 
double exact_hop_s = 0.0
 
double next_exact_hop_s = 512.0
 
double hop_s_err = 0.0
 
std::vector< int > peak_index
 
std::vector< int > trough_index
 

Detailed Description

Definition at line 57 of file TimeAndPitch.cpp.

Constructor & Destructor Documentation

◆ impl()

staffpad::TimeAndPitch::impl::impl ( int  fft_size)
inline

Definition at line 59 of file TimeAndPitch.cpp.

59 : fft(fft_size)
60 {
61 randomGenerator.seed(0);
62 }

References randomGenerator.

Member Data Documentation

◆ cosWindow

SamplesReal staffpad::TimeAndPitch::impl::cosWindow

Definition at line 77 of file TimeAndPitch.cpp.

◆ exact_hop_a

double staffpad::TimeAndPitch::impl::exact_hop_a = 512.0

Definition at line 82 of file TimeAndPitch.cpp.

◆ exact_hop_s

double staffpad::TimeAndPitch::impl::exact_hop_s = 0.0

Definition at line 83 of file TimeAndPitch.cpp.

◆ fft

FourierTransform staffpad::TimeAndPitch::impl::fft

Definition at line 64 of file TimeAndPitch.cpp.

◆ fft_timeseries

SamplesReal staffpad::TimeAndPitch::impl::fft_timeseries

Definition at line 71 of file TimeAndPitch.cpp.

◆ hop_a_err

double staffpad::TimeAndPitch::impl::hop_a_err = 0.0

Definition at line 82 of file TimeAndPitch.cpp.

◆ hop_s_err

double staffpad::TimeAndPitch::impl::hop_s_err = 0.0

Definition at line 85 of file TimeAndPitch.cpp.

◆ inCircularBuffer

CircularSampleBuffer<float> staffpad::TimeAndPitch::impl::inCircularBuffer[2]

Definition at line 67 of file TimeAndPitch.cpp.

◆ inResampleInputBuffer

CircularSampleBuffer<float> staffpad::TimeAndPitch::impl::inResampleInputBuffer[2]

Definition at line 66 of file TimeAndPitch.cpp.

◆ last_norm

SamplesReal staffpad::TimeAndPitch::impl::last_norm

Definition at line 79 of file TimeAndPitch.cpp.

◆ last_phase

SamplesReal staffpad::TimeAndPitch::impl::last_phase

Definition at line 75 of file TimeAndPitch.cpp.

◆ next_exact_hop_s

double staffpad::TimeAndPitch::impl::next_exact_hop_s = 512.0

Definition at line 84 of file TimeAndPitch.cpp.

◆ norm

SamplesReal staffpad::TimeAndPitch::impl::norm

Definition at line 73 of file TimeAndPitch.cpp.

◆ normalizationBuffer

CircularSampleBuffer<float> staffpad::TimeAndPitch::impl::normalizationBuffer

Definition at line 69 of file TimeAndPitch.cpp.

◆ outCircularBuffer

CircularSampleBuffer<float> staffpad::TimeAndPitch::impl::outCircularBuffer[2]

Definition at line 68 of file TimeAndPitch.cpp.

◆ peak_index

std::vector<int> staffpad::TimeAndPitch::impl::peak_index

Definition at line 87 of file TimeAndPitch.cpp.

◆ phase

SamplesReal staffpad::TimeAndPitch::impl::phase

Definition at line 74 of file TimeAndPitch.cpp.

◆ phase_accum

SamplesReal staffpad::TimeAndPitch::impl::phase_accum

Definition at line 76 of file TimeAndPitch.cpp.

◆ random_phases

SamplesReal staffpad::TimeAndPitch::impl::random_phases

Definition at line 80 of file TimeAndPitch.cpp.

◆ randomGenerator

std::mt19937 staffpad::TimeAndPitch::impl::randomGenerator

Definition at line 65 of file TimeAndPitch.cpp.

Referenced by impl().

◆ spectrum

SamplesComplex staffpad::TimeAndPitch::impl::spectrum

Definition at line 72 of file TimeAndPitch.cpp.

◆ sqWindow

SamplesReal staffpad::TimeAndPitch::impl::sqWindow

Definition at line 78 of file TimeAndPitch.cpp.

◆ trough_index

std::vector<int> staffpad::TimeAndPitch::impl::trough_index

Definition at line 87 of file TimeAndPitch.cpp.


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