}
if (fSharp > 0) {
fSharp = 1/(1-fSharp);
- hsb[2] = hsb[2] < .5 ? pow(hsb[2],fSharp) : 1-pow(1-hsb[2],fSharp);
+ if (hsb[2] < .5) {
+ hsb[2] = pow(hsb[2],fSharp);
+ } else {
+ hsb[2] = 1-pow(1-hsb[2],fSharp);
+ }
}
if (fSoft > 0) {
if (hsb[2] > 0.5) {
noFill();
stroke(#999999);
rect(x, y, tw, h);
+ h = 5;
noStroke();
for (long val : new long[] {
lx.engine.timer.deckNanos,
+ lx.engine.timer.copyNanos,
lx.engine.timer.fxNanos}) {
float amt = val / (float) lx.timer.drawNanos;
fill(lx.hsb(hv % 360, 100, 80));
rect(xp, y, amt * tw, h-1);
hv += 140;
xp += amt * tw;
- }
+ }
+
+ xp = x;
+ y += h;
+ hv = 120;
+ for (long val : new long[] {
+ lx.engine.getDeck(0).timer.runNanos,
+ lx.engine.getDeck(1).timer.runNanos,
+ lx.engine.getDeck(1).getFaderTransition().timer.blendNanos}) {
+ float amt = val / (float) lx.timer.drawNanos;
+ fill(lx.hsb(hv % 360, 100, 80));
+ rect(xp, y, amt * tw, h-1);
+ hv += 140;
+ xp += amt * tw;
+ }
}
void drawSimulation(color[] simulationColors) {