#!/usr/bin/env bash
# Implementing a human-powered "scheduler" by playing a sound every ${quantum}
# seconds. This script is designed to be run on a Mac.

quantum=1
count=0

while true; do
    sleep ${quantum}
    (( count++ ))
    echo "Scheduling quantum: ${count}"
    afplay -t 0.1 /System/Library/Sounds/Ping.aiff
done

