foxygit / fake-08-xbox360 Log in
commit 2e9bde66523256880831ac8441684f0dad2c5a2b
Author:     Jon Bell <jondbell@protonmail.com>
AuthorDate: Wed May 6 18:28:15 2020 -0600
Commit:     Jon Bell <jondbell@protonmail.com>
CommitDate: Wed May 6 18:28:15 2020 -0600

    add super dumb/inaccurrate noise implementation
---
 source/synth.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/source/synth.cpp b/source/synth.cpp
index c807bd2..a47f719 100644
--- a/source/synth.cpp
+++ b/source/synth.cpp
@@ -64,6 +64,8 @@ float synth::waveform(int instrument, float advance)
             //for (float m = 1.75f, d = 1.f; m <= 128; m *= 2.25f, d *= 0.75f)
             //    ret += d * noise.eval(lol::vec_t<float, 1>(m * advance));

+            ret = ((float)rand() / (float)RAND_MAX);
+
             return ret * 0.4f;
         }
         case INST_PHASER: