search_midi_sounds
Search one instrument's sound catalog by name or category to find matching MIDI sounds and retrieve their program, bank, category, and engine details for use in code.
Instructions
Searches the sound catalog of one instrument: a list of the model's sounds kept in the user's data folder, built from a patch-name file or a sound list the user owns. It finds sounds by words in the name or the category, in any order, with case and spaces ignored. It returns at most 25 matches: the exact name first, then names that start with the words, then names that contain them, then matches in the category only. Each match gives the name as the sound option of .midi() takes it, the program as sent (0-127), the bank when there is one, the category and, for an instrument whose model declares engines, the engine of the sound or that it is in no engine. It says how many more matched. A drum kit is marked (drum kit) and gives its drum map, or says the map is unknown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Words to find in the sound name or its category, in any order; case and spaces do not matter | |
| category | No | Only sounds of this category; case and spaces do not matter | |
| instrument | Yes | An instrument id from instruments.json whose model has a sound catalog |