Commit c53070e2 authored by Markus Mueller-Trapet's avatar Markus Mueller-Trapet

bugfix for clipping detection

parent 3805ebc1
...@@ -83,7 +83,7 @@ if playback ...@@ -83,7 +83,7 @@ if playback
% Check levels - Normalizing % Check levels - Normalizing
% determine clipping limit from NI session information % determine clipping limit from NI session information
outputClipping = 1; % standard outputClipping = 1; % standard
for iChannel = numel(niSession.Channels) for iChannel = 1:numel(niSession.Channels)
isOutput = ~isempty(strfind(niSession.Channels(iChannel).ID,'ao')); isOutput = ~isempty(strfind(niSession.Channels(iChannel).ID,'ao'));
if isOutput if isOutput
outputClipping = max(outputClipping,max(abs(double(niSession.Channels(iChannel).Range)))); outputClipping = max(outputClipping,max(abs(double(niSession.Channels(iChannel).Range))));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment