Skip to content

anxkhn/nonoise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nonoise

Experimental low-frequency active noise control for a macOS microphone and speakers.

This is not headphone-grade ANC. A Mac microphone and speakers are separated from your ears, and Core Audio plus acoustic latency is too high for broad-band cancellation. This prototype is useful for steady, low-frequency noise at the microphone position: fan hum, AC rumble, transformer buzz, and similar tones.

Safety

Start with low speaker volume and low gain. Keep the microphone away from the speakers at first. The app has a startup ramp, output limiter, and clipping stops, but acoustic feedback is still possible if the speaker output re-enters the microphone too strongly.

For best results, put the microphone where you want the quiet zone. Built-in Mac microphones usually cancel at the Mac, not at your ears.

Setup

uv sync

macOS may ask for microphone permission for Terminal, iTerm, or your editor.

Use

List devices:

uv run nonoise list-devices

Check defaults:

uv run nonoise probe

Run with conservative defaults:

uv run nonoise run --gain 0.05 --lowpass-hz 300

The app requests 5 ms device latency by default, but built-in Mac hardware still reports much higher real latency. Try a smaller block if the stream is stable:

uv run nonoise run --gain 0.03 --lowpass-hz 250 --blocksize 64

Run a 10-second settings sweep:

uv run nonoise run --sweep --gain 0.06 --lowpass-hz 250 --blocksize 64

Run repeated passes with a short beep marking each setting change:

uv run nonoise run --sweep --sweep-loops 3 --gain 0.06 --lowpass-hz 250 --blocksize 64

Tune while running:

  • + / -: gain up or down
  • ] / [: delay up or down
  • p: flip polarity
  • m: mute
  • q: quit

If the noise gets louder, lower gain, flip polarity, or move delay in small steps. ANC only works when the emitted anti-noise arrives with the right phase and amplitude at the microphone.

About

Experimental macOS microphone and speaker active noise-control prototype

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages