Skip to content

Commit

Permalink
simple test of the SampleBundle.at() output printed to console. issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
nwolek committed Jan 2, 2016
1 parent d9f2022 commit 2ddc235
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/SampleBundle/SampleBundle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace Jamoma {
{
testBasic();
testAutoCreatedSampleBundleGroup();
testInterpolation();
}


Expand Down Expand Up @@ -99,6 +100,20 @@ namespace Jamoma {
mTest->TEST_ASSERT("stashed value 2 = 4", mTest->compare(stash_value2, stash_value4, false));
mTest->TEST_ASSERT("stashed value 3 = 4", mTest->compare(stash_value3, stash_value4, false));

}

void testInterpolation() {
SampleBundle test_bundle(2,64);

test_bundle.generate();

for (int i = 0; i < 64; i ++)
{
double d = 2.0 * i / 3.0;
std::cout << "sample " << d << " had a value of " << test_bundle.at(0,d) << std::endl;
}


}

};
Expand Down

0 comments on commit 2ddc235

Please sign in to comment.