summaryrefslogtreecommitdiff
path: root/note_compiler/main.cpp
blob: cd83eee42886db65d5922554dc94234e3090a3c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>

#include "parser.h"
#include "programs.h"
#include "util.h"
#include "../synth/fixed.h"

using namespace std;

int main(int argc, char** argv)
{
	program_t p=parse("../../velotest.prog");

	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;
}