Removing the unused features
Down to 20 features
This commit is contained in:
parent
b90729b83b
commit
6585843237
10 changed files with 23 additions and 30 deletions
|
@ -139,7 +139,7 @@ LPCNET_EXPORT void lpcnet_synthesize(LPCNetState *lpcnet, const float *features,
|
|||
float gru_b_condition[3*GRU_B_STATE_SIZE];
|
||||
int pitch;
|
||||
/* Matches the Python code -- the 0.1 avoids rounding issues. */
|
||||
pitch = (int)floor(.1 + 50*features[36]+100);
|
||||
pitch = (int)floor(.1 + 50*features[18]+100);
|
||||
pitch = IMIN(255, IMAX(33, pitch));
|
||||
memmove(&lpcnet->old_gain[1], &lpcnet->old_gain[0], (FEATURES_DELAY-1)*sizeof(lpcnet->old_gain[0]));
|
||||
lpcnet->old_gain[0] = features[PITCH_GAIN_FEATURE];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue