AgsHQPitchUtil

AgsHQPitchUtil — hq pitch util

Functions

Types and Values

Object Hierarchy

    GBoxed
    ╰── AgsHQPitchUtil

Includes

#include <ags/audio/ags_hq_pitch_util.h>

Description

Utility functions to pitch.

Functions

ags_hq_pitch_util_compute_s8 ()

void
ags_hq_pitch_util_compute_s8 (gint8 *buffer,
                              guint buffer_length,
                              guint samplerate,
                              gdouble base_key,
                              gdouble tuning);

ags_hq_pitch_util_compute_s8 is deprecated and should not be used in newly-written code.

Apply pitch filter.

Parameters

buffer

the audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

base_key

the base key

 

tuning

the tuning

 

Since: 3.8.0


ags_hq_pitch_util_compute_s16 ()

void
ags_hq_pitch_util_compute_s16 (gint16 *buffer,
                               guint buffer_length,
                               guint samplerate,
                               gdouble base_key,
                               gdouble tuning);

ags_hq_pitch_util_compute_s16 is deprecated and should not be used in newly-written code.

Apply pitch filter.

Parameters

buffer

the audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

base_key

the base key

 

tuning

the tuning

 

Since: 3.8.0


ags_hq_pitch_util_compute_s24 ()

void
ags_hq_pitch_util_compute_s24 (gint32 *buffer,
                               guint buffer_length,
                               guint samplerate,
                               gdouble base_key,
                               gdouble tuning);

ags_hq_pitch_util_compute_s24 is deprecated and should not be used in newly-written code.

Apply pitch filter.

Parameters

buffer

the audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

base_key

the base key

 

tuning

the tuning

 

Since: 3.8.0


ags_hq_pitch_util_compute_s32 ()

void
ags_hq_pitch_util_compute_s32 (gint32 *buffer,
                               guint buffer_length,
                               guint samplerate,
                               gdouble base_key,
                               gdouble tuning);

ags_hq_pitch_util_compute_s32 is deprecated and should not be used in newly-written code.

Apply pitch filter.

Parameters

buffer

the audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

base_key

the base key

 

tuning

the tuning

 

Since: 3.8.0


ags_hq_pitch_util_compute_s64 ()

void
ags_hq_pitch_util_compute_s64 (gint64 *buffer,
                               guint buffer_length,
                               guint samplerate,
                               gdouble base_key,
                               gdouble tuning);

ags_hq_pitch_util_compute_s64 is deprecated and should not be used in newly-written code.

Apply pitch filter.

Parameters

buffer

the audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

base_key

the base key

 

tuning

the tuning

 

Since: 3.8.0


ags_hq_pitch_util_compute_float ()

void
ags_hq_pitch_util_compute_float (gfloat *buffer,
                                 guint buffer_length,
                                 guint samplerate,
                                 gdouble base_key,
                                 gdouble tuning);

ags_hq_pitch_util_compute_float is deprecated and should not be used in newly-written code.

Apply pitch filter.

Parameters

buffer

the audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

base_key

the base key

 

tuning

the tuning

 

Since: 3.8.0


ags_hq_pitch_util_compute_double ()

void
ags_hq_pitch_util_compute_double (gdouble *buffer,
                                  guint buffer_length,
                                  guint samplerate,
                                  gdouble base_key,
                                  gdouble tuning);

ags_hq_pitch_util_compute_double is deprecated and should not be used in newly-written code.

Apply pitch filter.

Parameters

buffer

the audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

base_key

the base key

 

tuning

the tuning

 

Since: 3.8.0


ags_hq_pitch_util_compute_complex ()

void
ags_hq_pitch_util_compute_complex (AgsComplex *buffer,
                                   guint buffer_length,
                                   guint samplerate,
                                   gdouble base_key,
                                   gdouble tuning);

ags_hq_pitch_util_compute_complex is deprecated and should not be used in newly-written code.

Apply pitch filter.

Parameters

buffer

the audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

base_key

the base key

 

tuning

the tuning

 

Since: 3.8.0


ags_hq_pitch_util_get_type ()

GType
ags_hq_pitch_util_get_type (void);

Types and Values

AGS_TYPE_HQ_PITCH_UTIL

#define AGS_TYPE_HQ_PITCH_UTIL         (ags_hq_pitch_util_get_type())

struct AgsHQPitchUtil

struct AgsHQPitchUtil {
  gpointer source;
  guint source_stride;

  gpointer destination;
  guint destination_stride;

  gpointer low_mix_buffer;
  gpointer new_mix_buffer;

  guint buffer_length;
  guint format;
  guint samplerate;

  gdouble base_key;
  gdouble tuning;

  AgsLinearInterpolateUtil *linear_interpolate_util;
};