HackerTrans
トップ新着トレンドコメント過去質問紹介求人

olvvier

no profile record

投稿

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

haptyk.com
1 ポイント·投稿者 olvvier·4 か月前·1 コメント

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

haptyk.com
6 ポイント·投稿者 olvvier·4 か月前·1 コメント

コメント

olvvier
·4 か月前·議論
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 か月前·議論
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 か月前·議論
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