Skip to content

Commit

Permalink
WindowFunctionLib: removed 6 uses of kTTVal1, now project builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
nwolek committed Sep 18, 2013
1 parent a29497f commit 31baa1a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Expand Up @@ -72,7 +72,7 @@ TTErr GaussWindow::test(TTValue& returnedTestInfo)
TTFloat64 testSigma = 0.4;

// setup windowObject
TTObjectBaseInstantiate(TT("WindowFunction"), &windowObject, kTTVal1);
TTObjectBaseInstantiate(TT("WindowFunction"), &windowObject, TTValue(1));
windowObject->setAttributeValue(TT("function"), TT("gauss"));
windowObject->setAttributeValue(TT("mode"), TT("apply"));

Expand Down
Expand Up @@ -52,7 +52,7 @@ TTErr HammingWindow::test(TTValue& returnedTestInfo)
int N = 128;
TTValue v;

TTObjectBaseInstantiate(TT("WindowFunction"), &windowObject, kTTVal1);
TTObjectBaseInstantiate(TT("WindowFunction"), &windowObject, TTValue(1));
windowObject->setAttributeValue(TT("function"), TT("hamming"));
windowObject->setAttributeValue(TT("mode"), TT("apply"));

Expand Down
Expand Up @@ -61,7 +61,7 @@ TTErr KaiserWindow::test(TTValue& returnedTestInfo)
TTValue v;

// create the object and set the beta parameter
TTObjectBaseInstantiate(TT("WindowFunction"), &windowObject, kTTVal1);
TTObjectBaseInstantiate(TT("WindowFunction"), &windowObject, TTValue(1));
windowObject->setAttributeValue(TT("function"), TT("kaiser"));
windowObject->setAttributeValue(TT("mode"), TT("apply"));

Expand Down
Expand Up @@ -44,7 +44,7 @@ TTErr RectangularWindow::test(TTValue& returnedTestInfo)
TTValue v;

// setup windowObject
TTObjectBaseInstantiate(TT("WindowFunction"), &windowObject, kTTVal1);
TTObjectBaseInstantiate(TT("WindowFunction"), &windowObject, TTValue(1));
windowObject->setAttributeValue(TT("function"), TT("rectangular"));
windowObject->setAttributeValue(TT("mode"), TT("apply"));

Expand Down
Expand Up @@ -73,7 +73,7 @@ TTErr RosenbergGlottalPulseWindow::test(TTValue& returnedTestInfo)
TTValue v;

// create the object, keep the default ratio parameter
TTObjectBaseInstantiate(TT("WindowFunction"), &windowObject, kTTVal1);
TTObjectBaseInstantiate(TT("WindowFunction"), &windowObject, TTValue(1));
windowObject->setAttributeValue(TT("function"), TT("rosenbergGlottalPulse"));
windowObject->setAttributeValue(TT("mode"), TT("apply"));

Expand Down
Expand Up @@ -68,7 +68,7 @@ TTErr TukeyWindow::test(TTValue& returnedTestInfo)
TTFloat64 testAlpha = 0.5;

// setup windowObject
TTObjectBaseInstantiate(TT("WindowFunction"), &windowObject, kTTVal1);
TTObjectBaseInstantiate(TT("WindowFunction"), &windowObject, TTValue(1));
windowObject->setAttributeValue(TT("function"), TT("tukey"));
windowObject->setAttributeValue(TT("mode"), TT("apply"));

Expand Down

0 comments on commit 31baa1a

Please sign in to comment.