repositories
/
SugarCubes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sinesphere rotate
[SugarCubes.git]
/
Audio.pde
diff --git
a/Audio.pde
b/Audio.pde
index 4547a746cf9b3edb3617ee296f779ff188bd1524..def7d0e1062ba7697415cef9ce98298f0f64a937 100644
(file)
--- a/
Audio.pde
+++ b/
Audio.pde
@@
-39,8
+39,8
@@
public static class GraphicEQ {
}
}
}
}
- final float logTen = log(10);
- public float log10(float val) {
+
static
final float logTen = log(10);
+ public
static
float log10(float val) {
return log(val) / logTen;
}
return log(val) / logTen;
}
@@
-70,13
+70,13
@@
public static class GraphicEQ {
float value = constrain(positiveDecibels / decibelRange, 0, 1);
if (value > bandVals[i].getValuef()) {
float value = constrain(positiveDecibels / decibelRange, 0, 1);
if (value > bandVals[i].getValuef()) {
- bandVals[i].set
EndVal
(value, attack.getValuef() * 20).trigger();
+ bandVals[i].set
RangeFromHereTo
(value, attack.getValuef() * 20).trigger();
}
}
for (LinearEnvelope band : bandVals) {
band.run(deltaMs);
if (!band.isRunning() && band.getValuef() > 0) {
}
}
for (LinearEnvelope band : bandVals) {
band.run(deltaMs);
if (!band.isRunning() && band.getValuef() > 0) {
- band.set
EndVal
(0, release.getValuef() * 1600).trigger();
+ band.set
RangeFromHereTo
(0, release.getValuef() * 1600).trigger();
}
}
}
}
}
}