Multichannel Sound

Mégra supports multichannel sound.

The channel numbers can't be changed at runtime, they need to be configured at startup using the -o flag, with the respective option.

Mégra, supports the following modes:

Channel-Based:

  • Stereo - stereo
  • 4 Channel - 4ch
  • 8 Channel - 8ch
  • 16 Channel - 16ch

Panning

Panning works a bit different depending on the output mode. In stereo mode, the panning range (using the pos argument for position) is in the range [-1, 1], where -1 is all the way to the left and 1 is all the way to the right.

In multichannel modes, the pos argument simple takes the channel numbers beginning at 0.

Reverb

When convolution reverb is used, the convolution will be performed on each output channel.

The standard reverb is a pairwise multichannel extension of classic Freeverb V2.

Ambisonics

Up to order 3 - ambi-o1, ambi-o2, ambi-o3

You'll need to patch it to an external decoder like IEM.

Panning:

  • azimuth (azi) and elevation (ele) in degrees.

Binaural:

First order ambisonics, binauralized, with ambi-bin option. Currently not recommended, rather use an external binauralizer like IEM.