| libinstpatch Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
IpatchSF2Writer; IpatchSF2Writer * ipatch_sf2_writer_new (IpatchFileHandle *handle,IpatchSF2 *sfont); void ipatch_sf2_writer_set_patch (IpatchSF2Writer *writer,IpatchSF2 *sfont); void ipatch_sf2_writer_set_file_handle (IpatchSF2Writer *writer,IpatchFileHandle *handle); gboolean ipatch_sf2_writer_save (IpatchSF2Writer *writer,GError **err); void ipatch_sf2_write_phdr (IpatchFileHandle *handle,const IpatchSF2Phdr *phdr); void ipatch_sf2_write_ihdr (IpatchFileHandle *handle,const IpatchSF2Ihdr *ihdr); void ipatch_sf2_write_shdr (IpatchFileHandle *handle,const IpatchSF2Shdr *shdr); void ipatch_sf2_write_bag (IpatchFileHandle *handle,const IpatchSF2Bag *bag); void ipatch_sf2_write_mod (IpatchFileHandle *handle,const IpatchSF2Mod *mod); void ipatch_sf2_write_gen (IpatchFileHandle *handle,int genid,const IpatchSF2GenAmount *amount);
IpatchSF2Writer * ipatch_sf2_writer_new (IpatchFileHandle *handle,IpatchSF2 *sfont);
Create a new SoundFont 2 file writer.
void ipatch_sf2_writer_set_patch (IpatchSF2Writer *writer,IpatchSF2 *sfont);
Set the SoundFont patch object to save with a SoundFont writer.
|
SoundFont writer object |
|
SoundFont patch to save |
void ipatch_sf2_writer_set_file_handle (IpatchSF2Writer *writer,IpatchFileHandle *handle);
gboolean ipatch_sf2_writer_save (IpatchSF2Writer *writer,GError **err);
Write a SoundFont object to a file.
void ipatch_sf2_write_phdr (IpatchFileHandle *handle,const IpatchSF2Phdr *phdr);
Buffer writes a preset header into handle from a phdr structure.
|
File handle to buffer writes to, commit after calling this function |
|
Preset header structure to store |
void ipatch_sf2_write_ihdr (IpatchFileHandle *handle,const IpatchSF2Ihdr *ihdr);
Writes an instrument header into handle from a ihdr structure.
|
File handle to buffer writes to, commit after calling this function |
|
Instrument header structure to store |
void ipatch_sf2_write_shdr (IpatchFileHandle *handle,const IpatchSF2Shdr *shdr);
Writes a sample header into handle from a shdr structure.
|
File handle to buffer writes to, commit after calling this function |
|
Sample header structure to store |
void ipatch_sf2_write_bag (IpatchFileHandle *handle,const IpatchSF2Bag *bag);
Writes a preset or instrument bag into handle from a bag structure.
|
File handle to buffer writes to, commit after calling this function |
|
Bag structure to store |
void ipatch_sf2_write_mod (IpatchFileHandle *handle,const IpatchSF2Mod *mod);
Writes a modulator into handle from a mod structure.
|
File handle to buffer writes to, commit after calling this function |
|
Modulator structure to store |
void ipatch_sf2_write_gen (IpatchFileHandle *handle,int genid,const IpatchSF2GenAmount *amount);
Writes a generator into handle from a genid and amount
structure.
|
File handle to buffer writes to, commit after calling this function |
|
ID of generator to store |
|
Generator amount to store |
"migrate-samples" property"migrate-samples" gboolean : Read / Write
Migrate samples to new file.
Default value: FALSE