From 5e731c349b63a557b2e705ce3cd741f90c62c694 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sat, 1 Jan 2011 17:02:53 +0100 Subject: Replace class Parser with function parse() --- note_compiler/parser.cpp | 95 +++++++++++++++++++++++------------------------- 1 file changed, 46 insertions(+), 49 deletions(-) (limited to 'note_compiler/parser.cpp') diff --git a/note_compiler/parser.cpp b/note_compiler/parser.cpp index 05985de..98c65ac 100644 --- a/note_compiler/parser.cpp +++ b/note_compiler/parser.cpp @@ -5,24 +5,11 @@ #include "programs.h" #include "util.h" #include "../synth/defines.h" +#include "../synth/fixed.h" -Parser::Parser() +void init_oscs(int n_osc, oscillator_t *osc) { - n_osc=0; - osc=NULL; - env=NULL; -} - -Parser::~Parser() -{ - uninit_stuff(); -} - -void Parser::init_stuff() -{ - env=new env_settings_t[n_osc]; - osc=new oscillator_t[n_osc]; for (int i=0;i