Amplify
From Avisynth wiki
(Difference between revisions)
m (1 revision) |
Raffriff42 (Talk | contribs) (clarify AmplifyDB w/ examples; clarify negative scale factor; delete obsolete "converted to 16 bits in the process") |
||
Line 1: | Line 1: | ||
{{Template:Func4Def|Amplify(clip, float ''amount1'' ''[, ...]'')|Amplify(clip, float ''left'', float ''right'')|AmplifydB(clip, float ''amount1'' ''[, ...]'')|AmplifydB(clip, float ''left'', float ''right'')}} | {{Template:Func4Def|Amplify(clip, float ''amount1'' ''[, ...]'')|Amplify(clip, float ''left'', float ''right'')|AmplifydB(clip, float ''amount1'' ''[, ...]'')|AmplifydB(clip, float ''left'', float ''right'')}} | ||
− | |||
− | |||
− | + | '''Amplify''' multiplies the audio samples by ''amount''. You use scale factors between 0 and 1 for reducing volume. | |
− | + | :*Negative scale factors will shift the phase by 180 degrees (i.e. invert the samples) | |
+ | |||
+ | '''AmplifyDB''' is the same, except values are in [[wikipedia:Decibel|decibels]] (dB). You use negative dB values for reducing volume. | ||
+ | |||
+ | :*<code>AmplifyDB( 6.0)</code> is equivalent to <code>Amplify(2.0)</code> | ||
+ | :*<code>AmplifyDB(-6.0)</code> is equivalent to <code>Amplify(0.5)</code> | ||
+ | |||
+ | |||
+ | You can specify different factors for each channel. If there are more volumes than there are channels, the extra volume arguments are ignored. If there are fewer volumes than channels, the last volume is applied to the rest of the channels. | ||
+ | |||
+ | <!-- Audio samples are converted to 16 bits in the process. --> | ||
[[Category:Internal filters]] | [[Category:Internal filters]] |
Revision as of 00:48, 1 September 2015
Amplify(clip, float amount1 [, ...])
Amplify(clip, float left, float right)
AmplifydB(clip, float amount1 [, ...])
AmplifydB(clip, float left, float right)
Amplify multiplies the audio samples by amount. You use scale factors between 0 and 1 for reducing volume.
- Negative scale factors will shift the phase by 180 degrees (i.e. invert the samples)
AmplifyDB is the same, except values are in decibels (dB). You use negative dB values for reducing volume.
AmplifyDB( 6.0)
is equivalent toAmplify(2.0)
AmplifyDB(-6.0)
is equivalent toAmplify(0.5)
You can specify different factors for each channel. If there are more volumes than there are channels, the extra volume arguments are ignored. If there are fewer volumes than channels, the last volume is applied to the rest of the channels.