Skip to content

Commit

Permalink
better sound mixer.. also Happy New Year!
Browse files Browse the repository at this point in the history
  • Loading branch information
poeticAndroid committed Dec 30, 2019
1 parent 1f9231b commit 9b6f16d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/machine.d
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import pixmap;
import image_loader;
import network;

const VERSION = "0.10.11"; /// version of the software
const VERSION = "1.0.0"; /// version of the software

/**
Class representing "the machine"!
Expand Down
6 changes: 2 additions & 4 deletions source/soundchip.d
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,9 @@ class SoundChip
else
this.rate[i] = 0;
}
this.buffer[p] = this.value[0] + this.value[1] - this.value[0] * this.value[1];
this.buffer[p] = this.buffer[p] + this.value[2] * .4 - this.buffer[p] * this.value[2] * .4;
this.buffer[p] = this.value[0] * .5 + this.value[1] * .5 + this.value[2] * .25;
p++;
this.buffer[p] = this.value[2] + this.value[3] - this.value[2] * this.value[3];
this.buffer[p] = this.buffer[p] + this.value[1] * .4 - this.buffer[p] * this.value[1] * .4;
this.buffer[p] = this.value[3] * .5 + this.value[2] * .5 + this.value[1] * .25;
p++;
this.lastTick++;
if (this.timeToSync-- == 0)
Expand Down

0 comments on commit 9b6f16d

Please sign in to comment.