| Top |
| IpatchDLS2Inst * | ipatch_dls2_inst_new () |
| #define | ipatch_dls2_inst_get_regions() |
| IpatchDLS2Inst * | ipatch_dls2_inst_first () |
| IpatchDLS2Inst * | ipatch_dls2_inst_next () |
| char * | ipatch_dls2_inst_get_info () |
| void | ipatch_dls2_inst_set_info () |
| void | ipatch_dls2_inst_set_midi_locale () |
| void | ipatch_dls2_inst_get_midi_locale () |
| int | ipatch_dls2_inst_compare () |
| GSList * | ipatch_dls2_inst_get_conns () |
| void | ipatch_dls2_inst_set_conn () |
| void | ipatch_dls2_inst_unset_conn () |
| void | ipatch_dls2_inst_unset_all_conns () |
| guint | ipatch_dls2_inst_conn_count () |
| char * | archive-location | Read / Write |
| char * | artist | Read / Write |
| int | bank | 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 |
| gboolean | percussion | Read / Write |
| char * | product | Read / Write |
| int | program | Read / Write |
| char * | software | Read / Write |
| char * | source | Read / Write |
| char * | source-form | Read / Write |
| char * | subject | Read / Write |
| char * | technician | Read / Write |
| #define | IPATCH_DLS2_INST_BANK_MAX |
| enum | IpatchDLS2InstFlags |
| #define | IPATCH_DLS2_INST_UNUSED_FLAG_SHIFT |
Defines a DLS instrument object. DLS instruments are the toplevel objects in the DLS instrument file tree hierarchy.
IpatchDLS2Inst *
ipatch_dls2_inst_new (void);
Create a new DLS instrument object.
IpatchDLS2Inst *
ipatch_dls2_inst_first (IpatchIter *iter);
Gets the first item in an instrument iterator. A convenience wrapper for
ipatch_iter_first().
[skip]
IpatchDLS2Inst *
ipatch_dls2_inst_next (IpatchIter *iter);
Gets the next item in an instrument iterator. A convenience wrapper for
ipatch_iter_next().
[skip]
char * ipatch_dls2_inst_get_info (IpatchDLS2Inst *inst,guint32 fourcc);
Get a DLS instrument info string by FOURCC integer ID (integer representation of a 4 character RIFF chunk ID, see IpatchRiff).
void ipatch_dls2_inst_set_info (IpatchDLS2Inst *inst,guint32 fourcc,const char *val);
Sets an INFO value in a DLS instrument object. Emits changed signal.
void ipatch_dls2_inst_set_midi_locale (IpatchDLS2Inst *inst,int bank,int program);
Sets the MIDI locale of a DLS instrument (bank and program numbers).
void ipatch_dls2_inst_get_midi_locale (IpatchDLS2Inst *inst,int *bank,int *program);
Gets the MIDI locale of a DLS instrument (bank and program numbers).
int ipatch_dls2_inst_compare (const IpatchDLS2Inst *p1,const IpatchDLS2Inst *p2);
Instrument comparison function for sorting. Compare two instruments by their MIDI bank:program numbers. Note that this function is compatible with GCompareFunc and can therefore be used with g_list_sort, etc.
FIXME: Also note that percussion instruments are sorted after regular ones.
GSList *
ipatch_dls2_inst_get_conns (IpatchDLS2Inst *inst);
Gets a list of connections from a DLS instrument. List should be freed with
ipatch_dls2_conn_list_free() (free_conns set to TRUE) when finished
with it.
New list of connections
(IpatchDLS2Conn) in inst
or NULL if no connections. Remember to free it
when finished.
[element-type IpatchDLS2Conn][transfer full]
void ipatch_dls2_inst_set_conn (IpatchDLS2Inst *inst,const IpatchDLS2Conn *conn);
Set a global DLS connection in an instrument. See
ipatch_dls2_conn_list_set() for more details.
void ipatch_dls2_inst_unset_conn (IpatchDLS2Inst *inst,const IpatchDLS2Conn *conn);
Remove a global DLS connection from an instrument. See
ipatch_dls2_conn_list_unset() for more details.
void
ipatch_dls2_inst_unset_all_conns (IpatchDLS2Inst *inst);
Remove all global connections in an instrument.
guint
ipatch_dls2_inst_conn_count (IpatchDLS2Inst *inst);
Count number of connections in a instrument
“archive-location” property “archive-location” char *
Location where subject is archived.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“artist” property “artist” char *
Original artist.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“bank” property “bank” int
MIDI bank number.
Owner: IpatchDLS2Inst
Flags: Read / Write
Allowed values: [0,16383]
Default value: 0
“comment” property “comment” char *
Comments.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“commissioned” property “commissioned” char *
Who commissioned the material.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“copyright” property “copyright” char *
Copyright.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“date” property “date” char *
Creation date (YYYY-MM-DD).
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“engineer” property “engineer” char *
Engineers separated by "; ".
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“genre” property “genre” char *
Genre.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“keywords” property “keywords” char *
Keywords (separated by "; ").
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“medium” property “medium” char *
Original medium of the material (record, CD, etc).
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“name” property “name” char *
Name.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: "untitled"
“percussion” property “percussion” gboolean
Percussion instrument?.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: FALSE
“product” property “product” char *
Product intended for.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“program” property “program” int
MIDI program number.
Owner: IpatchDLS2Inst
Flags: Read / Write
Allowed values: [0,127]
Default value: 0
“software” property “software” char *
Editor software used.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“source” property “source” char *
Source of the original material.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“source-form” property “source-form” char *
Original source that was digitized.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL
“subject” property “subject” char *
Subject of the material.
Owner: IpatchDLS2Inst
Flags: Read / Write
Default value: NULL