Updates, fixes etc

This commit is contained in:
Vesa
2014-03-21 17:21:31 +02:00
parent 9b394b3660
commit 95bf833ace
3 changed files with 53 additions and 38 deletions

View File

@@ -679,7 +679,11 @@ void graphModel::shiftPhase( int _deg )
// shift phase
for( int i = 0; i < length(); i++ )
m_samples[i] = temp[ ( i + offset ) % length() ];
{
int o = ( i + offset ) % length();
while( o < 0 ) o += length();
m_samples[i] = temp[o];
}
emit samplesChanged( 0, length()-1 );
}