79 lines
1.9 KiB
C++
Executable file
79 lines
1.9 KiB
C++
Executable file
/*
|
||
==============================================================================
|
||
This file is part of Obxd synthesizer.
|
||
|
||
Copyright <20> 2013-2014 Filatov Vadim
|
||
|
||
Contact author via email :
|
||
justdat_@_e1.ru
|
||
|
||
This file may be licensed under the terms of of the
|
||
GNU General Public License Version 2 (the ``GPL'').
|
||
|
||
Software distributed under the License is distributed
|
||
on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
|
||
express or implied. See the GPL for the specific language
|
||
governing rights and limitations.
|
||
|
||
You should have received a copy of the GPL along with this
|
||
program. If not, go to http://www.gnu.org/licenses/gpl.html
|
||
or write to the Free Software Foundation, Inc.,
|
||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
==============================================================================
|
||
*/
|
||
#pragma once
|
||
#include "ObxdVoice.h"
|
||
#include "ParamsEnum.h"
|
||
class ObxdParams
|
||
{
|
||
public:
|
||
float values[PARAM_COUNT];
|
||
String name;
|
||
ObxdParams()
|
||
{
|
||
name = "Default";
|
||
//values = new float[PARAM_COUNT];
|
||
setDefaultValues();
|
||
}
|
||
void setDefaultValues()
|
||
{
|
||
for(int k = 0 ; k < PARAM_COUNT;++k)
|
||
{
|
||
values[k] = 0.0f;
|
||
}
|
||
values[VOICE_COUNT] = 1.0f;
|
||
values[BRIGHTNESS]=1.0f;
|
||
values[OCTAVE]=0.5;
|
||
values[TUNE] = 0.5f;
|
||
values[OSC2_DET]=0.4;
|
||
values[LSUS]=1.0f;
|
||
values[CUTOFF]=1.0f;
|
||
values[VOLUME]=0.5f;
|
||
values[OSC1MIX]=1;
|
||
values[OSC2MIX]=1;
|
||
values[OSC1Saw]=1;
|
||
values[OSC2Saw]=1;
|
||
values[BENDLFORATE]=0.6;
|
||
|
||
// values[FILTER_DRIVE]= 0.01;
|
||
values[PAN1]=0.5;
|
||
values[PAN2]=0.5;
|
||
values[PAN3]=0.5;
|
||
values[PAN4]=0.5;
|
||
values[PAN5]=0.5;
|
||
values[PAN6]=0.5;
|
||
values[PAN7]=0.5;
|
||
values[PAN8]=0.5;
|
||
values[ECONOMY_MODE] = 1;
|
||
values[ENVDER] = 0.3;
|
||
values[FILTERDER]=0.3;
|
||
values[LEVEL_DIF]=0.3;
|
||
values[PORTADER]=0.3;
|
||
values[UDET]=0.2;
|
||
}
|
||
~ObxdParams()
|
||
{
|
||
//delete values;
|
||
}
|
||
//JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ObxdParams)
|
||
};
|