{"id":24405244,"url":"https://github.com/mkaudio-company/fastcwt","last_synced_at":"2025-04-12T00:24:43.985Z","repository":{"id":150410184,"uuid":"623206413","full_name":"mkaudio-company/fastcwt","owner":"mkaudio-company","description":"Rust-lang Continuous Wavelet Transform(CWT) library inspired by fCWT.","archived":false,"fork":false,"pushed_at":"2024-05-16T08:12:51.000Z","size":77585,"stargazers_count":16,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T16:44:31.204Z","etag":null,"topics":["audio-analysis","audio-processing","cwt","rust","rust-lang","wavelet","wavelet-transform"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkaudio-company.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","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-04-03T23:03:27.000Z","updated_at":"2025-03-18T16:43:21.000Z","dependencies_parsed_at":"2025-01-20T04:51:17.113Z","dependency_job_id":null,"html_url":"https://github.com/mkaudio-company/fastcwt","commit_stats":null,"previous_names":["mkaudio-company/fastcwt","minjaekimartist/fastcwt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkaudio-company%2Ffastcwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkaudio-company%2Ffastcwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkaudio-company%2Ffastcwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkaudio-company%2Ffastcwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkaudio-company","download_url":"https://codeload.github.com/mkaudio-company/fastcwt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248498710,"owners_count":21114179,"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":["audio-analysis","audio-processing","cwt","rust","rust-lang","wavelet","wavelet-transform"],"created_at":"2025-01-20T04:41:06.252Z","updated_at":"2025-04-12T00:24:43.941Z","avatar_url":"https://github.com/mkaudio-company.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastcwt\n[![](https://img.shields.io/crates/v/fastcwt.svg)](https://crates.io/crates/fastcwt)\n[![](https://img.shields.io/crates/l/fastcwt.svg)](https://crates.io/crates/fastcwt)\n[![](https://docs.rs/fastcwt/badge.svg)](https://docs.rs/fastcwt/)\n\nRust-lang Continuous Wavelet Transform(CWT) library inspired by fCWT.\n\nThis crate is a direct translation of fCWT Library written in C++ by Arts, L.P.A. and van den Broek, E.L. (https://github.com/fastlib/fCWT)\n\nI changed certain functions that I cannot translate, it seems like it could be eliminated, or the difference between fftw Library and rustfft crate. (fCWT used fftw, and fastcwt used rustfft.)\n\n# Usage\n\n``` Rust\n\nuse fastcwt::*;\nuse rand::prelude::*;\n\nlet wavelet = Wavelet::create(1.0); //Create a Morlet wavelet.\nlet scale = Scales::create(ScaleTypes::LinFreq, 48000, 20.0, 20000.0, 1000); //Create a scale factor.\n\nlet mut transform = FastCWT::create(wavelet, true); // Create a fCWT instance.\n\nlet mut input = vec![];\nfor _ in 0 .. 48000\n{\n    input.push(thread_rng().gen_range(-1.0 .. 1.0))\n};\n\nlet result = transform.cwt(1000, input.as_slice(), scale); //Store the result.\n```\n\n# Changelog\n0.1.9 - Used no_denormals to avoid extra latency. Cleaned up the repository.\n\n0.1.8 - Droped mkaudiolibrary which is not used.\n\n0.1.7 - Used boxed slice instead of vec in Scales struct.\n\n0.1.6 - Transfered owndership to company account.\n\n0.1.5 - Parallelized FFT using rayon crate.\n\n0.1.4 - Added error messages in assert!() and #![forbid(unsafe_code)] macro.\n\n0.1.3 - Get rid of unsafe codes and fn find2power().\n\n0.1.1, 0.1.2 - Minor fixes.\n\n0.1.0 - Initial release.\n\n# Citation\nArts, L.P.A., van den Broek, E.L. The fast continuous wavelet transformation (fCWT) for real-time, high-quality, noise-resistant time–frequency analysis. Nat Comput Sci 2, 47–58 (2022). https://doi.org/10.1038/s43588-021-00183-z","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkaudio-company%2Ffastcwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkaudio-company%2Ffastcwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkaudio-company%2Ffastcwt/lists"}