home.social

#rhythmic_latency — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #rhythmic_latency, aggregated by home.social.

  1. Places #rhythmic_latency could possibly be added:

    scroll events
    WM animation easing speed
    buffer flushes for text
    selected dcop events
    page-up / page-down keys
    enter key
    function keys (which often trigger editing changes or change hardware settings like keyboard brightness)

    For example, my laptop makes a small sound when increasing or decreasing volume with the function keys. If I needed to quickly drop the volume, it would sound neat if it lined up with a beat (120 BPM, 1/16 notes = 7 key events per second, which is reasonably fast).

    There could be a library function to assist. Just add it before events where you want to add rhythm:
    rhythmic_delay(max_wait=25ms). If the next beat occurs in the time 25 ms window, it will delay the necessary amount. Otherwise it returns immediately.

    next_beat_timestamp = rhythmic_delay(max_wait=50ms, offset= 10ms) #tell us 10 ms before the next beat, because it takes a while to render.