#include <pitsync1.h>
Definition at line 31 of file pitsync1.h.
◆ FPSEGPT() [1/4]
◆ FPSEGPT() [2/4]
FPSEGPT::FPSEGPT |
( |
int16_t |
x | ) |
|
◆ FPSEGPT() [3/4]
FPSEGPT::FPSEGPT |
( |
int16_t |
x, |
|
|
bool |
faking, |
|
|
int16_t |
offset, |
|
|
int16_t |
region_index, |
|
|
int16_t |
pitch, |
|
|
int16_t |
pitch_error, |
|
|
FPSEGPT_LIST * |
prev_list |
|
) |
| |
Definition at line 75 of file pitsync1.cpp.
100 FPSEGPT_IT pred_it = prev_list;
106 best_fake = INT16_MAX;
108 for (pred_it.mark_cycle_pt (); !pred_it.cycled_list (); pred_it.forward ()) {
109 segpt = pred_it.data ();
112 dist = x - segpt->xpos;
113 if (dist >= pitch - pitch_error && dist <= pitch + pitch_error
115 total = segpt->mean_sum + dist;
116 sq_dist = dist * dist + segpt->sq_sum + offset * offset;
118 mean = total / region_index;
119 factor = mean - pitch;
121 factor += sq_dist / (region_index) - mean * mean;
◆ FPSEGPT() [4/4]
FPSEGPT::FPSEGPT |
( |
FPCUTPT * |
cutpt | ) |
|
◆ cheap_cuts()
int16_t FPSEGPT::cheap_cuts |
( |
| ) |
const |
|
inline |
◆ cost_function()
double FPSEGPT::cost_function |
( |
| ) |
|
|
inline |
◆ position()
int32_t FPSEGPT::position |
( |
| ) |
|
|
inline |
◆ previous()
◆ squares()
double FPSEGPT::squares |
( |
| ) |
|
|
inline |
◆ sum()
◆ fake_count
int16_t FPSEGPT::fake_count |
◆ faked
◆ terminal
The documentation for this class was generated from the following files: