Author: Sylvain Marchand (2023),
after Python code by Pierre Mahé (2019)
and Matlab code by Stanislaw Gorlow (2011-2012)

ReaLiTy, a patent-free and free software implementation
of an Informed Source Separation (ISS) codec
as a result of the DReaM project

principles:

 LSB watermarking
 ERB-dB spectrograms
 Wiener filtering

notations:

N: frame size (i.e. number of FT bins)
H: hop size
W: number of ERB bands
L: total size
K: number of sources (polyphony)
A: mixing matrix
x: source signals
X: source spectra
y: mix signals
Y: mix spectra
Fs: sampling frequency
Fc: cutoff frequency
B: number of watermark bits

to run the demo:

python3.10 example.py

(with 5 sources, all the audio files are in the sounds directory)

IMPORTANT: the numpy and scipy packages must be installed

python3.10 -m pip install numpy scipy
