summaryrefslogtreecommitdiff
path: root/synth/main.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@thinkpad.(none)>2011-01-01 17:12:35 +0100
committerFlorian Jung <flo@thinkpad.(none)>2011-01-01 17:12:35 +0100
commitae8c1183ac4f9a3e3c54ac7fb57fe7d1631d1740 (patch)
tree3cfc1d78f0f280ccc80378f3441c0e0fd86ddba0 /synth/main.cpp
parent5c3634f48144d965c7f37e4d37b7f123fc18d7c3 (diff)
Replace class Parser with function parse()
Diffstat (limited to 'synth/main.cpp')
-rw-r--r--synth/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/synth/main.cpp b/synth/main.cpp
index deebf06..ae2e0d8 100644
--- a/synth/main.cpp
+++ b/synth/main.cpp
@@ -95,7 +95,6 @@ int main(int argc, char** argv)
lfo[i][j][k]= (1.0 + temp*(float(LFO_MAX)*k/N_LFO_LEVELS)) * ONE;
}
- Parser parser;
program_settings=new program_t[128];
for (i=0;i<128;i++)
@@ -104,8 +103,7 @@ int main(int argc, char** argv)
{
try
{
- parser.parse(programfile[i]);
- program_settings[i]=parser.get_results();
+ program_settings[i]=parse(programfile[i]);
}
catch (string err)
{