Examples of using ChannelAvg and ChannelMixer class #2243
alw1746
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ChannelAvg class average pairs of channels in a datastream. If you provide a stereo signal, the output is an averaged mono channel. The channel-converter-avg example generates a mono plot from a stereo signal with 493Hz(N_B4) on L and 987Hz(N_B5) on R.
Without the averager conversion, the plot looks like:
ChannelMixer class mixes all input channels in a datastream. If you provide a stereo signal, the output is a mono signal on both channels. Note the difference: ChannelMixer mixes all channels and outputs the mono signal to all channels.
L (channel_1 + channel_2)/2
R (channel_1 + channel_2)/2
ChannelAvg averages pairs of channels eg. a 4-channel input stream will end up with 2 output channels:
L (channel_1 + channel_2)/2
R (channel_3 - channel_4)/2.
A stereo channel averaging will end up with 1 mono output channel.
ChannelMixer Sketch
Beta Was this translation helpful? Give feedback.
All reactions