diff --git a/source/machine.d b/source/machine.d index c7382a3..00f4267 100644 --- a/source/machine.d +++ b/source/machine.d @@ -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"! diff --git a/source/soundchip.d b/source/soundchip.d index 2433d23..78dc3e7 100644 --- a/source/soundchip.d +++ b/source/soundchip.d @@ -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)