diff options
Diffstat (limited to 'gui/wxmain_mrun_genupload.cpp')
-rw-r--r-- | gui/wxmain_mrun_genupload.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gui/wxmain_mrun_genupload.cpp b/gui/wxmain_mrun_genupload.cpp index b720e3a..d1b82ef 100644 --- a/gui/wxmain_mrun_genupload.cpp +++ b/gui/wxmain_mrun_genupload.cpp @@ -1,5 +1,5 @@ #include "stmdsp.hpp" -#include "exprtk.hpp" +//#include "exprtk.hpp" #include <string> #include <vector> @@ -7,20 +7,20 @@ std::vector<stmdsp::dacsample_t> siggen_formula_parse(const std::string& formula { double x = 0; - exprtk::symbol_table<double> symbol_table; - symbol_table.add_variable("x", x); - symbol_table.add_constants(); + //exprtk::symbol_table<double> symbol_table; + //symbol_table.add_variable("x", x); + //symbol_table.add_constants(); - exprtk::expression<double> expression; - expression.register_symbol_table(symbol_table); + //exprtk::expression<double> expression; + //expression.register_symbol_table(symbol_table); - exprtk::parser<double> parser; - parser.compile(formulaString, expression); + //exprtk::parser<double> parser; + //parser.compile(formulaString, expression); std::vector<stmdsp::dacsample_t> samples; for (x = 0; samples.size() < stmdsp::SAMPLES_MAX; x += 1) { - auto y = static_cast<stmdsp::dacsample_t>(expression.value()); - samples.push_back(y); + //auto y = static_cast<stmdsp::dacsample_t>(expression.value()); + samples.push_back(2048); } return samples; |