Commit 97e522d3 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Fix error in Normalize

parent 6ca6edfe
......@@ -583,7 +583,7 @@ float ITASampleFrame::Normalize()
findPeak( &c, &s );
float fP = m_vChannels[ c ][ s ];
for( int i = 0; i < m_iChannels; i++ )
m_vChannels[ i ].div_scalar( fP );
m_vChannels[ i ].div_scalar( std::abs(fP) );
return fP;
}
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