libinstpatch Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
IpatchSF2Preset; IpatchSF2Preset * ipatch_sf2_preset_new (void
); #define ipatch_sf2_preset_get_zones (preset) IpatchSF2Preset * ipatch_sf2_preset_first (IpatchIter *iter
); IpatchSF2Preset * ipatch_sf2_preset_next (IpatchIter *iter
); void ipatch_sf2_preset_new_zone (IpatchSF2Preset *preset
,IpatchSF2Inst *inst
); void ipatch_sf2_preset_set_name (IpatchSF2Preset *preset
,const char *name
); char * ipatch_sf2_preset_get_name (IpatchSF2Preset *preset
); void ipatch_sf2_preset_set_midi_locale (IpatchSF2Preset *preset
,int bank
,int program
); void ipatch_sf2_preset_get_midi_locale (IpatchSF2Preset *preset
,int *bank
,int *program
); int ipatch_sf2_preset_compare (const IpatchSF2Preset *p1
,const IpatchSF2Preset *p2
);
"attenuation" gint : Read / Write "attenuation-set" gboolean : Read / Write "bank" gint : Read / Write "chorus" gint : Read / Write "chorus-set" gboolean : Read / Write "coarse-tune" gint : Read / Write "coarse-tune-set" gboolean : Read / Write "filter-cutoff" gint : Read / Write "filter-cutoff-set" gboolean : Read / Write "filter-q" gint : Read / Write "filter-q-set" gboolean : Read / Write "fine-tune-override" gint : Read / Write "fine-tune-override-set" gboolean : Read / Write "genre" guint : Read / Write "library" guint : Read / Write "mod-env-attack" gint : Read / Write "mod-env-attack-set" gboolean : Read / Write "mod-env-decay" gint : Read / Write "mod-env-decay-set" gboolean : Read / Write "mod-env-delay" gint : Read / Write "mod-env-delay-set" gboolean : Read / Write "mod-env-hold" gint : Read / Write "mod-env-hold-set" gboolean : Read / Write "mod-env-release" gint : Read / Write "mod-env-release-set" gboolean : Read / Write "mod-env-sustain" gint : Read / Write "mod-env-sustain-set" gboolean : Read / Write "mod-env-to-filter-cutoff" gint : Read / Write "mod-env-to-filter-cutoff-set" gboolean : Read / Write "mod-env-to-pitch" gint : Read / Write "mod-env-to-pitch-set" gboolean : Read / Write "mod-lfo-delay" gint : Read / Write "mod-lfo-delay-set" gboolean : Read / Write "mod-lfo-freq" gint : Read / Write "mod-lfo-freq-set" gboolean : Read / Write "mod-lfo-to-filter-cutoff" gint : Read / Write "mod-lfo-to-filter-cutoff-set" gboolean : Read / Write "mod-lfo-to-pitch" gint : Read / Write "mod-lfo-to-pitch-set" gboolean : Read / Write "mod-lfo-to-volume" gint : Read / Write "mod-lfo-to-volume-set" gboolean : Read / Write "morphology" guint : Read / Write "name" gchar* : Read / Write "note-range" IpatchRange* : Read / Write "note-range-set" gboolean : Read / Write "note-to-mod-env-decay" gint : Read / Write "note-to-mod-env-decay-set" gboolean : Read / Write "note-to-mod-env-hold" gint : Read / Write "note-to-mod-env-hold-set" gboolean : Read / Write "note-to-vol-env-decay" gint : Read / Write "note-to-vol-env-decay-set" gboolean : Read / Write "note-to-vol-env-hold" gint : Read / Write "note-to-vol-env-hold-set" gboolean : Read / Write "pan" gint : Read / Write "pan-set" gboolean : Read / Write "percussion" gboolean : Read / Write "program" gint : Read / Write "reverb" gint : Read / Write "reverb-set" gboolean : Read / Write "scale-tune" gint : Read / Write "scale-tune-set" gboolean : Read / Write "velocity-range" IpatchRange* : Read / Write "velocity-range-set" gboolean : Read / Write "vib-lfo-delay" gint : Read / Write "vib-lfo-delay-set" gboolean : Read / Write "vib-lfo-freq" gint : Read / Write "vib-lfo-freq-set" gboolean : Read / Write "vib-lfo-to-pitch" gint : Read / Write "vib-lfo-to-pitch-set" gboolean : Read / Write "vol-env-attack" gint : Read / Write "vol-env-attack-set" gboolean : Read / Write "vol-env-decay" gint : Read / Write "vol-env-decay-set" gboolean : Read / Write "vol-env-delay" gint : Read / Write "vol-env-delay-set" gboolean : Read / Write "vol-env-hold" gint : Read / Write "vol-env-hold-set" gboolean : Read / Write "vol-env-release" gint : Read / Write "vol-env-release-set" gboolean : Read / Write "vol-env-sustain" gint : Read / Write "vol-env-sustain-set" gboolean : Read / Write
SoundFont presets are children of IpatchSF2 objects and define individual instruments mapped to MIDI bank/program numbers.
IpatchSF2Preset * ipatch_sf2_preset_new (void
);
Create a new SoundFont preset object.
Returns : |
New SoundFont preset with a reference count of 1. Caller owns the reference and removing it will destroy the item, unless another reference is added (if its parented for example). |
IpatchSF2Preset * ipatch_sf2_preset_first (IpatchIter *iter
);
Gets the first item in a preset iterator. A convenience wrapper for
ipatch_iter_first()
.
|
Patch item iterator containing IpatchSF2Preset items |
Returns : |
The first preset in iter or NULL if empty.
|
IpatchSF2Preset * ipatch_sf2_preset_next (IpatchIter *iter
);
Gets the next item in a preset iterator. A convenience wrapper for
ipatch_iter_next()
.
|
Patch item iterator containing IpatchSF2Preset items |
Returns : |
The next preset in iter or NULL if at the end of the list.
|
void ipatch_sf2_preset_new_zone (IpatchSF2Preset *preset
,IpatchSF2Inst *inst
);
A convenience function for quickly creating a new preset zone, adding it
to preset
and setting the zone's referenced instrument to inst
.
|
SoundFont preset |
|
Referenced instrument for new zone |
void ipatch_sf2_preset_set_name (IpatchSF2Preset *preset
,const char *name
);
Sets the name of a SoundFont preset.
|
Preset to set name of |
|
Value to set name to |
char * ipatch_sf2_preset_get_name (IpatchSF2Preset *preset
);
Gets the name of a SoundFont preset.
|
Preset to get name of |
Returns : |
Name of preset or NULL if not set. String value should be freed
when finished with it.
|
void ipatch_sf2_preset_set_midi_locale (IpatchSF2Preset *preset
,int bank
,int program
);
Sets the MIDI locale of a preset (bank and program numbers).
|
Preset to set MIDI locale of |
|
MIDI bank number to assign to preset |
|
MIDI program number to assign to preset |
void ipatch_sf2_preset_get_midi_locale (IpatchSF2Preset *preset
,int *bank
,int *program
);
Gets the MIDI locale of a SoundFont preset (bank and program numbers).
int ipatch_sf2_preset_compare (const IpatchSF2Preset *p1
,const IpatchSF2Preset *p2
);
Preset comparison function for sorting. Compare two presets by their MIDI bank:program numbers. Note that this function is compatible with GCompareFunc and can therefore be used with g_list_sort, etc.
|
First preset in comparison |
|
Second preset in comparison |
Returns : |
Comparison result that is less than, equal to, or greater than zero
if p1 is found, respectively, to be less than, to match, or be greater
than p2 .
|
"attenuation"
property"attenuation" gint : Read / Write
Volume attenuation.
Allowed values: [-1440,1440]
Default value: 0
"bank"
property"bank" gint : Read / Write
MIDI bank number.
Allowed values: [0,128]
Default value: 0
"chorus"
property"chorus" gint : Read / Write
Chorus.
Allowed values: [-1000,1000]
Default value: 0
"coarse-tune"
property"coarse-tune" gint : Read / Write
Coarse Tune.
Allowed values: [-240,240]
Default value: 0
"filter-cutoff"
property"filter-cutoff" gint : Read / Write
Low pass filter cutoff frequency.
Allowed values: [-12000,12000]
Default value: 0
"filter-q"
property"filter-q" gint : Read / Write
Low pass filter Q factor.
Allowed values: [-960,960]
Default value: 0
"fine-tune-override"
property"fine-tune-override" gint : Read / Write
Fine Tune.
Allowed values: [-198,198]
Default value: 0
"fine-tune-override-set"
property"fine-tune-override-set" gboolean : Read / Write
Default value: FALSE
"mod-env-attack"
property"mod-env-attack" gint : Read / Write
Modulation envelope attack.
Allowed values: [-20000,20000]
Default value: 0
"mod-env-decay"
property"mod-env-decay" gint : Read / Write
Modulation envelope decay.
Allowed values: [-20000,20000]
Default value: 0
"mod-env-delay"
property"mod-env-delay" gint : Read / Write
Modulation envelope delay.
Allowed values: [-17000,17000]
Default value: 0
"mod-env-hold"
property"mod-env-hold" gint : Read / Write
Modulation envelope hold.
Allowed values: [-17000,17000]
Default value: 0
"mod-env-release"
property"mod-env-release" gint : Read / Write
Modulation envelope release.
Allowed values: [-20000,20000]
Default value: 0
"mod-env-release-set"
property"mod-env-release-set" gboolean : Read / Write
Default value: FALSE
"mod-env-sustain"
property"mod-env-sustain" gint : Read / Write
Modulation envelope sustain.
Allowed values: [-1000,1000]
Default value: 0
"mod-env-sustain-set"
property"mod-env-sustain-set" gboolean : Read / Write
Default value: FALSE
"mod-env-to-filter-cutoff"
property"mod-env-to-filter-cutoff" gint : Read / Write
Modulation envelope to filter cutoff.
Allowed values: [-24000,24000]
Default value: 0
"mod-env-to-filter-cutoff-set"
property"mod-env-to-filter-cutoff-set" gboolean : Read / Write
Default value: FALSE
"mod-env-to-pitch"
property"mod-env-to-pitch" gint : Read / Write
Modulation envelope to pitch.
Allowed values: [-24000,24000]
Default value: 0
"mod-env-to-pitch-set"
property"mod-env-to-pitch-set" gboolean : Read / Write
Default value: FALSE
"mod-lfo-delay"
property"mod-lfo-delay" gint : Read / Write
Modulation oscillator delay.
Allowed values: [-17000,17000]
Default value: 0
"mod-lfo-freq"
property"mod-lfo-freq" gint : Read / Write
Modulation oscillator frequency.
Allowed values: [-20500,20500]
Default value: 0
"mod-lfo-to-filter-cutoff"
property"mod-lfo-to-filter-cutoff" gint : Read / Write
Modulation oscillator to filter cutoff.
Allowed values: [-24000,24000]
Default value: 0
"mod-lfo-to-filter-cutoff-set"
property"mod-lfo-to-filter-cutoff-set" gboolean : Read / Write
Default value: FALSE
"mod-lfo-to-pitch"
property"mod-lfo-to-pitch" gint : Read / Write
Modulation oscillator to pitch.
Allowed values: [-24000,24000]
Default value: 0
"mod-lfo-to-pitch-set"
property"mod-lfo-to-pitch-set" gboolean : Read / Write
Default value: FALSE
"mod-lfo-to-volume"
property"mod-lfo-to-volume" gint : Read / Write
Modulation oscillator to volume.
Allowed values: [-1920,1920]
Default value: 0
"mod-lfo-to-volume-set"
property"mod-lfo-to-volume-set" gboolean : Read / Write
Default value: FALSE
"note-to-mod-env-decay"
property"note-to-mod-env-decay" gint : Read / Write
MIDI note to modulation envelope decay.
Allowed values: [-2400,2400]
Default value: 0
"note-to-mod-env-decay-set"
property"note-to-mod-env-decay-set" gboolean : Read / Write
Default value: FALSE
"note-to-mod-env-hold"
property"note-to-mod-env-hold" gint : Read / Write
MIDI note to modulation envelope hold.
Allowed values: [-2400,2400]
Default value: 0
"note-to-mod-env-hold-set"
property"note-to-mod-env-hold-set" gboolean : Read / Write
Default value: FALSE
"note-to-vol-env-decay"
property"note-to-vol-env-decay" gint : Read / Write
MIDI note to volume envelope decay.
Allowed values: [-2400,2400]
Default value: 0
"note-to-vol-env-decay-set"
property"note-to-vol-env-decay-set" gboolean : Read / Write
Default value: FALSE
"note-to-vol-env-hold"
property"note-to-vol-env-hold" gint : Read / Write
MIDI note to volume envelope hold.
Allowed values: [-2400,2400]
Default value: 0
"note-to-vol-env-hold-set"
property"note-to-vol-env-hold-set" gboolean : Read / Write
Default value: FALSE
"percussion"
property"percussion" gboolean : Read / Write
Percussion preset?.
Default value: FALSE
"program"
property"program" gint : Read / Write
MIDI program number.
Allowed values: [0,127]
Default value: 0
"reverb"
property"reverb" gint : Read / Write
Reverb.
Allowed values: [-1000,1000]
Default value: 0
"scale-tune"
property"scale-tune" gint : Read / Write
Scale Tune.
Allowed values: [-1200,1200]
Default value: 0
"vib-lfo-delay"
property"vib-lfo-delay" gint : Read / Write
Vibrato oscillator delay.
Allowed values: [-17000,17000]
Default value: 0
"vib-lfo-freq"
property"vib-lfo-freq" gint : Read / Write
Vibrato oscillator frequency.
Allowed values: [-20500,20500]
Default value: 0
"vib-lfo-to-pitch"
property"vib-lfo-to-pitch" gint : Read / Write
Vibrato oscillator to pitch.
Allowed values: [-24000,24000]
Default value: 0
"vib-lfo-to-pitch-set"
property"vib-lfo-to-pitch-set" gboolean : Read / Write
Default value: FALSE
"vol-env-attack"
property"vol-env-attack" gint : Read / Write
Volume envelope attack.
Allowed values: [-20000,20000]
Default value: 0
"vol-env-decay"
property"vol-env-decay" gint : Read / Write
Volume envelope decay.
Allowed values: [-20000,20000]
Default value: 0
"vol-env-delay"
property"vol-env-delay" gint : Read / Write
Volume envelope delay.
Allowed values: [-17000,17000]
Default value: 0
"vol-env-hold"
property"vol-env-hold" gint : Read / Write
Volume envelope hold.
Allowed values: [-17000,17000]
Default value: 0
"vol-env-release"
property"vol-env-release" gint : Read / Write
Volume envelope release.
Allowed values: [-20000,20000]
Default value: 0
"vol-env-release-set"
property"vol-env-release-set" gboolean : Read / Write
Default value: FALSE
"vol-env-sustain"
property"vol-env-sustain" gint : Read / Write
Volume envelope sustain.
Allowed values: [-1440,1440]
Default value: 0
"vol-env-sustain-set"
property"vol-env-sustain-set" gboolean : Read / Write
Default value: FALSE