43 lines
907 B
Rust
43 lines
907 B
Rust
//! # Library for acoustic signal processing
|
|
//!
|
|
//! This crate contains structures and functions to perform acoustic measurements, interact with
|
|
//! data acquisition devices and apply common acoustic analysis operations on them.
|
|
#![warn(missing_docs)]
|
|
#![allow(non_snake_case)]
|
|
|
|
#![allow(non_upper_case_globals)]
|
|
#![allow(unused_imports)]
|
|
|
|
|
|
mod config;
|
|
use config::*;
|
|
|
|
pub use config::Flt;
|
|
// pub mod window;
|
|
// pub mod ps;
|
|
pub mod filter;
|
|
pub mod daq;
|
|
pub mod siggen;
|
|
|
|
use filter::*;
|
|
use daq::*;
|
|
|
|
|
|
/// A Python module implemented in Rust.
|
|
#[cfg(feature = "python-bindings")]
|
|
#[pymodule]
|
|
#[pyo3(name="_lasprs")]
|
|
fn lasprs(m: &Bound<'_, PyModule>) -> PyResult<()> {
|
|
|
|
|
|
// Add filter submodule
|
|
m.add_class::<filter::Biquad>()?;
|
|
m.add_class::<filter::SeriesBiquad>()?;
|
|
m.add_class::<filter::BiquadBank>()?;
|
|
m.add_class::<siggen::Siggen>()?;
|
|
|
|
daq::add_py_classses(m)?;
|
|
|
|
Ok(())
|
|
}
|