On Feb 10 23:29:18, [email protected] wrote:
> On Mon, Feb 10, 2020 at 10:45:02PM +0100, Jan Stary wrote:
> > I must be missing something obvious.
> > How does aucat mix two mono files into one stereo file
> > as the left and right channel, respectively?
> >
>
> You have to specify which file goes to which channel,
> for instance:
>
> aucat -n -c 0:0 -i 1.wav -c 1:1 -i 2.wav -c 0:1 -o mix.wav
>
>
> There is a multi-channel bus. Inputs files (-i) are written to the bus
> and output files (-o) are read from the bus. Bus channels are numbered
> from 0 to the greatest channel of all files. The per-file -c option
> specifies which channels of the bus the file will provide or consume.
Thank you, that was my confusion: the -c channel numbers are global.
Without realizing that, the -c 1:1 seems strange for a mono file.
In fact, the wording of
-c min:max
The range of audio file channel numbers.
The default is 0:1, i.e. stereo.
makes it seems erroneous to specify -c 1:1 for a mono file:
being mono, it doesn't even have a '1' channel.
Could you please add something to the effect of your paragraph above?
I can't think of a wording that would be short and clear.
Would you please consider including the following EXAMPLE
to accompany the one that't there now (spliting stereo)?
(I break the cmdline between -i and -o in both cases.)
Index: aucat.1
===================================================================
RCS file: /cvs/src/usr.bin/aucat/aucat.1,v
retrieving revision 1.114
diff -u -p -r1.114 aucat.1
--- aucat.1 24 Apr 2017 06:47:41 -0000 1.114
+++ aucat.1 10 Feb 2020 22:44:08 -0000
@@ -285,8 +285,14 @@ $ aucat -r 44100 -c 2:3 -o file1.wav -c
.Pp
Split a stereo file into two mono files:
.Bd -literal -offset indent
-$ aucat -n -i stereo.wav -c 0:0 -o left.wav \e
- -c 1:1 -o right.wav
+$ aucat -n -i stereo.wav \e
+ -c 0:0 -o left.wav -c 1:1 -o right.wav
+.Ed
+.Pp
+Create a stereo file having two given mono channels:
+.Bd -literal -offset indent
+$ aucat -n -c 0:0 -i left.wav -c 1:1 -i right.wav \e
+ -c 0:1 -o stereo.wav
.Ed
.Sh SEE ALSO
.Xr audioctl 1 ,
> > Turning -j on, this mixes each of the two mono files
> > into both the left and the right channel of the stereo output:
> >
> > $ aucat -j on -n -i 1.wav -i 2.wav -o mix.wav
> >
> > Having -j on,
> >
> > a single source may be sent to multiple destinations
> > and multiple sources may be mixed into a single destination.
> >
> > Here, each of 1.wav and 2.wav is indeed sent to multiple destinations,
> > namely both the left and right channel of the stereo output. However,
> > "multiple sources are mixed into a single destination" even with -j off:
> > above, both 1.wav and 2.wav end up in the left channel.
This still seems a bit unclear: "multiple sources being mixed into
a single destination" is not exclusively a feature of -j on,
but the current wording makes it sound that way.
Jan