{"id":20021373,"url":"https://github.com/piotrpdev/autofocus","last_synced_at":"2025-09-20T04:32:18.476Z","repository":{"id":204710487,"uuid":"712196531","full_name":"piotrpdev/AutoFocus","owner":"piotrpdev","description":"Automate changing Sample Rate and Buffer Size in Focusrite Notifier device settings.","archived":true,"fork":false,"pushed_at":"2023-11-01T02:30:54.000Z","size":1749,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T03:42:29.071Z","etag":null,"topics":["audio","automation","crackling","dotnet","dotnet-core","focusrite","interface","scarlett","solo","ui"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/piotrpdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-31T01:42:34.000Z","updated_at":"2025-01-04T19:34:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea090f95-64e6-465a-b9c4-7e683fcef7a7","html_url":"https://github.com/piotrpdev/AutoFocus","commit_stats":null,"previous_names":["piotrpdev/autofocus"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/piotrpdev/AutoFocus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2FAutoFocus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2FAutoFocus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2FAutoFocus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2FAutoFocus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piotrpdev","download_url":"https://codeload.github.com/piotrpdev/AutoFocus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2FAutoFocus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276046891,"owners_count":25575876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","automation","crackling","dotnet","dotnet-core","focusrite","interface","scarlett","solo","ui"],"created_at":"2024-11-13T08:36:32.901Z","updated_at":"2025-09-20T04:32:18.140Z","avatar_url":"https://github.com/piotrpdev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# AutoFocus\n\nhttps://github.com/piotrpdev/AutoFocus/assets/99439005/2fa79a56-4231-46ca-ba44-acaa1aa62f4e\n\n## Overview\nAutoFocus is a tool designed to automate the process of changing Sample Rate and Buffer Size in the Focusrite Notifier device settings. I made it because a lot of different programs change those settings when launched and then you have to manually change them back to prevent crackling in VoIP software (e.g. Discord).\n\n## Requirements\n- Windows (only tested on 11)\n- Focusrite Notifier ([comes bundled with Focusrite Control](https://support.focusrite.com/hc/en-gb/articles/360013505620-The-Focusrite-Notifier-icon-isn-t-in-the-Windows-taskbar))\n    - *make sure you have it set to launch at startup*\n\n## Where do I get it?\n\nDownload the latest version from [Releases](https://github.com/piotrpdev/AutoFocus/releases).\n\n## Usage\n\nYou can use AutoFocus via the command-line interface. Here is a basic example:\n\n```bash\nAutoFocus.exe -s 48000 -b 128\n```\n\nThis command sets the Sample Rate to 48000 Hz and Buffer Size to 128 (default).\n\n### Options\n\n- `-s, --sample-rate \u003crate\u003e`: Set the sample rate (in Hz). Default is \"48000\".\n- `-b, --buffer-size \u003csize\u003e`: Set the buffer size. Default is \"128\".\n- `-n, --notifier-path \u003cpath\u003e`: Absolute path to 'Focusrite Notifier.exe'. Default is `\"C:\\\\Program Files\\\\Focusrite\\\\Drivers\\\\Focusrite Notifier.exe\"`.\n- `-a, --notifier-args \u003cargs\u003e`: Arguments to pass when launching 'Focusrite Notifier.exe'. Default is \"40000\".\n- `-f, --from-tray`: Try launching Focusrite Notifier using the tray icon. Default is false.\n    - `-t, --check-tray`: Check for Focusrite Notifier icon in non-hidden tray icons. Default is false.\n    - `-x, --check-hidden-tray`: Check for Focusrite Notifier icon in hidden tray icons. Default is true.\n- `-w, --waitAfterSample`, How long to wait after changing Sample Rate (Notifier often freezes). Default is 500.\n\n## Troubleshooting\n\nDebug logs are stored in `%LOCALAPPDATA%/AutoFocus/Logs/*.txt`\n\n\n## What's under the hood? 👀\n- [.NET Core 7](https://learn.microsoft.com/en-us/dotnet/core/introduction) (C#) for good Windows integration\n- [FlaUI](https://github.com/FlaUI/FlaUI) (UIA3) for UI automation\n- [CliFx](https://github.com/Tyrrrz/CliFx) for CLI functionality\n- [Serilog](https://github.com/serilog/serilog) for logging\n\n## License\n\nLicensed under the MIT License. See [LICENSE.md](LICENSE.md) for details.\n\n## Acknowledgements\n\nThank you:\n\n- Authors of the packages I used\n- [Stack Overflow](https://stackoverflow.com/)\n- Focusrite for making great audio products, please don't sue me 🙏.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrpdev%2Fautofocus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotrpdev%2Fautofocus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrpdev%2Fautofocus/lists"}