You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.0 KiB
24 lines
1.0 KiB
6 years ago
|
function SMR = psycho(frameT, frameType, frameTprev1, frameTprev2)
|
||
|
%Implementation of Psychoacoustic Model
|
||
|
% Usage SMR = psycho(frameT, frameType, frameTprev1, frameTprev2), where:
|
||
|
% Inputs
|
||
|
% - frameT is a frame in the time domain, containing only one of the
|
||
|
% audio channels stored in a vector of length 2048
|
||
|
% - frameType is the type of the current frame in string
|
||
|
% representation, can be one of "OLS" (ONLY_LONG_SEQUENCE), "LSS"
|
||
|
% (LONG_START_SEQUENCE), "ESH" (EIGHT_SHORT_SEQUENCE), "LPS"
|
||
|
% (LONG_STOP_SEQUENCE)
|
||
|
% - frameTprev1 is the previous frame in the time domain, containing
|
||
|
% only one of the audio channels stored in a vector of length 2048
|
||
|
% - frameTprev2 is the frame before frameTprev1 in the time domain,
|
||
|
% containing only one of the audio channels stored in a vector of
|
||
|
% length 2048
|
||
|
%
|
||
|
% Output
|
||
|
% - SMR is the signal to mask ratio array of dimensions 42X8 for
|
||
|
% EIGHT_SHORT_SEQUENCE frames and 69X1 otherwise
|
||
|
|
||
|
|
||
|
end
|
||
|
|