| Top |
| IpatchSF2File * | ipatch_sf2_file_new () |
| void | ipatch_sf2_file_set_sample_pos () |
| guint | ipatch_sf2_file_get_sample_pos () |
| void | ipatch_sf2_file_set_sample_size () |
| guint | ipatch_sf2_file_get_sample_size () |
| void | ipatch_sf2_file_set_sample24_pos () |
| guint | ipatch_sf2_file_get_sample24_pos () |
| guint | sample-pos | Read / Write |
| guint | sample-size | Read / Write |
| guint | sample24-pos | Read / Write |
| #define | IPATCH_SFONT_FOURCC_IFIL |
| #define | IPATCH_SFONT_FOURCC_ISNG |
| #define | IPATCH_SFONT_FOURCC_INAM |
| #define | IPATCH_SFONT_FOURCC_IROM |
| #define | IPATCH_SFONT_FOURCC_IVER |
| #define | IPATCH_SFONT_FOURCC_ICRD |
| #define | IPATCH_SFONT_FOURCC_IENG |
| #define | IPATCH_SFONT_FOURCC_IPRD |
| #define | IPATCH_SFONT_FOURCC_ICOP |
| #define | IPATCH_SFONT_FOURCC_ICMT |
| #define | IPATCH_SFONT_FOURCC_ISFT |
| #define | IPATCH_SFONT_NAME_SIZE |
| IpatchSF2Bag | |
| IpatchSF2Ihdr | |
| IpatchSF2Phdr | |
| IpatchSF2Shdr |
IpatchSF2File *
ipatch_sf2_file_new (void);
Create a new SoundFont file object.
void ipatch_sf2_file_set_sample_pos (IpatchSF2File *file,guint sample_pos);
Sets the position of the sample data chunk in a SoundFont file object.
guint
ipatch_sf2_file_get_sample_pos (IpatchSF2File *file);
Gets the position of the sample data chunk in a SoundFont file object.
void ipatch_sf2_file_set_sample_size (IpatchSF2File *file,guint sample_size);
Sets the size of the sample data chunk in a SoundFont file object.
guint
ipatch_sf2_file_get_sample_size (IpatchSF2File *file);
Gets the size of the sample data chunk in a SoundFont file object.
void ipatch_sf2_file_set_sample24_pos (IpatchSF2File *file,guint sample24_pos);
Sets the position of the sample 24 data chunk in a SoundFont file object. This optional chunk contains the lower significant bytes of 24 bit samples.
guint
ipatch_sf2_file_get_sample24_pos (IpatchSF2File *file);
Gets the position of the sample24 data chunk in a SoundFont file object.
#define IPATCH_SFONT_NAME_SIZE 20 /* name string size (Preset/Inst/Sample) */
typedef struct {
guint16 mod_index; /* index into modulator list */
guint16 gen_index; /* index into generator list */
} IpatchSF2Bag;
typedef struct {
char name[20]; /* name of instrument */
guint16 bag_index; /* instrument bag index (#IPFileBag) */
} IpatchSF2Ihdr;
typedef struct {
char name[20]; /* preset name */
guint16 program; /* MIDI program number */
guint16 bank; /* MIDI bank number */
guint16 bag_index; /* index into preset bag (#IPFileBag) */
guint32 library; /* Not used (preserved) */
guint32 genre; /* Not used (preserved) */
guint32 morphology; /* Not used (preserved) */
} IpatchSF2Phdr;
typedef struct {
char name[20]; /* sample name */
guint32 start; /* offset to start of sample */
guint32 end; /* offset to end of sample */
guint32 loop_start; /* offset to start of loop */
guint32 loop_end; /* offset to end of loop */
guint32 rate; /* sample rate recorded at */
guint8 root_note; /* root midi note number */
gint8 fine_tune; /* pitch correction in cents */
guint16 link_index; /* linked sample index for stereo samples */
guint16 type; /* type of sample (see IpatchSF2SampleFlags) */
} IpatchSF2Shdr;
“sample-pos” property “sample-pos” guint
Position in file of sample data chunk.
Owner: IpatchSF2File
Flags: Read / Write
Default value: 0
“sample-size” property “sample-size” guint
Size of sample data chunk, in samples.
Owner: IpatchSF2File
Flags: Read / Write
Default value: 0