summaryrefslogtreecommitdiff
path: root/note_compiler/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'note_compiler/main.cpp')
-rw-r--r--note_compiler/main.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/note_compiler/main.cpp b/note_compiler/main.cpp
new file mode 100644
index 0000000..3d59c3b
--- /dev/null
+++ b/note_compiler/main.cpp
@@ -0,0 +1,29 @@
+#include <iostream>
+
+#include "parser.h"
+#include "programs.h"
+#include "util.h"
+#include "../synth/fixed.h"
+
+using namespace std;
+
+int main(int argc, char** argv)
+{
+ Parser parser;
+ program_t p;
+
+ parser.parse("../../velotest.prog");
+
+ p=parser.get_result();
+
+ cout << "n_osc="<<p.n_osc<<endl;
+ for (int i=0;i<p.n_osc;i++)
+ {
+ for (int j=0;j<p.n_osc;j++)
+ {
+ cout << " "<<i<<" gets modulated by "<<j<<": strength="<<p.osc[i].fm_strength[j]<<", const="<<p.osc[i].fm_strength_const[j]<<endl;
+ }
+ }
+
+ return 0;
+}