MonoToStereo
From Avisynth wiki
(Difference between revisions)
m (1 revision) |
(add link to avs+ documentation) |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
+ | <div {{BlueBox2|40|0|3px solid purple}} > | ||
+ | {{AvsPlusFullname}}<br> | ||
+ | Up-to-date documentation: [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/monotostereo.html https://avisynthplus.readthedocs.io] | ||
+ | </div> | ||
+ | |||
+ | |||
{{Template:FuncDef|MonoToStereo(clip ''left_channel_clip'', clip ''right_channel_clip'')}} | {{Template:FuncDef|MonoToStereo(clip ''left_channel_clip'', clip ''right_channel_clip'')}} | ||
Line 15: | Line 21: | ||
[[Category:Internal filters]] | [[Category:Internal filters]] | ||
+ | [[Category:Audio_filters]] |
Latest revision as of 06:37, 18 September 2022
AviSynth+
Up-to-date documentation: https://avisynthplus.readthedocs.io
MonoToStereo(clip left_channel_clip, clip right_channel_clip)
Starting from v2.5 MonoToStereo is replaced by MergeChannels. MonoToStereo converts two mono signals to one stereo signal. This can be used, if one or both channels has been modified separately, and then has to be recombined.
The sample rate of the two clips need to be the same (use ResampleAudio if this is a problem). If either of the sources are in stereo, the signal will be taken from the corresponding channel (left channel from the left_channel_clip, and vice versa for right channel).
Example:
# combines two separate wave sources to a stereo signal: left_channel = WavSource("c:\left_channel.wav") right_channel = WavSource("c:\right_channel.wav") return MonoToStereo(left_channel, right_channel)