integer tempo = 120, -- beats per minute (max 800) measure = 4, -- beats per bar runsecs = 5 -- total run time (rounded up to whole bars) integer low_freq = #200, low_duration = 20, high_freq = #400, high_duration = 20 atom k32=0, xBeep atom t0 = time(), count = 0 atom duration = 60/tempo, next = time()+duration while time()