Pitch shifting object.
More...
Go to the source code of this file.
|
void | aubio_pitchshift_do (aubio_pitchshift_t *o, const fvec_t *in, fvec_t *out) |
| execute pitch shifting on an input signal frame
|
void | del_aubio_pitchshift (aubio_pitchshift_t *o) |
| deletion of the pitch shifting object
|
aubio_pitchshift_t * | new_aubio_pitchshift (const char_t *method, smpl_t transpose, uint_t hop_size, uint_t samplerate) |
| creation of the pitch shifting object
|
uint_t | aubio_pitchshift_get_latency (aubio_pitchshift_t *o) |
| get the latency of the pitch shifting object, in samples
|
uint_t | aubio_pitchshift_set_pitchscale (aubio_pitchshift_t *o, smpl_t pitchscale) |
| set the pitch scale of the pitch shifting object
|
smpl_t | aubio_pitchshift_get_pitchscale (aubio_pitchshift_t *o) |
| get the pitchscale of the pitch shifting object
|
uint_t | aubio_pitchshift_set_transpose (aubio_pitchshift_t *o, smpl_t transpose) |
| set the transposition of the pitch shifting object, in semitones
|
smpl_t | aubio_pitchshift_get_transpose (aubio_pitchshift_t *o) |
| get the transposition of the pitch shifting object, in semitones
|
Pitch shifting object.
aubio_pitchshift_t can be used to transpose a stream of blocks of frames.
Definition in file pitchshift.h.
◆ aubio_pitchshift_t
◆ aubio_pitchshift_do()
◆ aubio_pitchshift_get_latency()
get the latency of the pitch shifting object, in samples
- Parameters
-
- Returns
- latency of the pitch shifting object in samples
- Examples
- effects/test-pitchshift.c.
◆ aubio_pitchshift_get_pitchscale()
get the pitchscale of the pitch shifting object
- Parameters
-
- Returns
- pitchscale of the pitch shifting object
◆ aubio_pitchshift_get_transpose()
get the transposition of the pitch shifting object, in semitones
- Parameters
-
- Returns
- transposition of the pitch shifting object, in semitones
◆ aubio_pitchshift_set_pitchscale()
set the pitch scale of the pitch shifting object
- Parameters
-
o | pitch shifting object as returned by new_aubio_pitchshift() |
pitchscale | new pitch scale of the pitch shifting object |
pitchscale is a frequency ratio. It should be in the range [0.25, 4].
- Returns
- 0 if successfull, non-zero otherwise
- Examples
- effects/test-pitchshift.c.
◆ aubio_pitchshift_set_transpose()
set the transposition of the pitch shifting object, in semitones
- Parameters
-
o | pitch shifting object as returned by new_aubio_pitchshift() |
transpose | new pitch transposition of the pitch shifting object, expressed in semitones (should be in the range [-24;+24]) |
- Returns
- 0 if successfull, non-zero otherwise
- Examples
- effects/test-pitchshift.c.
◆ del_aubio_pitchshift()
◆ new_aubio_pitchshift()
creation of the pitch shifting object
- Parameters
-
method | set pitch shifting algorithm ("default") |
transpose | initial pitch transposition |
hop_size | step size between two consecutive analysis instant |
samplerate | sampling rate of the signal |
- Returns
- newly created aubio_pitchshift_t
- Examples
- effects/test-pitchshift.c.