Top | ![]() |
![]() |
![]() |
![]() |
gboolean | ipatch_sf2_gen_item_get_amount () |
void | ipatch_sf2_gen_item_set_amount () |
void | ipatch_sf2_gen_item_set_gen_flag () |
guint | ipatch_sf2_gen_item_count_set () |
void | ipatch_sf2_gen_item_copy_all () |
void | ipatch_sf2_gen_item_copy_set () |
void | ipatch_sf2_gen_item_set_note_range () |
void | ipatch_sf2_gen_item_set_velocity_range () |
gboolean | ipatch_sf2_gen_item_in_range () |
gboolean | ipatch_sf2_gen_item_intersect_test () |
GParamSpec * | ipatch_sf2_gen_item_class_get_pspec () |
GParamSpec * | ipatch_sf2_gen_item_class_get_pspec_set () |
void | ipatch_sf2_gen_item_iface_install_properties () |
gboolean | ipatch_sf2_gen_item_iface_set_property () |
gboolean | ipatch_sf2_gen_item_iface_get_property () |
Provides an interface for items which have SoundFont generator properties. SoundFont generators are synthesis parameters used by IpatchSF2Preset, IpatchSF2Inst, IpatchSF2PZone and IpatchSF2IZone objects.
gboolean ipatch_sf2_gen_item_get_amount (IpatchSF2GenItem *item
,guint genid
,IpatchSF2GenAmount *out_amt
);
Get a generator amount from an item with generator properties.
item |
Item with generators to get value from |
|
genid |
Generator ID (IpatchSF2GenType) of value to get |
|
out_amt |
Pointer to store generator amount to. |
[out] |
void ipatch_sf2_gen_item_set_amount (IpatchSF2GenItem *item
,guint genid
,IpatchSF2GenAmount *amt
);
Set a generator amount for an item with generators.
IpatchItem property notify is done for the property and possibly the "-set" property if it was unset before.
item |
Item with generators to set value in |
|
genid |
Generator ID (IpatchSF2GenType) of generator to set |
|
amt |
Value to set generator to |
void ipatch_sf2_gen_item_set_gen_flag (IpatchSF2GenItem *item
,guint genid
,gboolean setflag
);
Sets the value of a generator "set" flag in an item with generators.
IpatchItem property notify is done for the property and possibly the "-set" property if it was set before.
item |
Item with generator properties to set value of a gen "set" flag of |
|
genid |
Generator ID (IpatchSF2GenType) of generator to set "set" flag value of |
|
setflag |
If |
guint
ipatch_sf2_gen_item_count_set (IpatchSF2GenItem *item
);
Get count of "set" generators in an item with generators.
void ipatch_sf2_gen_item_copy_all (IpatchSF2GenItem *item
,IpatchSF2GenArray *array
);
Copies an item's generators to a caller supplied generator array.
void ipatch_sf2_gen_item_copy_set (IpatchSF2GenItem *item
,IpatchSF2GenArray *array
);
Copies a item's "set" generators to a caller supplied generator array.
This function differs from ipatch_sf2_gen_item_copy_all()
in that it
only copies generators that are set. It can be used to override values
in one array with set values in another. Note that this doesn't change
any generators in item
, despite "set" being in the name.
void ipatch_sf2_gen_item_set_note_range (IpatchSF2GenItem *item
,int low
,int high
);
Set the MIDI note range that an item with generators is active on. Only a convenience function really.
void ipatch_sf2_gen_item_set_velocity_range (IpatchSF2GenItem *item
,int low
,int high
);
Set the MIDI velocity range that an item with generators is active on. Only a convenience function really.
gboolean ipatch_sf2_gen_item_in_range (IpatchSF2GenItem *item
,int note
,int velocity
);
Check if a note and velocity falls in the ranges of an item with generators
gboolean ipatch_sf2_gen_item_intersect_test (IpatchSF2GenItem *item
,const IpatchSF2GenArray *genarray
);
Check if a given item's note and velocity ranges intersect with those in a generator array.
GParamSpec * ipatch_sf2_gen_item_class_get_pspec (GObjectClass *klass
,guint genid
);
Get the parameter specification for a given generator ID and object class.
[skip]
GParamSpec * ipatch_sf2_gen_item_class_get_pspec_set (GObjectClass *klass
,guint genid
);
Get a "-set" property parameter specification for a given generator ID and object class.
[skip]
void ipatch_sf2_gen_item_iface_install_properties (GObjectClass *klass
,IpatchSF2GenPropsType propstype
,GParamSpec ***specs
,GParamSpec ***setspecs
);
Installs generator item properties on the provided klass
.
Used internally in IpatchSF2GenItemIface init functions.
[skip]
klass |
Object class to install properties on |
|
propstype |
Type of properties to install (instrument/preset) |
|
specs |
Location to store a pointer to an allocated array of parameter specs which should get copied to the interface's specs field and then freed |
|
setspecs |
Location to store a pointer to an allocated array of parameter specs which should get copied to the interface's setspecs field and then freed |
gboolean ipatch_sf2_gen_item_iface_set_property (IpatchSF2GenItem *item
,guint property_id
,const GValue *value
);
Used internally for classes with generators, to set values thereof.
[skip]
gboolean ipatch_sf2_gen_item_iface_get_property (IpatchSF2GenItem *item
,guint property_id
,GValue *value
);
Used internally for classes with generator properties, to get values thereof.
[skip]