logo

bytemedia

Home to byte-level sounds, images, videos, … git clone https://hacktivis.me/git/bytemedia.git
commit: 92d96124c6256aa8e50142bb2623a8ad08c9196c
parent 8ee74bb4e1cbe1588c9f2b40ce63c1150a2035e5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 22 Mar 2022 23:49:27 +0100

battery_*: Add emphasis via volume+tone

Diffstat:

MC/battery_back.c4++--
MC/battery_low.c4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/C/battery_back.c b/C/battery_back.c @@ -41,8 +41,8 @@ main(void) int ref_tune = 440; note(header.samplerate/4, &header, note_to_hertz(ref_tune, 1-8), volume); - note(header.samplerate/4, &header, note_to_hertz(ref_tune, 2-8), volume); - note(header.samplerate/4, &header, note_to_hertz(ref_tune, 3-8), volume); + note(header.samplerate/4, &header, note_to_hertz(ref_tune, 2-8), volume*1.1); + note(header.samplerate/4, &header, note_to_hertz(ref_tune, 4-8), volume*1.3); silence(header.samplerate/4); return 0; diff --git a/C/battery_low.c b/C/battery_low.c @@ -40,9 +40,9 @@ main(void) int volume = 60; int ref_tune = 440; - note(header.samplerate/4, &header, note_to_hertz(ref_tune, 1-8), volume); - note(header.samplerate/4, &header, note_to_hertz(ref_tune, 3-8), volume); note(header.samplerate/4, &header, note_to_hertz(ref_tune, 2-8), volume); + note(header.samplerate/4, &header, note_to_hertz(ref_tune, 3-8), volume*0.9); + note(header.samplerate/4, &header, note_to_hertz(ref_tune, 0-8), volume*0.7); silence(header.samplerate/4); return 0;