sound_set_audio_file
Assign an imported audio asset to an instrument by specifying the instrument and audio GUIDs, and verify the attachment before returning to ensure correct assignment.
Instructions
Assign an imported audio asset to an instrument.
Reads the assignment back before returning — a guid alone isn't
proof the audio actually attached, only that the JS call didn't
throw. If audioFileGuid comes back null, the assignment silently
didn't take (this raises instead of reporting a false success).
Args: target: Instrument {guid} or path. audio: Asset {guid} from audio_import.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio | Yes | ||
| target | Yes |