mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +00:00
Starting linked-modulators branch.
Adding new modulator enum and macros: - add FLUID_MOD_LINK_SRC src1 in enum fluid_mod_src. - add macros FLUID_SFMOD_LINK_DEST FLUID_MOD_LINK_DEST.
This commit is contained in:
parent
8b1820580b
commit
b8e7d853ea
2 changed files with 7 additions and 1 deletions
|
@ -66,7 +66,8 @@ enum fluid_mod_src
|
|||
FLUID_MOD_KEYPRESSURE = 10, /**< MIDI key pressure */
|
||||
FLUID_MOD_CHANNELPRESSURE = 13, /**< MIDI channel pressure */
|
||||
FLUID_MOD_PITCHWHEEL = 14, /**< Pitch wheel */
|
||||
FLUID_MOD_PITCHWHEELSENS = 16 /**< Pitch wheel sensitivity */
|
||||
FLUID_MOD_PITCHWHEELSENS = 16, /**< Pitch wheel sensitivity */
|
||||
FLUID_MOD_LINK_SRC = 127 /**< src1 is linked to another modulator */
|
||||
};
|
||||
|
||||
FLUIDSYNTH_API fluid_mod_t *new_fluid_mod(void);
|
||||
|
|
|
@ -43,6 +43,11 @@ struct _fluid_mod_t
|
|||
fluid_mod_t *next;
|
||||
};
|
||||
|
||||
/* bit link of destination in soundfont modulators */
|
||||
#define FLUID_SFMOD_LINK_DEST (1 << 15) /* Link is bit 15 of destination */
|
||||
/* bit link of destination in fluidsynth modulators */
|
||||
#define FLUID_MOD_LINK_DEST (1 << 7) /* Link is bit 7 of destination */
|
||||
|
||||
fluid_real_t fluid_mod_get_value(fluid_mod_t *mod, fluid_voice_t *voice);
|
||||
int fluid_mod_check_sources(const fluid_mod_t *mod, char *name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue