--- doc/docbase/instrument_scripts/nksp/reference/functions/nksp_change_vol_function.html 2016/07/09 14:41:00 2932 +++ doc/docbase/instrument_scripts/nksp/reference/functions/nksp_change_vol_function.html 2017/05/19 14:26:05 3189 @@ -16,7 +16,16 @@ all layers.

- The volume changes set by calling function are always applied relatively to + Internally the sampler always fades the volume from its current value to + the new volume as requested, however that volume fade by default is so fast + that it sounds like its value jumps directly from its old to the new value, + it is yet slow enough though to avoid undesired click sounds. You may also + override that automated fade time explicitly by calling + change_vol_time() before calling the + change_vol() function. +

+

+ The volume changes set by calling this function are always applied relatively to the volume calculated by the synthesis model and sampler format. That means the various sources of volume factors like MIDI CC #7, Amplitute Envelopes, Amplitutude LFOs and other volume factors that may be defined by the @@ -50,7 +59,7 @@ ??note?? - Note ID Number + Note ID Number or Note ID Array All voices of this note will be modified.
[required] @@ -59,7 +68,8 @@ Integer Number Volume change in Milli dB. A positive value increases the volume, - a negative value decreases the volume. + a negative value decreases the volume.
+ [required] ??relative?? @@ -79,9 +89,18 @@

Examples

None yet.

+ +

See also

+

change_vol_time(), fade_in(), fade_out()

Availabilty

Since LinuxSampler 2.0.0.svn11.

+ + The third argument of this function ??relative?? is only + optional with NKSP. If you want to keep compatibility with KSP, then you + should always pass a value for that third argument of this function. + +