diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2013-04-16 15:38:45 +0000 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 01:38:33 +0200 |
| commit | d6fd1442b2fe1bb366c5539354eeb841fc6943a1 (patch) | |
| tree | 4cfd376f1086072a07e4e901b129c61567c6e222 /tests/playsaw.cpp | |
| parent | 91b2f327e23d13ffaae84f83c1f672aa55e8a694 (diff) | |
Final documentation updates for release 4.0.12 (GS).
Diffstat (limited to 'tests/playsaw.cpp')
| -rw-r--r-- | tests/playsaw.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/playsaw.cpp b/tests/playsaw.cpp index 46ea4fb..100d8d9 100644 --- a/tests/playsaw.cpp +++ b/tests/playsaw.cpp @@ -88,7 +88,7 @@ int saw( void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames, for ( i=0; i<nBufferFrames; i++ ) { for ( j=0; j<channels; j++ ) { - *buffer++ = (MY_TYPE) (lastValues[j] * SCALE); + *buffer++ = (MY_TYPE) (lastValues[j] * SCALE * 0.5); lastValues[j] += BASE_RATE * (j+1+(j*0.1)); if ( lastValues[j] >= 1.0 ) lastValues[j] -= 2.0; } @@ -116,7 +116,7 @@ int saw( void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames, for ( j=0; j<channels; j++ ) { increment = BASE_RATE * (j+1+(j*0.1)); for ( i=0; i<nBufferFrames; i++ ) { - *buffer++ = (MY_TYPE) (lastValues[j] * SCALE); + *buffer++ = (MY_TYPE) (lastValues[j] * SCALE * 0.5); lastValues[j] += increment; if ( lastValues[j] >= 1.0 ) lastValues[j] -= 2.0; } |
