![]() |
![]() |
![]() |
GPS04 Reference Manual | ![]() |
---|---|---|---|---|
#include <PS04-modulator.h> PS04Modulator; PS04ModulatorType ps04_modulator_get_type (const PS04Modulator *self); const char* ps04_modulator_get_type_string (const PS04Modulator *self); const PS04VibeModulation* ps04_modulator_get_vibe (const PS04Modulator *self); const PS04WideModulation* ps04_modulator_get_wide (const PS04Modulator *self); PS04VibeModulation; int ps04_vibe_modulation_get_depth (const PS04VibeModulation *self); int ps04_vibe_modulation_get_rate (const PS04VibeModulation *self); int ps04_vibe_modulation_get_balance (const PS04VibeModulation *self); PS04WideModulation; int ps04_wide_modulation_get_time (const PS04WideModulation *self); int ps04_wide_modulation_get_wet_level (const PS04WideModulation *self); int ps04_wide_modulation_get_dry_level (const PS04WideModulation *self);
The PS04Modulator class represents the modulator module of a PS-04
insert effect. The modulation may be one of 17 types, each with
its own set of parameters, which you get to by first calling
ps04_modulator_get_type()
and then one of the accessor methods
(ps04_modulator_get_vibe()
et al.) such as within a switch statement.
typedef struct { guint8 type; union { PS04VibeModulation vibe; PS04WideModulation wide; } params; } PS04Modulator;
PS04ModulatorType ps04_modulator_get_type (const PS04Modulator *self);
self : |
A pointer to the modulator. |
Returns : | The modulator type. |
const char* ps04_modulator_get_type_string (const PS04Modulator *self);
self : |
A pointer to the modulator. |
Returns : | A display string representing the modulator type. |
const PS04VibeModulation* ps04_modulator_get_vibe (const PS04Modulator *self);
Provides access to the VIBE modulation parameters if that's the modulator type. Otherwise flags an error.
self : |
A pointer to the modulator. |
Returns : | A pointer to the vibe modulation parameters. |
const PS04WideModulation* ps04_modulator_get_wide (const PS04Modulator *self);
Provides access to the WIDE modulation parameters if that's the modulator type. Otherwise flags an error.
self : |
A pointer to the modulator. |
Returns : | A pointer to the wide modulation parameters. |
int ps04_vibe_modulation_get_depth (const PS04VibeModulation *self);
This function returns the effect depth.
self : |
A pointer to the vibe modulation struct. |
Returns : | the depth value (0-10). |
int ps04_vibe_modulation_get_rate (const PS04VibeModulation *self);
This function returns the effect speed.
self : |
A pointer to the vibe modulation struct. |
Returns : | the rate value (1-30). |
int ps04_vibe_modulation_get_balance (const PS04VibeModulation *self);
This function returns the balance between the direct sound and effect sound.
self : |
A pointer to the vibe modulation struct. |
Returns : | the balance value (0-30). |
typedef struct { guint8 time; guint8 wetlvl; guint8 drylvl; } PS04WideModulation;
int ps04_wide_modulation_get_time (const PS04WideModulation *self);
This function returns the delay time.
self : |
A pointer to the wide modulation struct. |
Returns : | the time value (1-64). |
int ps04_wide_modulation_get_wet_level (const PS04WideModulation *self);
This function returns the mix amount of the effect sound.
self : |
A pointer to the wide modulation struct. |
Returns : | the level value (0-30). |
int ps04_wide_modulation_get_dry_level (const PS04WideModulation *self);
This function returns the mix amount of the direct sound.
self : |
A pointer to the wide modulation struct. |
Returns : | the level value (0-30). |