The "vngen_audio_modify" Function
vngen_audio_modify(id, pitch, volume, duration, [ease], [start, end, full]);
|real/string||The ID of the sound to modify (or keyword |
|real||The pitch multiplier, where 1 is default|
|real (0-1)||The sound volume, where 1 is default and 0 is silent|
|real||Sets the length of the modification transition, in seconds|
|integer/macro||Optional: Sets the ease mode for the modification transition|
|real||Optional: Sets the starting point to clip the sound, in seconds|
|real||Optional: Sets the ending point to clip the sound, in seconds|
|boolean||Optional: Enables or disables playing from the current position before clipping|
Clip arguments are a group. All three must be input together, or not at all.
Modifies a sound previously played with VNgen audio actions (except vox audio, which uses a separate function for modifications) with pitch, volume, and optional real-time clipping adjustments. As this script is itself an action, generally it is only practical to modify looped sound effects and music.
See Macros & Keywords for a list of available ease modes.
vngen_audio_modify("explode", 0.8, 1, 0.5, ease_sin_out);
vngen_audio_modify("music", 1, 0.75, 1, ease_sin_out, 10, 30, false);