1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
/* pvsdemix.h:
(c) Victor Lazzarini, 2005
This file is part of Csound.
The Csound Library is free software; you can redistribute it
and/or modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
Csound 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with Csound; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301 USA
PVSDEMIX:
De-mixing of stereo sources.
fsig pvsdemix fleft,fright,kpos,kwidth,ipoints
INITIALIZATION:
ipoints - total number of discrete points, which will divide
each pan side of the stereo image. This ultimately affects
the resolution of the process.
PERFORMANCE
fleft - fsig containing the PVS analysis signal of the left channel
fright - fsig containing the PVS analysis signal of the right channel
kpos - the azimuth target centre position, which will be de-mixed, from
left to right (-1 <= kpos <= 1). This is the reverse pan-pot control.
kwidth - the azimuth subspace width, which will determine the number
of points around kpos which will be used in the de-mixing process.
(1 <= kwidth <= ipoints).
*/
#ifndef _PVSDEMIX_H
#define _PVSDEMIX_H
#include "pstream.h"
typedef struct _pvsdemix {
OPDS h;
PVSDAT *fout;
PVSDAT *finleft;
PVSDAT *finright;
MYFLT *pos;
MYFLT *width;
MYFLT *slices;
AUXCH left;
AUXCH right;
AUXCH maxl;
AUXCH maxr;
AUXCH minl;
AUXCH minr;
int32_t beta;
uint32 lastframe;
}
PVSDEMIX;
static int32_t pvsdemix_init(CSOUND *csound, PVSDEMIX *p);
static int32_t
pvsdemix_process(CSOUND *csound, PVSDEMIX *p);
#endif
|