6 changed files with 68 additions and 0 deletions
@ -0,0 +1,8 @@
|
||||
@mkdir build > nul 2>&1 |
||||
cd build |
||||
IF NOT DEFINED VCINSTALLDIR call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" amd64_x86 |
||||
D:\Checkouts\BzVCBase\tools\cmake\bin\cmake.exe -T v140_xp -DCMAKE_GENERATOR_TOOLSET=v140_xp .. |
||||
D:\Checkouts\BzVCBase\tools\cmake\bin\cmake.exe --build . --config Release |
||||
set LOCAL_ERR=%ERRORLEVEL% |
||||
cd .. |
||||
cmd /c exit %LOCAL_ERR% |
@ -0,0 +1,18 @@
|
||||
#include <iostream> |
||||
#include "WaveSabreCore/Helpers.h" |
||||
|
||||
int main() { |
||||
WaveSabreCore::Helpers::Init(); |
||||
std::cout << "XO" << std::endl; |
||||
std::cout << "cos" << WaveSabreCore::Helpers::FastCos(3.14159) << std::endl; |
||||
std::cout << "cos" << WaveSabreCore::Helpers::FastCos(3.14159 * 2) << std::endl; |
||||
std::cout << "sin" << WaveSabreCore::Helpers::FastSin(3.14159) << std::endl; |
||||
std::cout << "sin" << WaveSabreCore::Helpers::FastSin(3.14159 * 2) << std::endl; |
||||
|
||||
WaveSabreCore::StateVariableFilter filter; |
||||
filter.SetFreq(1000.0); |
||||
filter.SetQ(1.0); |
||||
|
||||
printf("%f\n", filter.Next(0.0069039087)); |
||||
|
||||
} |
Loading…
Reference in new issue