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

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

Macros

#define CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_PITCH_RATIO   (0)
 Pitch change amount [ratio]. More...
 
#define CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_FORMANT_RATIO   (1)
 Formant change amount [ratio]. More...
 
#define CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_MODE   (2)
 Operation mode. More...
 
#define CRIATOMEXASR_PITCH_SHIFTER_PARAMETER_DATA_PITCH_FREQUENCY   (3)
 Pitch frequency of input audio data [Hz]. More...
 
#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. More...
 
#define CRIATOMEXASR_PITCH_SHIFTER_MODE_VOCAL   (1)
 Parameter setting value when vocal is specified in the pitch shifter operation mode. More...
 
#define CRIATOMEXASR_PITCH_SHIFTER_MODE_SE   (2)
 Parameter setting value when SE is specified in the pitch shifter operation mode. More...
 
#define CRIATOMEXASR_PITCH_SHIFTER_MODE_SPEECH   (3)
 Parameter setting value for speech is specified in the pitch shifter operation mode. More...
 

Detailed Description

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

See also
criAtomExAsrRack_SetEffectParameter, criAtomExAsrRack_GetEffectParameter

Macro Definition Documentation

◆ 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).
Note
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).
Note
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.
See also
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.