Top | ![]() |
![]() |
![]() |
![]() |
GSList * | ipatch_sf2_mod_item_get_mods () |
void | ipatch_sf2_mod_item_set_mods () |
void | ipatch_sf2_mod_item_set_mods_copy () |
void | ipatch_sf2_mod_item_add () |
void | ipatch_sf2_mod_item_insert () |
void | ipatch_sf2_mod_item_remove () |
void | ipatch_sf2_mod_item_change () |
guint | ipatch_sf2_mod_item_count () |
An interface type which is used by IpatchSF2Preset, IpatchSF2Inst, IpatchSF2PZone and IpatchSF2IZone objects to add modulator realtime effect functionality.
GSList *
ipatch_sf2_mod_item_get_mods (IpatchSF2ModItem *item
);
Gets a list of modulators from an item with modulators. List should be freed
with ipatch_sf2_mod_list_free()
(free_mods set to TRUE
) when finished
with it.
New list of modulators (IpatchSF2Mod) in item
or NULL
if no modulators.
Remember to free it with ipatch_sf2_mod_list_free()
when finished.
[element-type Ipatch.SF2Mod][transfer full][nullable]
void ipatch_sf2_mod_item_set_mods (IpatchSF2ModItem *item
,GSList *mod_list
,int flags
);
Sets the complete modulator list of an item with modulators.
If IPATCH_SF2_MOD_NO_NOTIFY is not in flags
then IpatchItem property
notify is done.
[skip]
item |
Item with modulators |
|
mod_list |
Modulator list to assign to zone. |
[element-type Ipatch.SF2Mod] |
flags |
Flags for controlling list duplication and item property
notification (IpatchSF2ModFlags). If IPATCH_SF2_MOD_NO_DUPLICATE
is set then ownership of |
[type IpatchSF2ModFlags] |
void ipatch_sf2_mod_item_set_mods_copy (IpatchSF2ModItem *item
,GSList *mod_list
);
Sets the modulator list of an item with modulators.
[rename-to ipatch_sf2_mod_item_set_mods]
void ipatch_sf2_mod_item_add (IpatchSF2ModItem *item
,const IpatchSF2Mod *mod
);
void ipatch_sf2_mod_item_insert (IpatchSF2ModItem *item
,const IpatchSF2Mod *mod
,int pos
);
Inserts a modulator into an item's modulator list. NOTE: Does not check for duplicates!
void ipatch_sf2_mod_item_remove (IpatchSF2ModItem *item
,const IpatchSF2Mod *mod
);
Remove a modulator from an item with modulators. The modulator values in mod
are used to search the modulator list. The first modulator
that matches all fields in mod
is removed.
void ipatch_sf2_mod_item_change (IpatchSF2ModItem *item
,const IpatchSF2Mod *oldmod
,const IpatchSF2Mod *newmod
);
Sets the values of an existing modulator in an item with modulators. The
modulator list in item is searched for a modulator that matches the values in
oldmod
. If a modulator is found its values are set to those in newmod
.
If it is not found, nothing is done.
guint
ipatch_sf2_mod_item_count (IpatchSF2ModItem *item
);
Count number of modulators in an item with modulators.