summaryrefslogtreecommitdiff
path: root/muse_qt4_evolution/synti/zynaddsubfx/Params/EnvelopeParams.h
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-03-07 19:01:11 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-03-07 19:01:11 +0000
commite40fc849149dd97c248866a4a1d026dda5e57b62 (patch)
treeb12b358f3b3a0608001d30403358f8443118ec5f /muse_qt4_evolution/synti/zynaddsubfx/Params/EnvelopeParams.h
parent1bd4f2e8d9745cabb667b043171cad22c8577768 (diff)
clean3
Diffstat (limited to 'muse_qt4_evolution/synti/zynaddsubfx/Params/EnvelopeParams.h')
-rw-r--r--muse_qt4_evolution/synti/zynaddsubfx/Params/EnvelopeParams.h86
1 files changed, 0 insertions, 86 deletions
diff --git a/muse_qt4_evolution/synti/zynaddsubfx/Params/EnvelopeParams.h b/muse_qt4_evolution/synti/zynaddsubfx/Params/EnvelopeParams.h
deleted file mode 100644
index 793291c6..00000000
--- a/muse_qt4_evolution/synti/zynaddsubfx/Params/EnvelopeParams.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- ZynAddSubFX - a software synthesizer
-
- EnvelopeParams.h - Parameters for Envelope
- Copyright (C) 2002-2005 Nasca Octavian Paul
- Author: Nasca Octavian Paul
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of version 2 of the GNU General Public License
- as published by the Free Software Foundation.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License (version 2) for more details.
-
- You should have received a copy of the GNU General Public License (version 2)
- along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-*/
-
-#ifndef ENVELOPE_PARAMS_H
-#define ENVELOPE_PARAMS_H
-
-#include "../globals.h"
-#include "../Misc/XMLwrapper.h"
-#include "Presets.h"
-
-#define MAX_ENVELOPE_POINTS 40
-#define MIN_ENVELOPE_DB -40
-
-class EnvelopeParams:public Presets{
- public:
- EnvelopeParams(unsigned char Penvstretch_,unsigned char Pforcedrelease_);
- ~EnvelopeParams();
- void ADSRinit(char A_dt,char D_dt,char S_val,char R_dt);
- void ADSRinit_dB(char A_dt,char D_dt,char S_val,char R_dt);
- void ASRinit(char A_val,char A_dt,char R_val,char R_dt);
- void ADSRinit_filter(char A_val,char A_dt,char D_val,char D_dt,char R_dt,char R_val);
- void ASRinit_bw(char A_val,char A_dt,char R_val,char R_dt);
- void converttofree();
-
- void add2XML(XMLwrapper *xml);
- void defaults();
- void getfromXML(XMLwrapper *xml);
-
- REALTYPE getdt(char i);
-
- /* Parametrii MIDI */
- unsigned char Pfreemode;//1 daca este in modul free sau 0 daca este in mod ADSR,ASR,...
- unsigned char Penvpoints;
- unsigned char Penvsustain;//127 pentru dezactivat
- unsigned char Penvdt[MAX_ENVELOPE_POINTS];
- unsigned char Penvval[MAX_ENVELOPE_POINTS];
- unsigned char Penvstretch;//64=normal stretch (piano-like), 0=no stretch
- unsigned char Pforcedrelease;//0 - OFF, 1 - ON
- unsigned char Plinearenvelope;//if the amplitude envelope is linear
-
- unsigned char PA_dt,PD_dt,PR_dt,
- PA_val,PD_val,PS_val,PR_val;
-
-
-
- int Envmode;// 1 for ADSR parameters (linear amplitude)
- // 2 for ADSR_dB parameters (dB amplitude)
- // 3 for ASR parameters (frequency LFO)
- // 4 for ADSR_filter parameters (filter parameters)
- // 5 for ASR_bw parameters (bandwidth parameters)
-
- private:
- void store2defaults();
-
- /* Default parameters */
- unsigned char Denvstretch;
- unsigned char Dforcedrelease;
- unsigned char Dlinearenvelope;
- unsigned char DA_dt,DD_dt,DR_dt,
- DA_val,DD_val,DS_val,DR_val;
-
-
-};
-
-
-#endif
-