From 65fe359eb034d8e4a4a7f4d673af6f473ef27ff8 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 9 Jan 2011 13:06:58 +0100 Subject: envelope_update_frames can now be set via CLI and config file --- synth/note.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'synth/note.cpp') diff --git a/synth/note.cpp b/synth/note.cpp index b8028bc..a9a5a42 100644 --- a/synth/note.cpp +++ b/synth/note.cpp @@ -1,5 +1,3 @@ -#define ENV_NTH_FRAME 50 - #include #include @@ -39,7 +37,7 @@ Note::Note(int n, float v, program_t &prg, jack_nframes_t pf, fixed_t pb, int pr envelope=new Envelope*[n_oscillators]; for (int i=0;i=ENV_NTH_FRAME) + if (env_frame_counter>=envelope_update_frames) { env_frame_counter=0; for (i=0;i