aboutsummaryrefslogtreecommitdiffstats
path: root/gui/wxmain_mrun_genupload.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2022-04-30 08:41:56 -0400
committerClyne Sullivan <clyne@bitgloo.com>2022-04-30 08:42:45 -0400
commite164629b3839eee0fda0be0e0a9842e78cf02f2b (patch)
treeb72b58665b85a104e5b953af45f00579341b2802 /gui/wxmain_mrun_genupload.cpp
parent162dd6de8a0d883962b0b1475f47cbb08e0958d4 (diff)
parent3dd57491b1e81a9d93054eff19ca0e6c65c85b9b (diff)
merge in branch devel
Diffstat (limited to 'gui/wxmain_mrun_genupload.cpp')
-rw-r--r--gui/wxmain_mrun_genupload.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/gui/wxmain_mrun_genupload.cpp b/gui/wxmain_mrun_genupload.cpp
deleted file mode 100644
index b720e3a..0000000
--- a/gui/wxmain_mrun_genupload.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-#include "stmdsp.hpp"
-#include "exprtk.hpp"
-#include <string>
-#include <vector>
-
-std::vector<stmdsp::dacsample_t> siggen_formula_parse(const std::string& formulaString)
-{
- double x = 0;
-
- 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::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);
- }
-
- return samples;
-}
-