From 65381f7f64aacad7023b74c3f20293e8eca5fa22 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sat, 15 Jan 2011 17:35:25 +0100 Subject: Added pfactor-influence for freq_env_amount --- synth/programs.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'synth/programs.cpp') diff --git a/synth/programs.cpp b/synth/programs.cpp index cfbd9a1..0f675d6 100644 --- a/synth/programs.cpp +++ b/synth/programs.cpp @@ -51,6 +51,7 @@ program_t::program_t() pfactor.fm=NULL; pfactor.out=NULL; + pfactor.freq_env_amount=NULL; create_func=NULL; dl_handle=NULL; @@ -74,6 +75,8 @@ void program_t::cleanup() if (pfactor.out) delete [] pfactor.out; + if (pfactor.freq_env_amount) + delete [] pfactor.freq_env_amount; if (pfactor.fm) { for (unsigned int i=0;ipfactor.out=new param_factor_t [n_osc]; memcpy(this->pfactor.out, that.pfactor.out, sizeof(param_factor_t)*n_osc); + this->pfactor.freq_env_amount=new param_factor_t [n_osc]; + memcpy(this->pfactor.freq_env_amount, that.pfactor.freq_env_amount, sizeof(param_factor_t)*n_osc); + this->pfactor.fm=new param_factor_t* [n_osc]; for (i=0;i