mirror of https://github.com/AxioDL/amuse.git
Minor literal value adjustment
This commit is contained in:
parent
218fad7541
commit
38f24ce3e4
|
@ -30,7 +30,7 @@ struct ADSR
|
||||||
double getAttack() const { return attack / 1000.0; }
|
double getAttack() const { return attack / 1000.0; }
|
||||||
double getDecay() const { return (decay == 0x8000) ? 0.0 : (decay / 1000.0); }
|
double getDecay() const { return (decay == 0x8000) ? 0.0 : (decay / 1000.0); }
|
||||||
double getSustain() const { return sustain / double(0x1000); }
|
double getSustain() const { return sustain / double(0x1000); }
|
||||||
double getRelease() const { return release / double(1000); }
|
double getRelease() const { return release / 1000.0; }
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Defines phase-based volume curve for macro volume control (modified DLS standard) */
|
/** Defines phase-based volume curve for macro volume control (modified DLS standard) */
|
||||||
|
@ -46,7 +46,7 @@ struct ADSRDLS
|
||||||
double getAttack() const { return TimeCentsToSeconds(attack); }
|
double getAttack() const { return TimeCentsToSeconds(attack); }
|
||||||
double getDecay() const { return TimeCentsToSeconds(decay); }
|
double getDecay() const { return TimeCentsToSeconds(decay); }
|
||||||
double getSustain() const { return sustain / double(0x1000); }
|
double getSustain() const { return sustain / double(0x1000); }
|
||||||
double getRelease() const { return release / double(1000); }
|
double getRelease() const { return release / 1000.0; }
|
||||||
double getVelToAttack(int8_t vel) const
|
double getVelToAttack(int8_t vel) const
|
||||||
{
|
{
|
||||||
if (velToAttack == 0x80000000)
|
if (velToAttack == 0x80000000)
|
||||||
|
|
Loading…
Reference in New Issue