From d4e928c4eecdcb12ebc96054c92cfc7b701c9a83 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sat, 12 Feb 2011 16:02:01 +0100 Subject: Sawtooth and pulse-waves have now variable phases for sawtooth, the ratio rising:falling phase is adjustable for pulse, the ratio high:low is adjustable --- synth/main.cpp | 71 ++++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 59 insertions(+), 12 deletions(-) (limited to 'synth/main.cpp') diff --git a/synth/main.cpp b/synth/main.cpp index 32b2b84..f9f1e57 100644 --- a/synth/main.cpp +++ b/synth/main.cpp @@ -96,22 +96,69 @@ int main(int argc, char** argv) load_program(programfile[i],program_settings[i]); } + fixed_t* temp=new fixed_t[WAVE_RES]; + for (i=0;i