Skip to content

Commit 840002c

Browse files
committed
Added icons on tool buttons and component buttons
1 parent 5c96f07 commit 840002c

27 files changed

+49
-14
lines changed

Components/ADSRComponent.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,19 @@ qreal ADSRComponent::getOutput(qreal _time)
6060
qreal value = 0;
6161
if (_time > 0 && _time <= attackTime)
6262
{
63-
value = Utils::MapValue(_time, 0, attackTime, 0, 1);
63+
value = Utils::MapValue(_time, 0., attackTime, 0., 1.);
6464
}
6565
else if (_time > attackTime && _time <= decayTime)
6666
{
67-
value = Utils::MapValue(_time, attackTime, decayTime, 1, sustainAmp);
67+
value = Utils::MapValue(_time, attackTime, decayTime, 1., sustainAmp);
6868
}
6969
else if (_time > decayTime && _time <= sustainTime)
7070
{
7171
value = sustainAmp;
7272
}
7373
else if (_time > sustainTime && _time <= releaseTime)
7474
{
75-
value = Utils::MapValue(_time, sustainTime, releaseTime, sustainAmp, 0);
75+
value = Utils::MapValue(_time, sustainTime, releaseTime, sustainAmp, 0.);
7676
}
7777

7878
return input * value;
224 Bytes
Loading
303 Bytes
Loading
356 Bytes
Loading
290 Bytes
Loading
288 Bytes
Loading
317 Bytes
Loading
279 Bytes
Loading
271 Bytes
Loading
195 Bytes
Loading

0 commit comments

Comments
 (0)