comparison nonExposed/getBackground.m @ 27:786f7138a2d5

fix noise level computation usin power(10,) instead of exp
author gregoire lafay <gregoirelafay@sfr.fr>
date Sat, 23 Jan 2016 19:36:54 +0100
parents 2abd1116ae14
children
comparison
equal deleted inserted replaced
26:3d6dd8ae0b38 27:786f7138a2d5
40 40
41 if noiseFiltMaxFreq 41 if noiseFiltMaxFreq
42 noise=filter(fir1(noiseFiltOrder,noiseFiltMaxFreq/sr/2),1,noise); 42 noise=filter(fir1(noiseFiltOrder,noiseFiltMaxFreq/sr/2),1,noise);
43 end 43 end
44 44
45 noise=noise.*exp(noiseLevel/20); 45 noise=noise.*power(noiseLevel/20);
46 46
47 sceneObjects(1).isBackground = 1; 47 sceneObjects(1).isBackground = 1;
48 sceneObjects(1).classLabel = 'noise'; 48 sceneObjects(1).classLabel = 'noise';
49 sceneObjects(1).startTimes = 0; 49 sceneObjects(1).startTimes = 0;
50 sceneObjects(1).endTimes = score.sceneDuration; 50 sceneObjects(1).endTimes = score.sceneDuration;