logo

bytemedia

Home to byte-level sounds, images, videos, … git clone https://hacktivis.me/git/bytemedia.git
commit: 4933695039f2b8493212ec675dea7598c70aa562
parent 3c26392fb487f1a3f024fe4b6162e5bffa283fd0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  9 Jan 2022 14:23:38 +0100

C/kagome_kagome: Add some noise

Diffstat:

MC/kagome_kagome.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/C/kagome_kagome.c b/C/kagome_kagome.c @@ -42,7 +42,7 @@ sin_note(int dur, struct au_header *header, int hertz, float volume, float delay char buf[4]; for(int t = 0;t<dur;t++) { - putchar((uint8_t)(sinf((delay + t) * 2*M_PI*hertz/header->samplerate) * volume)); + putchar((uint8_t)(sinf((delay + t) * 2*M_PI*hertz/header->samplerate) * volume) % 210); } }