CRI ADX  Last Updated: 2024-07-17 10:48 p

The definition of the parameter to be set with the pitch shifter. 更多...

宏定义

#define CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_PITCH_RATIO   (0)
 Pitch change amount [ratio] 更多...
 
#define CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_FORMANT_RATIO   (1)
 Formant change amount [ratio] 更多...
 
#define CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_MODE   (2)
 Operation mode 更多...
 
#define CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_DATA_PITCH_FREQUENCY   (3)
 Pitch frequency of input audio data [Hz] 更多...
 
#define CRIATOMEXASR_PITCH_SHIFTER_NUM_PARAMETERS   (4)
 Number of parameters of pitch shifter
 
#define CRIATOMEXASR_PITCH_SHIFTER_MODE_MUSIC   (0)
 Parameter setting value when music is specified in the pitch shifter operation mode 更多...
 
#define CRIATOMEXASR_PITCH_SHIFTER_MODE_VOCAL   (1)
 Parameter setting value when vocal is specified in the pitch shifter operation mode 更多...
 
#define CRIATOMEXASR_PITCH_SHIFTER_MODE_SE   (2)
 Parameter setting value when SE is specified in the pitch shifter operation mode 更多...
 
#define CRIATOMEXASR_PITCH_SHIFTER_MODE_SPEECH   (3)
 Parameter setting value for speech is specified in the pitch shifter operation mode 更多...
 

详细描述

The definition of the parameter to be set with the pitch shifter.

参见
criAtomExAsrRack_SetEffectParameter, criAtomExAsrRack_GetEffectParameter

宏定义说明

◆ CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_PITCH_RATIO

#define CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_PITCH_RATIO   (0)

Pitch change amount [ratio]

Description:
Specify the pitch change amount of the pitch shifter in this parameter index.
It is the ratio (ratio) of the pitch shift value (cents). The initial value of the parameter is 1.0 f,the minimum value is 0.25 f (corresponding to -2400 cents), the maximum value is 4.0 f (equivalent to 2400 cents).
注解
Conversion from the ratio value to the cents value can be obtained by multiplying the value obtained by taking the base 2 logarithm to the ratio value by 1200.0 f.
// Convert from cent to ratio
ratio = powf(2.0f, cent / 1200.0f);
// Convert from ratio to cent
cent = 1200.0f * log2f(ratio);

◆ CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_FORMANT_RATIO

#define CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_FORMANT_RATIO   (1)

Formant change amount [ratio]

Description:
Specify the formant change amount of the pitch shifter for this parameter index.
It is the ratio (ratio) of the pitch shift value (cents). The initial value of the parameter is 1.0 f,the minimum value is 0.25 f (corresponding to -2400 cents), the maximum value is 4.0 f (equivalent to 2400 cents).
注解
Conversion from the ratio value to the cents value can be obtained by multiplying the value obtained by taking the base 2 logarithm to the ratio value by 1200.0 f.
// Convert from cent to ratio
ratio = powf(2.0f, cent / 1200.0f);
// Convert from ratio to cent
cent = 1200.0f * log2f(ratio);

◆ CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_MODE

#define CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_MODE   (2)

Operation mode

Description:
Specify the operation mode of the pitch shifter in this parameter index.
The appropriate operation mode will differ depending on whether or not emphasis is placed on the sound localization and whether or not the voice including human voice (with pitch) or not.
参见
CRIATOMEXASR_PITCH_SHIFTER_MODE_MUSIC, CRIATOMEXASR_PITCH_SHIFTER_MODE_VOCAL, CRIATOMEXASR_PITCH_SHIFTER_MODE_SE, CRIATOMEXASR_PITCH_SHIFTER_MODE_SPEECH

◆ CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_DATA_PITCH_FREQUENCY

#define CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_DATA_PITCH_FREQUENCY   (3)

Pitch frequency of input audio data [Hz]

Description:
Specify the frequency of the input audio data in this parameter index.
Although it becomes hint information at the time of formant analysis,please be careful because noise is added to the sound if you specify a value far apart from the actual sound data.If not specified, the default pitch (459.375 Hz) is used internally.

◆ CRIATOMEXASR_PITCH_SHIFTER_MODE_MUSIC

#define CRIATOMEXASR_PITCH_SHIFTER_MODE_MUSIC   (0)

Parameter setting value when music is specified in the pitch shifter operation mode

Description:
Perform LR -> MS conversion (convert L and Rch speech to M, Sch) and do not perform formant shift.

◆ CRIATOMEXASR_PITCH_SHIFTER_MODE_VOCAL

#define CRIATOMEXASR_PITCH_SHIFTER_MODE_VOCAL   (1)

Parameter setting value when vocal is specified in the pitch shifter operation mode

Description:
Perform LR -> MS conversion and perform formant shift.

◆ CRIATOMEXASR_PITCH_SHIFTER_MODE_SE

#define CRIATOMEXASR_PITCH_SHIFTER_MODE_SE   (2)

Parameter setting value when SE is specified in the pitch shifter operation mode

Description:
It does not perform LR -> MS conversion and does not perform formant shift.

◆ CRIATOMEXASR_PITCH_SHIFTER_MODE_SPEECH

#define CRIATOMEXASR_PITCH_SHIFTER_MODE_SPEECH   (3)

Parameter setting value for speech is specified in the pitch shifter operation mode

Description:
It does not perform LR -> MS conversion, but perform formant shift.