{"id":19473354,"url":"https://github.com/stuffmatic/microdsp","last_synced_at":"2025-07-03T19:35:42.786Z","repository":{"id":65290743,"uuid":"295422170","full_name":"stuffmatic/microdsp","owner":"stuffmatic","description":"DSP algorithms and utilities written in Rust. Performant, embedded friendly and no_std compatible.","archived":false,"fork":false,"pushed_at":"2025-03-17T10:15:11.000Z","size":3611,"stargazers_count":20,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T04:45:54.124Z","etag":null,"topics":["adaptive-filtering","audio","dsp","embedded","no-std","novelty-detection","pitch-detection","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/stuffmatic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2020-09-14T13:18:50.000Z","updated_at":"2025-05-21T16:02:51.000Z","dependencies_parsed_at":"2025-04-25T12:42:39.906Z","dependency_job_id":null,"html_url":"https://github.com/stuffmatic/microdsp","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/stuffmatic/microdsp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuffmatic%2Fmicrodsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuffmatic%2Fmicrodsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuffmatic%2Fmicrodsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuffmatic%2Fmicrodsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuffmatic","download_url":"https://codeload.github.com/stuffmatic/microdsp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuffmatic%2Fmicrodsp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263389116,"owners_count":23459343,"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","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":["adaptive-filtering","audio","dsp","embedded","no-std","novelty-detection","pitch-detection","rust"],"created_at":"2024-11-10T19:18:15.702Z","updated_at":"2025-07-03T19:35:42.749Z","avatar_url":"https://github.com/stuffmatic.png","language":"Rust","readme":"# microdsp\n\n[![Crates.io](https://img.shields.io/crates/v/microdsp)](https://crates.io/crates/microdsp)\n[![Docs.rs](https://docs.rs/microdsp/badge.svg)](https://docs.rs/microdsp)\n\nmicrodsp is a collection of [DSP](https://en.wikipedia.org/wiki/Digital_signal_processing)\nalgorithms and utilities written in Rust. The code is `no_std` compatible and suitable for use in embedded systems. Available algorithms include\n\n* Monophonic [pitch](https://en.wikipedia.org/wiki/Pitch_%28music%29) detection using the [MPM algorithm](http://www.cs.otago.ac.nz/tartini/papers/A_Smarter_Way_to_Find_Pitch.pdf). Supports downsampling and overlapping windows.\n* [Audio onset detection](https://en.wikipedia.org/wiki/Onset_(audio)) using [spectral flux novelty](https://krishnasubramani.web.illinois.edu/data/Energy-Weighted%20Multi-Band%20Novelty%20Functions%20for%20Onset%20Detection%20in%20Piano%20Music.pdf). Used to detect transients and \"starts of sounds\". Supports downsampling and overlapping windows.\n* [Normalized least mean squares](https://en.wikipedia.org/wiki/Least_mean_squares_filter#Normalized_least_mean_squares_filter_(NLMS)) adaptive filter. Can for example be used for signal cancellation and time delay estimation.\n\nTo see microdsp in action on a microcontroller, check out [these videos](https://github.com/stuffmatic/microdsp-zephyr-demos#demos).\n\n## Installing\n\nAdd the following line to your Cargo.toml file:\n\n```\nmicrodsp = \"0.1\"\n```\n\nmicrodsp is `no_std` compatible and relies\non [`alloc`](https://doc.rust-lang.org/alloc/).\nWhen building for targets without a default allocator,\none must be provided by the user. This can be accomplished in stable Rust 1.68 and higher\nusing `#[global_allocator]` and `#[default_alloc_error_handler]`.\n\n## Usage\n\nSee [the crate documentation](https://docs.rs/microdsp).\n\n## Demos\n\n### Cargo examples\n\nThe [`examples`](examples) folder contains a number of demos that can be run with\n\n```\ncargo run --example [filename without .rs extension]\n```\n\nfor example `cargo run --example mpm`. Some of these use `rust-portaudio` for real time audio input. If you run into portaudio related issues, you may find some pointers [here](https://github.com/RustAudio/rust-portaudio).\n\n### Embedded\n\nThe [microdsp-zephyr-demos](https://github.com/stuffmatic/microdsp-zephyr-demos/) repo contains demos showing how to do real time audio processing on a microcontroller using microdsp and [Zephyr](https://zephyrproject.org/).\n\n## License\n\nThis project is released under the MIT license.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuffmatic%2Fmicrodsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuffmatic%2Fmicrodsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuffmatic%2Fmicrodsp/lists"}