HackerTrans
TopNewTrendsCommentsPastAskShowJobs

olvvier

no profile record

Submissions

App that uses a hidden sensor in Macs to turn typing force into keyboard sounds

haptyk.com
1 points·by olvvier·قبل 4 أشهر·1 comments

Show HN: Mech keyboard sounds driven by a hidden accelerometer in MacBooks

haptyk.com
6 points·by olvvier·قبل 4 أشهر·1 comments

comments

olvvier
·قبل 4 أشهر·discuss
M1/M2/M3/M4+ MacBook Pros & Airs have an internal accelerometer that reads impact force and vibrations. Haptyk uses it to play mechanical keyboard sounds that match how hard you actually type.

Type gently = quiet click. Type hard = louder clack.

It feels way more natural than I expected.

First app to do this on mac, to my knowledge.
olvvier
·قبل 4 أشهر·discuss
I built this after discovering and open-sourcing the accelerometer signal in Apple Silicon MacBooks (https://github.com/olvvier/apple-silicon-accelerometer).

The sensor reads impact force and vibration data in real time. Haptyk maps that to different sound intensities: soft taps play a quieter click, hard presses play a louder clack.

Would love to hear what you think.
olvvier
·قبل 5 أشهر·discuss
author here, quick update: the sensor code is now a standalone pip package

    pip install macimu

    from macimu import IMU
    with IMU() as imu:
        print(imu.latest_accel())  # Sample(x, y, z) in g
        print(imu.latest_gyro())   # Sample(x, y, z) in deg/s
requires sudo. details: https://github.com/olvvier/apple-silicon-accelerometer