Richard Dobson’s CHORDER has a very nice scheme for
representing arbitrary channel mappings as a series of lowercase letters
and zeros. I’m using tuples in pippi scripts, but don’t have a nice way
to express it compactly in messages - I like this approach a lot.
CHORDER : reorder soundfile channels. Channels can be duplicated and/or omitted.
Usage:
chorder infile outfile orderstring
orderstring = any combination of characters a-z inclusive.
Infile channels are mapped in order as a=1,b=2...z=26
(For example: channels in a 4-channel file are represented by the
characters abcd; any other character is an error).
Characters must be lower case, and may be used more than once.
Duplicate characters duplicate the corresponding input channel.
The zero character (0) may be used to set a silent channel.
A maximum of 26 channels is supported for both input and output.
NB: infile (WAVEX) speaker positions are discarded.
The .amb extension is supported for the outfile.