{"id":22513261,"url":"https://github.com/hamsadev/cascadefilters","last_synced_at":"2026-01-30T19:01:26.428Z","repository":{"id":266043883,"uuid":"897203403","full_name":"hamsadev/CascadeFilters","owner":"hamsadev","description":"A lightweight and efficient library for implementing multi-stage (cascaded) digital filters, supporting high-pass, low-pass, band-pass, and band-stop configurations. Ideal for signal processing tasks with customizable filter orders and coefficients.","archived":false,"fork":false,"pushed_at":"2024-12-02T08:25:35.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T12:37:22.460Z","etag":null,"topics":["c","cascade-filters","digital-filters","dsp","filter","high-pass-filter","low-pass-filter"],"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/hamsadev.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}},"created_at":"2024-12-02T08:13:56.000Z","updated_at":"2024-12-18T05:45:14.000Z","dependencies_parsed_at":"2024-12-02T09:26:42.679Z","dependency_job_id":"5f1fdfe0-a479-4c3f-b95d-d57108482e55","html_url":"https://github.com/hamsadev/CascadeFilters","commit_stats":null,"previous_names":["hamsadev/cascadefilters"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hamsadev/CascadeFilters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamsadev%2FCascadeFilters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamsadev%2FCascadeFilters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamsadev%2FCascadeFilters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamsadev%2FCascadeFilters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamsadev","download_url":"https://codeload.github.com/hamsadev/CascadeFilters/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamsadev%2FCascadeFilters/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28917454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T16:37:38.804Z","status":"ssl_error","status_checked_at":"2026-01-30T16:37:37.878Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","cascade-filters","digital-filters","dsp","filter","high-pass-filter","low-pass-filter"],"created_at":"2024-12-07T03:10:55.542Z","updated_at":"2026-01-30T19:01:26.409Z","avatar_url":"https://github.com/hamsadev.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Filter Cascade Library\n\nThis library provides an implementation for digital filter cascades, supporting high-pass, low-pass, band-pass, and band-stop filters. It allows initializing, updating, and managing filter cascades for signal processing applications.\n\n## Features\n\n- **Filter Types**: High-pass, Low-pass, Band-pass, and Band-stop.\n- **Filter Order**: Configurable by the user, with a default maximum order of 6.\n- **Reset and Update**: Easily reset and update filter states for real-time processing.\n- **Configurable Parameters**: Set filter type, order, center frequency, bandwidth, and sampling frequency.\n\n## File Structure\n\n- **`CascadeFilters.h`**: Contains the declarations of the filter cascade structures and functions.\n- **`CascadeFilters.c`**: Contains the implementation of the filter cascade functions.\n\n## Installation\n\nSimply include the `CascadeFilters.h` and `CascadeFilters.c` files in your project and ensure they are part of your build system.\n\n## Usage\n\n### Initialization\n\nTo initialize a filter cascade, use `filterCascadeInitialise`:\n\n```c\nFilterCascade cascade;\nfilterCascadeInitialise(\n    \u0026cascade,\n    FILTER_TYPE_BANDPASS,  // Filter type\n    3,                    // Number of filters\n    1000.0,               // Center frequency (Hz)\n    200.0,                // Bandwidth (Hz)\n    44100.0               // Sampling frequency (Hz)\n);\n```\n\n### Updating the Filter\n\nTo process an input signal through the filter cascade:\n\n```c\ndouble output = filterCascadeUpdate(\u0026cascade, input);\n```\n\n### Resetting the Filter\n\nTo reset the filter's internal states:\n\n```c\nfilterCascadeReset(\u0026cascade);\n```\n\n## API Reference\n\n### Functions\n\n#### `void filterCascadeInitialise(FilterCascade* cascade, FilterType type, int numberOfFilters, double centerFrequency, double bandwidth, double sampleFrequency)`\n\nInitializes a filter cascade.\n\n- **Parameters**:\n  - `cascade`: Pointer to a `FilterCascade` structure.\n  - `type`: Type of the filter (e.g., `FILTER_TYPE_HIGHPASS`).\n  - `numberOfFilters`: Number of cascaded filters.\n  - `centerFrequency`: Center frequency in Hz.\n  - `bandwidth`: Bandwidth in Hz.\n  - `sampleFrequency`: Sampling frequency in Hz.\n\n#### `double filterCascadeUpdate(FilterCascade* cascade, double input)`\n\nProcesses an input signal through the filter cascade and returns the filtered output.\n\n- **Parameters**:\n  - `cascade`: Pointer to the initialized `FilterCascade`.\n  - `input`: Input signal value.\n\n#### `void filterCascadeReset(FilterCascade* cascade)`\n\nResets the filter's internal states.\n\n- **Parameters**:\n  - `cascade`: Pointer to the `FilterCascade`.\n\n## Constants\n\n- `FILTER_ORDER_MAX`: Maximum supported filter order (6).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamsadev%2Fcascadefilters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamsadev%2Fcascadefilters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamsadev%2Fcascadefilters/lists"}