pub struct Fdn { /* private fields */ }Expand description
Feedback Delay Network for late reverb synthesis.
N delay lines (default 8) with a Hadamard mixing matrix for energy-preserving feedback, per-line lowpass absorption for frequency-dependent decay, and stereo output tapping.
Implementations§
Source§impl Fdn
impl Fdn
Sourcepub fn new(num_lines: usize, sample_rate: u32) -> Self
pub fn new(num_lines: usize, sample_rate: u32) -> Self
Create a new FDN with num_lines delay lines.
num_lines must be a power of 2 (for Hadamard matrix). Typical: 8 or 16.
Sourcepub fn set_room_params(
&mut self,
rt60: f32,
damping: f32,
size: f32,
sample_rate: u32,
)
pub fn set_room_params( &mut self, rt60: f32, damping: f32, size: f32, sample_rate: u32, )
Configure room parameters.
rt60: Reverb time in seconds (0.1 - 10.0)
damping: HF damping (0.0 = bright, 1.0 = dark)
size: Room size factor (0.5 = small, 2.0 = large)
Auto Trait Implementations§
impl Freeze for Fdn
impl RefUnwindSafe for Fdn
impl Send for Fdn
impl Sync for Fdn
impl Unpin for Fdn
impl UnsafeUnpin for Fdn
impl UnwindSafe for Fdn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.