This is a part of the Kinetiszer project.

Dependents:   SoundEngine

envelope.h

Committer:
Clemo
Date:
2014-10-28
Revision:
0:5a419ba2726d

File content as of revision 0:5a419ba2726d:

/*
Copyright 2013 Paul Soulsby www.soulsbysynths.com
    This file is part of Atmegatron.

    Atmegatron is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Atmegatron 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 for more details.

    You should have received a copy of the GNU General Public License
    along with Atmegatron.  If not, see <http://www.gnu.org/licenses/>.
*/

//******UNIPOLAR ENVELOPE - for amplitude***********

#ifndef __ENVELOPE_H__
#define __ENVELOPE_H__


void Aenv_Let_A(int newA);
int Aenv_Get_A(void);
void Aenv_Let_D(int newD);
int Aenv_Get_D(void);
void Aenv_Let_S(byte newS);
byte Aenv_Get_S(void);
void Aenv_Let_R(int newR);
int Aenv_Get_R(void);
byte Aenv_Get_State(void);
byte Aenv_Get_Level(void);
void AEnv_Trigger(void);
void AEnv_Release(void);
void AEnv_CalcVal(void);


#endif // __ENVELOPE_H__