Did you know ... Search Documentation:
Pack midiutils -- prolog/genmidi.pl
PublicShow source

Instruments are named by terms, some of which are of the form Class/N, where N is an integer and Class is an atom representing a class of instruments, for example piano, epiano, guitar, sax etc. These can be discovered using gm/1.

 gm(-I:instr, -P:byte, -MSB:byte, -LSB:byte) is nondet
 gm(-I:instr) is nondet
True when I is a recognised instrument with General MIDI programme number P and bank most and least significant bytes MSB and LSB.
 perc(-NN:byte, -Name:atom) is nondet
True when note number NN corresponds to named percussion sound. Applies when using one of the kit/_ instruments.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 gm(Arg1)