Mercurial > hg > audio-degradation-toolbox
view AudioDegradationToolbox/degradations/StrongUnitDegradations/unit_applyDynamicRangeCompression.m @ 23:48e065a17454 version0.2
now path includes all subdirs in demo scripts
author | matthiasm |
---|---|
date | Mon, 04 Nov 2013 11:11:08 -0200 |
parents | c3a002ed2815 |
children |
line wrap: on
line source
function degradation_config = unit_applyDynamicRangeCompression() %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Preset: applyDynamicRangeCompression % Programmer: Matthias Mauch % % Description: % Parametrisation of the Degradation Unit of the same name % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Audio Degradation Toolbox % % Centre for Digital Music, Queen Mary University of London. % This file copyright 2013 Sebastian Ewert, Matthias Mauch and QMUL. % % This program is free software; you can redistribute it and/or % modify it under the terms of the GNU General Public License as % published by the Free Software Foundation; either version 2 of the % License, or (at your option) any later version. See the file % COPYING included with this distribution for more information. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% degradation_config(1).methodname = 'degradationUnit_applyDynamicRangeCompression'; degradation_config(1).parameter.compressorSlope = 0.9; degradation_config(1).parameter.normalizeOutputAudio = 1; degradation_config(2).methodname = 'adthelper_normalizeAudio'; end