Documents
Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference

change_vol_time()

This function can be used to override the internal fade time of volume changes upon calls to change_vol(). That fade time is not set globally, but rather on a per-note level. Additionally you might call change_vol_curve() to override the default fade curve shape type.

Function Prototype

change_vol_time(note, duration-us)

Arguments

Argument Name Data Type Description
note Note ID Number or Note ID Array All voices of this note will be modified.
[required]
duration-us Integer Number Fade time in microseconds.
[required]

Return Value

None.

Examples

The following example demonstrates a simple, custom volume envelope generator.

See also

change_vol(), change_vol_curve(), fade_in(), fade_out()

Availability

Since LinuxSampler 2.0.0.svn45.

This function exists only with NKSP, it is not available with KSP.

Document Updated:  2017-05-29  |  Author:  Christian Schoenebeck