logo

bytemedia

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

c/kagome_kagome: 120 bpm, play once

Diffstat:

MC/kagome_kagome.c9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/C/kagome_kagome.c b/C/kagome_kagome.c @@ -7,7 +7,7 @@ #include "au.h" -#define TICK 3600 +#define TICK 4000 #define NOTE (TICK*0.99) #define GAP (TICK*0.01) @@ -54,7 +54,7 @@ note(int dur, int pitch) { } } #else -#define note(dur,pitch) sin_note(dur, header, note_to_hertz(440, pitch-8), 75, 0) +#define note(dur,pitch) sin_note(dur, header, note_to_hertz(440, pitch-8), 100, 0) #endif void @@ -63,7 +63,7 @@ silence(int dur) { } void -kagome(struct au_header *header) { +kagome_kagome(struct au_header *header) { note(NOTE*2, 8); silence(GAP*2); note(NOTE*1, 8); silence(GAP); @@ -204,8 +204,7 @@ main(void) // fd 1 is stdout write_au_header(1, &header); - kagome(&header); - kagome(&header); + kagome_kagome(&header); // dur pt vol del //sin_note(header.samplerate, &header, 440, 150, 0);