| Top |
| IpatchDLS2 * | ipatch_dls2_new () |
| #define | ipatch_dls2_get_insts() |
| #define | ipatch_dls2_get_samples() |
| void | ipatch_dls2_set_file () |
| IpatchDLSFile * | ipatch_dls2_get_file () |
| char * | ipatch_dls2_get_info () |
| void | ipatch_dls2_set_info () |
| char * | ipatch_dls2_make_unique_name () |
| IpatchDLS2Inst * | ipatch_dls2_find_inst () |
| IpatchDLS2Sample * | ipatch_dls2_find_sample () |
| IpatchList * | ipatch_dls2_get_region_references () |
| char * | archive-location | Read / Write |
| char * | artist | Read / Write |
| char * | comment | Read / Write |
| char * | commissioned | Read / Write |
| char * | copyright | Read / Write |
| char * | date | Read / Write |
| char * | engineer | Read / Write |
| char * | genre | Read / Write |
| char * | keywords | Read / Write |
| char * | medium | Read / Write |
| char * | name | Read / Write |
| char * | product | Read / Write |
| char * | software | Read / Write |
| char * | source | Read / Write |
| char * | source-form | Read / Write |
| char * | subject | Read / Write |
| char * | technician | Read / Write |
| char * | version | Read / Write |
GObject
╰── IpatchItem
╰── IpatchContainer
╰── IpatchBase
╰── IpatchDLS2
╰── IpatchGig
void ipatch_dls2_set_file (IpatchDLS2 *dls,IpatchDLSFile *file);
Sets the file object of a DLS object. DLS files are kept open
for sample data that references the file. This function sets a
DLS object's authoritive file. A convenience function, as
ipatch_base_set_file() does the same thing (albeit without more specific
type casting).
IpatchDLSFile *
ipatch_dls2_get_file (IpatchDLS2 *dls);
Gets the file object of a DLS. The returned DLS file object's
reference count has been incremented. The caller owns the reference and is
responsible for removing it with g_object_unref.
A convenience function as ipatch_base_get_file() does the same thing
(albeit without more specific type casting).
char * ipatch_dls2_get_info (IpatchDLS2 *dls,guint32 fourcc);
Get a DLS info string by FOURCC integer ID (integer representation of a 4 character RIFF chunk ID, see IpatchRiff).
void ipatch_dls2_set_info (IpatchDLS2 *dls,guint32 fourcc,const char *val);
Sets an INFO value in a DLS object.
Emits changed signal on DLS object.
char * ipatch_dls2_make_unique_name (IpatchDLS2 *dls,GType child_type,const char *name,const IpatchItem *exclude);
Generates a unique name for the given child_type
in dls
. The name
parameter is used as a base and is modified, by appending a number, to
make it unique (if necessary). The exclude
parameter is used to exclude
an existing dls
child item from the search.
MT-Note: To ensure that an item is actually unique before being
added to a DLS object, ipatch_container_add_unique() should be
used.
IpatchDLS2Inst * ipatch_dls2_find_inst (IpatchDLS2 *dls,const char *name,int bank,int program,const IpatchDLS2Inst *exclude);
Find a instrument by name or bank:program MIDI numbers. If instrument name
and bank
:program
are specified then match for either condition.
If a instrument is found its reference count is incremented before it
is returned. The caller is responsible for removing the reference
with g_object_unref() when finished with it.
dls |
DLS object to search in |
|
name |
Name of instrument to find or |
[nullable] |
bank |
MIDI bank number of instrument to search for or -1 to not search by MIDI bank:program numbers |
|
program |
MIDI program number of instrument to search for, only used
if |
|
exclude |
A instrument to exclude from the search or |
[nullable] |
IpatchDLS2Sample * ipatch_dls2_find_sample (IpatchDLS2 *dls,const char *name,const IpatchDLS2Sample *exclude);
Find a sample by name
in a SoundFont. If a sample is found its
reference count is incremented before it is returned. The caller
is responsible for removing the reference with g_object_unref()
when finished with it.
IpatchList *
ipatch_dls2_get_region_references (IpatchDLS2Sample *sample);
Get list of regions referencing an IpatchDLS2Sample.
New item list containing IpatchDLS2Region objects
that refer to sample
. The returned list has a reference count of 1 which
the caller owns, unreference it when done.
[transfer full]
“archive-location” property “archive-location” char *
Location where subject is archived.
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“artist” property “artist” char *
Original artist.
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“comment” property “comment” char *
Comments.
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“commissioned” property “commissioned” char *
Who commissioned the material.
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“copyright” property “copyright” char *
Copyright.
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“date” property “date” char *
Creation date (YYYY-MM-DD).
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“engineer” property “engineer” char *
Engineers separated by "; ".
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“genre” property “genre” char *
Genre.
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“keywords” property “keywords” char *
Keywords (separated by "; ").
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“medium” property “medium” char *
Original medium of the material (record, CD, etc).
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“name” property “name” char *
Name.
Owner: IpatchDLS2
Flags: Read / Write
Default value: "untitled"
“product” property “product” char *
Product intended for.
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“software” property “software” char *
Editor software used.
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“source” property “source” char *
Source of the original material.
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“source-form” property “source-form” char *
Original source that was digitized.
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“subject” property “subject” char *
Subject of the material.
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL
“technician” property “technician” char *
Technician who sampled the material.
Owner: IpatchDLS2
Flags: Read / Write
Default value: NULL