pub struct PlaybackHead<T: Transcendental> {
pub tape_speed: T,
pub tape_width: T,
pub noise_floor: T,
pub wow_flutter: T,
pub print_through: T,
/* private fields */
}Expand description
Playback head model for analog tape.
Applies wow & flutter, head differentiator, gap loss, playback EQ, print-through, and tape noise. Output is the amplified audio signal. No op-amp stages — add those externally.
Fields§
§tape_speed: TTape speed in cm/s.
tape_width: TTape width in mm (affects noise floor).
noise_floor: TTape noise floor amplitude.
wow_flutter: TWow & flutter intensity factor.
print_through: TPrint-through crosstalk factor.
Implementations§
Source§impl<T: Transcendental> PlaybackHead<T>
impl<T: Transcendental> PlaybackHead<T>
Sourcepub fn process_sample(&mut self, recorded_signal: T) -> T
pub fn process_sample(&mut self, recorded_signal: T) -> T
Process one sample through the playback chain.
recorded_signal is the magnetized signal read from tape.
Trait Implementations§
Source§impl<T: Transcendental> Algorithm<T> for PlaybackHead<T>
impl<T: Transcendental> Algorithm<T> for PlaybackHead<T>
Source§fn process(
&mut self,
input: Option<&[T]>,
output: &mut [T],
) -> ProcessResult<()>
fn process( &mut self, input: Option<&[T]>, output: &mut [T], ) -> ProcessResult<()>
Process one block of signal. Read more
Source§fn metadata(&self) -> AlgorithmMetadata
fn metadata(&self) -> AlgorithmMetadata
Descriptive metadata (defaults to empty).
Source§fn apply_command(&mut self, _value: T)
fn apply_command(&mut self, _value: T)
Receive a real-time command value from the control path. Read more
Source§impl<T: Clone + Transcendental> Clone for PlaybackHead<T>
impl<T: Clone + Transcendental> Clone for PlaybackHead<T>
Source§fn clone(&self) -> PlaybackHead<T>
fn clone(&self) -> PlaybackHead<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for PlaybackHead<T>where
T: Freeze,
impl<T> RefUnwindSafe for PlaybackHead<T>where
T: RefUnwindSafe,
impl<T> Send for PlaybackHead<T>
impl<T> Sync for PlaybackHead<T>
impl<T> Unpin for PlaybackHead<T>where
T: Unpin,
impl<T> UnsafeUnpin for PlaybackHead<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PlaybackHead<T>where
T: UnwindSafe,
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