16 |
all layers. |
all layers. |
17 |
</p> |
</p> |
18 |
<p> |
<p> |
19 |
|
Internally the sampler always fades the volume from its current value to |
20 |
|
the new volume as requested, however that volume fade by default is so fast |
21 |
|
that it sounds like its value jumps directly from its old to the new value, |
22 |
|
it is yet slow enough though to avoid undesired click sounds. You may also |
23 |
|
override that automated fade time explicitly by calling |
24 |
|
<code lang="nksp">change_vol_time()</code> before calling the |
25 |
|
<code lang="nksp">change_vol()</code> function. |
26 |
|
</p> |
27 |
|
<p> |
28 |
The volume changes set by calling this function are always applied relatively to |
The volume changes set by calling this function are always applied relatively to |
29 |
the volume calculated by the synthesis model and sampler format. That means |
the volume calculated by the synthesis model and sampler format. That means |
30 |
the various sources of volume factors like MIDI CC #7, Amplitute Envelopes, |
the various sources of volume factors like MIDI CC #7, Amplitute Envelopes, |
68 |
<td>Integer Number</td> |
<td>Integer Number</td> |
69 |
<td>Volume change in Milli dB. |
<td>Volume change in Milli dB. |
70 |
A positive value increases the volume, |
A positive value increases the volume, |
71 |
a negative value decreases the volume.</td> |
a negative value decreases the volume.<br> |
72 |
|
[required]</td> |
73 |
</tr> |
</tr> |
74 |
<tr> |
<tr> |
75 |
<td><code>??relative??</code></td> |
<td><code>??relative??</code></td> |
89 |
|
|
90 |
<h3>Examples</h3> |
<h3>Examples</h3> |
91 |
<p>None yet.<p> |
<p>None yet.<p> |
92 |
|
|
93 |
|
<h3>See also</h3> |
94 |
|
<p><code>change_vol_time()</code>, <code>fade_in()</code>, <code>fade_out()</code><p> |
95 |
|
|
96 |
<h3>Availabilty</h3> |
<h3>Availabilty</h3> |
97 |
<p>Since LinuxSampler 2.0.0.svn11.<p> |
<p>Since LinuxSampler 2.0.0.svn11.<p> |
98 |
|
|
99 |
|
<note> |
100 |
|
The third argument of this function <code>??relative??</code> is only |
101 |
|
optional with NKSP. If you want to keep compatibility with KSP, then you |
102 |
|
should always pass a value for that third argument of this function. |
103 |
|
</note> |
104 |
|
|
105 |
</body> |
</body> |
106 |
</html> |
</html> |