THE AUDITORY MODELING TOOLBOX

Applies to version: 1.6.0

View the code

Go to function

bramslow2004_getframe
Prepares a signal for bramslow2004

Usage:

[In_Buffer, In_NoSamps, RMS_sample]=bramslow2004_getframe(y, In_FrmSize, NoFrames, Cal_RMS, UserRMS, cal_dB_SPL)

Input parameters:

y Input signal in the time domain.
In_FrmSize Targetted frame size (in samples).
NoFrames Targetted number of frames.
Cal_RMS Flag. If 0, UserRMS is used for scaling. If 1, the actual RMS of the signal is used.
UserRMS User RMS of input signal.
cal_dB_SPL SPL of the input signal y at full scale, i.e., amplitude of \(\pm 1\), i.e., 0 dB FS.

Output parameters:

In_Buffer Matrix with frames of the input signal (in Pa). Size: (In_FrmSize x NoFrames).
In_NoSamps Length (in samples) of the input signal y.
RMS_sample RMS of input signal y (i.e., before the scaling).

Description:

bramslow2004_getframe(..) split input signal into a matrix of frames and scales to dB SPL as a preparation for further processing by bramslow2004.

References:

L. Bramsløw Nielsen. An Auditory Model with Hearing Loss. Technical report, Eriksholm Research Centre, Snekkersten, 1993. [ .pdf ]

L. Bramsløw. An objective estimate of the perceived quality of reproduced sound in normal and impaired hearing. Acta Acustica united with Acustica, 90(6):1007--1018, 2004. [ http ]

L. Bramsløw. An auditory loudness model with hearing loss. In Baltic-Nordic Acoustics Meeting, pages 318--323, 2024. [ .html ]