| Top |
| IpatchSF2SampleChannel | channel | Read / Write |
| int | fine-tune | Read / Write |
| IpatchSF2Sample * | linked-sample | Read / Write |
| guint | loop-end | Read / Write |
| guint | loop-start | Read / Write |
| char * | name | Read / Write |
| gboolean | rom | Read / Write |
| int | root-note | Read / Write |
| IpatchSampleData * | sample-data | Read / Write |
| int | sample-rate | Read / Write |
| enum | IpatchSF2SampleChannel |
| #define | IPATCH_SF2_SAMPLE_RATE_MIN |
| #define | IPATCH_SF2_SAMPLE_RATE_MAX |
| #define | IPATCH_SF2_SAMPLE_LENGTH_MIN |
| enum | IpatchSF2SampleFlags |
| #define | IPATCH_SF2_SAMPLE_UNUSED_FLAG_SHIFT |
SoundFont samples are children of IpatchSF2 objects and are referenced by IpatchSF2IZone objects. They define the audio which is synthesized.
IpatchSF2Sample *
ipatch_sf2_sample_new (void);
Create a new SoundFont sample object.
IpatchSF2Sample *
ipatch_sf2_sample_first (IpatchIter *iter);
Gets the first item in a sample iterator. A convenience wrapper for
ipatch_iter_first().
[skip]
IpatchSF2Sample *
ipatch_sf2_sample_next (IpatchIter *iter);
Gets the next item in a sample iterator. A convenience wrapper for
ipatch_iter_next().
[skip]
void ipatch_sf2_sample_set_name (IpatchSF2Sample *sample,const char *name);
Sets the name of a SoundFont sample.
char *
ipatch_sf2_sample_get_name (IpatchSF2Sample *sample);
Gets the name of a SoundFont sample.
void ipatch_sf2_sample_set_data (IpatchSF2Sample *sample,IpatchSampleData *sampledata);
Set a sample's sample data object.
IpatchSampleData *
ipatch_sf2_sample_get_data (IpatchSF2Sample *sample);
Get the IpatchSampleData item of a sample. Sample data item is referenced
before returning and caller is responsible for unreferencing it with
g_object_unref() when finished with it.
IpatchSampleData *
ipatch_sf2_sample_peek_data (IpatchSF2Sample *sample);
Get the IpatchSampleData item of a sample. Like
ipatch_sf2_sample_get_data() but sample data object is not referenced.
This function should only be used if a reference of the sample data object
is ensured or only the pointer value is of importance.
[skip]
void ipatch_sf2_sample_set_linked (IpatchSF2Sample *sample,IpatchSF2Sample *linked);
Sets the stereo linked sample of a sample item.
IpatchSF2Sample *
ipatch_sf2_sample_get_linked (IpatchSF2Sample *sample);
Get the stereo linked sample from sample
. If a sample is returned the
caller owns a reference and should unref it with g_object_unref()
when finished with it.
IpatchSF2Sample *
ipatch_sf2_sample_peek_linked (IpatchSF2Sample *sample);
Get the stereo linked sample from sample
. Like
ipatch_sf2_sample_get_linked() but sample object is not referenced.
This function should only be used if a reference of the sample object
is ensured or only the pointer value is of importance.
[skip]
void
ipatch_sf2_sample_set_blank (IpatchSF2Sample *sample);
Set the sample data of a sample item to blank data.
#define IPATCH_SF2_SAMPLE_RATE_MIN 400 /* min sample rate (by standard) */
#define IPATCH_SF2_SAMPLE_RATE_MAX 50000 /* max rate (by the standard) */
#define IPATCH_SF2_SAMPLE_LENGTH_MIN 32 /* min length (by the standard) */
“channel” property“channel” IpatchSF2SampleChannel
Channel orientation.
Owner: IpatchSF2Sample
Flags: Read / Write
Default value: IPATCH_SF2_SAMPLE_CHANNEL_MONO
“fine-tune” property “fine-tune” int
Fine tuning in cents.
Owner: IpatchSF2Sample
Flags: Read / Write
Allowed values: [-99,99]
Default value: 0
“linked-sample” property“linked-sample” IpatchSF2Sample *
Stereo linked sample object.
Owner: IpatchSF2Sample
Flags: Read / Write
“loop-end” property “loop-end” guint
Loop end in frames (after loop).
Owner: IpatchSF2Sample
Flags: Read / Write
Default value: 0
“loop-start” property “loop-start” guint
Start of loop in frames.
Owner: IpatchSF2Sample
Flags: Read / Write
Default value: 0
“name” property “name” char *
Name.
Owner: IpatchSF2Sample
Flags: Read / Write
Default value: NULL
“rom” property “rom” gboolean
ROM sample flag.
Owner: IpatchSF2Sample
Flags: Read / Write
Default value: FALSE
“root-note” property “root-note” int
Root MIDI note.
Owner: IpatchSF2Sample
Flags: Read / Write
Allowed values: [0,127]
Default value: 60
“sample-data” property“sample-data” IpatchSampleData *
Sample data.
Owner: IpatchSF2Sample
Flags: Read / Write