Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/scripts/ck_chirp_test.sh # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / scripts / ck_chirp_test.sh` 27 lines ยท 1277 bytes Raw Blame History 1 #!/bin/sh 2 # ck_chirp_test.sh -- host test of the startup sound (native/kernel/ui/chirp.c), 3 # the gravitational-wave chirp timed to the night sky of the startup. 4 # 1. Silent while the stars come out and after the end; both channels 5 # the same; the loudest sample at the peak level; no step big enough to 6 # click. 7 # 2. Loudness comes in as the black holes appear, only rises to the merger, 8 # peaks there and fades in tens of milliseconds. 9 # 3. Pitch is steady while the holes circle, only rises in the spiral, reaches the top 10 # in the last 60 ms; the pitch heard (zero crossings) matches. 11 # 4. Frames worked out in any order give the same sound. 12 # The sound lands in target/native-kernel-chirp/chirp.wav for a person to 13 # listen to. Hosted only. Ends with "AIENOS_CHIRP: PASS" or 14 # "AIENOS_CHIRP: FAIL ". 15 set -u 16 cd "$(dirname "$0")/.." 17 K=native/kernel 18 OUT=target/native-kernel-chirp 19 W=$(mktemp -d "${TMPDIR:-/tmp}/ck_chirp.XXXXXX") 20 trap 'rm -rf "$W"' EXIT 21 fail() { echo "AIENOS_CHIRP: FAIL $*"; exit 1; } 22 CC=${HOSTCC:-cc} 23 mkdir -p "$OUT" 24 $CC -std=c11 -O2 -Wall -Wextra -Werror -o "$W/test" $K/ui/tests/chirp_test.c $K/ui/chirp.c || fail "test does not build" 25 "$W/test" "$OUT" || fail "sound checks" 26 echo "sound: $OUT/chirp.wav" 27 echo "AIENOS_CHIRP: PASS"