zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 28a44d6dd0d6f25b435417cee7fe9d3a7323de3c
parent 0251b2513307b3d1476db90eaf2da631c9e61981
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Thu,  8 Oct 2009 20:55:57 -0400

Tests: Fixed Broken ADnote Test

For future tests, lets try to make sure that they don't depend upon the pseudo
random variable/macro RND.
It makes debugging these issues a royal pain.
By hand (more or less) this test was verified and the RND dependence should be
corrected based upon changes to the .xmz file.

Diffstat:
Msrc/Tests/AdNoteTest.h | 10+++++-----
Msrc/Tests/guitar-adnote.xmz | 0
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/Tests/AdNoteTest.h b/src/Tests/AdNoteTest.h @@ -95,26 +95,26 @@ public: #endif sampleCount += SOUND_BUFFER_SIZE; - TS_ASSERT_DELTA(outL[255], 0.1724, 0.0001); + TS_ASSERT_DELTA(outL[255], 0.3022, 0.0001); note->relasekey(); note->noteout(outL, outR); sampleCount += SOUND_BUFFER_SIZE; - TS_ASSERT_DELTA(outL[255], -0.1284, 0.0001); + TS_ASSERT_DELTA(outL[255], -0.1391, 0.0001); note->noteout(outL, outR); sampleCount += SOUND_BUFFER_SIZE; - TS_ASSERT_DELTA(outL[255], -0.0206, 0.0001); + TS_ASSERT_DELTA(outL[255], -0.0331, 0.0001); note->noteout(outL, outR); sampleCount += SOUND_BUFFER_SIZE; - TS_ASSERT_DELTA(outL[255], -0.1122, 0.0001); + TS_ASSERT_DELTA(outL[255], -0.1302, 0.0001); note->noteout(outL, outR); sampleCount += SOUND_BUFFER_SIZE; - TS_ASSERT_DELTA(outL[255], 0.1707, 0.0001); + TS_ASSERT_DELTA(outL[255], 0.2675, 0.0001); while (!note->finished()) { note->noteout(outL, outR); diff --git a/src/Tests/guitar-adnote.xmz b/src/Tests/guitar-adnote.xmz Binary files differ.