Top | ![]() |
![]() |
![]() |
![]() |
IpatchVBank * | ipatch_vbank_new () |
#define | ipatch_vbank_get_insts() |
IpatchVBankInst * | ipatch_vbank_find_inst () |
char * | ipatch_vbank_make_unique_name () |
char * | author | Read / Write |
char * | comment | Read / Write |
char * | date | Read / Write |
char * | engine | Read / Write |
char * | name | Read / Write |
char * | parser-version | Read / Write |
char * | require-version | Read / Write |
Virtual banks provide the capability of creating new instrument MIDI maps from components from other files of possibly different types.
IpatchVBankInst * ipatch_vbank_find_inst (IpatchVBank *vbank
,const char *name
,int bank
,int program
,const IpatchVBankInst *exclude
);
Find an instrument by name or bank:preset MIDI numbers. If instrument name
and bank
:program
are specified then match for either condition.
If an 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.
vbank |
VBank 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 |
An instrument to exclude from the search or |
[nullable] |
char * ipatch_vbank_make_unique_name (IpatchVBank *vbank
,const char *name
,const IpatchVBankInst *exclude
);
Generates a unique instrument name for vbank
. 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 vbank
instrument from the search.
MT-Note: To ensure that an item is actually unique before being
added to a VBank object, ipatch_container_add_unique()
should be
used.
“author”
property “author” char *
Author of file.
Owner: IpatchVBank
Flags: Read / Write
Default value: NULL
“comment”
property “comment” char *
Comments.
Owner: IpatchVBank
Flags: Read / Write
Default value: NULL
“date”
property “date” char *
Creation date.
Owner: IpatchVBank
Flags: Read / Write
Default value: NULL
“engine”
property “engine” char *
Synthesis engine.
Owner: IpatchVBank
Flags: Read / Write
Default value: NULL
“name”
property “name” char *
Descriptive name.
Owner: IpatchVBank
Flags: Read / Write
Default value: NULL
“parser-version”
property “parser-version” char *
Parser version.
Owner: IpatchVBank
Flags: Read / Write
Default value: "1.0"