% Define some commonly used parameters
IsDsiplay = 1;                    % Display the monitoring sentences or not

Fs        = 44100;                % Sampling frequency

N_frame    = 512;                 % The number of points per frame
N_u        = 11;                  % The number of units per pattern block
Nu_frames  = N_u * 4;             % The number of frames per block
tile_size  = N_frame;             % The length of normal tiles except the first tile
block_size = N_u * 2 * tile_size; % The length of each block
N_bit      = 4;                   % The number of bits embedded per block

% For embedding
N_G = 32;                         % The number of Gammatone filterbank channels
N_s = 32;                         % The number of subbands ( NB: changeable ) 

tiles_w   = 30;                   % The number of tiles assigned to each watermark bit
N_tiles   = N_s * N_u;            % The number of tiles per pattern block
N_wtiles  = N_bit * tiles_w;      % The total number of tiles for watermark bits per pattern block   
tiles_s   = N_tiles - N_wtiles;   % The number of tiles for embedding sync bit per pattern block

% The size of every letter: 7*5 matrix
letter_row = 7;              
letter_column = 5; 
% Each letter is represented as a 7 by 5 matix.
letter_size = letter_row * letter_column;  

