mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
improve
This commit is contained in:
parent
95b0b25011
commit
cb0a8396c4
1 changed files with 3 additions and 3 deletions
|
@ -1767,12 +1767,12 @@ void FurnaceGUI::drawMacroEdit(FurnaceGUIMacroDesc& i, int totalFit, float avail
|
||||||
\
|
\
|
||||||
/* if ADSR/LFO, populate min/max */ \
|
/* if ADSR/LFO, populate min/max */ \
|
||||||
if (i.macro->open&6) { \
|
if (i.macro->open&6) { \
|
||||||
if ((i.macro->val[0]==0) && (i.macro->val[1]==0)) { \
|
if (i.macro->val[0]==0 && i.macro->val[1]==0) { \
|
||||||
i.macro->val[0]=i.min; \
|
i.macro->val[0]=i.min; \
|
||||||
i.macro->val[1]=i.max; \
|
i.macro->val[1]=i.max; \
|
||||||
} \
|
} \
|
||||||
i.macro->val[0]=(i.macro->val[0]<i.min ? i.min : (i.macro->val[0]>i.max ? i.max : i.macro->val[0])); \
|
i.macro->val[0]=CLAMP(i.macro->val[0],i.min,i.max); \
|
||||||
i.macro->val[1]=(i.macro->val[1]<i.min ? i.min : (i.macro->val[1]>i.max ? i.max : i.macro->val[1])); \
|
i.macro->val[1]=CLAMP(i.macro->val[1],i.min,i.max); \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
PARAMETER; \
|
PARAMETER; \
|
||||||
|
|
Loading…
Reference in a new issue