render_audio
Convert Pyxel sound or music to WAV format and analyze audio waveforms to extract note sequences with timing, frequency, and volume data for game development verification.
Instructions
Render a Pyxel sound or music to WAV and return waveform analysis.
Runs the script to set up sounds (without starting the game loop), then renders the specified sound or music to WAV and analyzes the audio. Returns note sequence with timing, frequency, and volume data.
Args: script_path: Absolute path to the .py script to run. sound_index: Sound slot to render, 0-63 (default: 0). Ignored when music_index is set. duration_sec: Duration in seconds. 0 = auto-detect from sound length (10s for music). timeout: Maximum seconds to wait for the script (default: 10). music_index: Music slot to render, 0-7. When set (>=0), renders the full multi-channel music mix instead of a single sound.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_path | Yes | ||
| sound_index | No | ||
| duration_sec | No | ||
| timeout | No | ||
| music_index | No |