#  -----------------------------------------------------------------------------
#
#  Copyright (C) 2008-2011 Fons Adriaensen <fons@linuxaudio.org>
#  
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#  -----------------------------------------------------------------------------
#
#
# jconvolver configuration
# ------------------------
#
# UHJ encoder using 4096 sample Hilbert transform IR and Dirac pulses.
# This is the matrix:
#
#      |         W                   X                Y         Z
#-------------------------------------------------------------------
#  L   |   0.4698 - 0.1710j    0.0928 + 0.2550j    0.3277       0 
#  R   |   0.4698 + 0.1710j    0.0928 - 0.2550j   -0.3277       0
#
#
# Note: the 4th input is not used, but necessary when
#       using fconvolver reading a 4 ch B-format file.
#
#                in  out   partition    maxsize    density
# --------------------------------------------------------
/convolver/new    4    2         256       4096       0.75
#
#
#              num   port name     connect to 
# -----------------------------------------------
/input/name      1     In.W
/input/name      2     In.X
/input/name      3     In.Y
/input/name      4     In.Z
#
/output/name     1     Out.L
/output/name     2     Out.R
#
#
#                  in out       gain    delay    length
# -----------------------------------------------------
# W -> L
/impulse/dirac      1   1     0.4698     2048
/impulse/hilbert    1   1    -0.1710     2048      4096  
# X -> L
/impulse/dirac      2   1     0.0928     2048
/impulse/hilbert    2   1     0.2550     2048      4096
# Y -> L
/impulse/dirac      3   1     0.3277     2048
#
# W -> R
/impulse/dirac      1   2     0.4698     2048
/impulse/hilbert    1   2     0.1710     2048      4096
# X -> R
/impulse/dirac      2   2     0.0928     2048
/impulse/hilbert    2   2    -0.2550     2048      4096
# Y -> R
/impulse/dirac      3   2    -0.3277     2048


