pub struct RecordHead<T: Transcendental> {
pub tape_speed: T,
pub bias_level: T,
pub saturation: T,
pub hysteresis: T,
/* private fields */
}Expand description
Record head model for analog tape.
Applies bias oscillator mixing and magnetic tape nonlinearity (saturation + hysteresis). Output is the magnetized signal ready to be stored on tape. No op-amp stages — add those externally.
Fields§
§tape_speed: TTape speed in cm/s.
bias_level: TBias level (0.0–1.0).
saturation: TMagnetic saturation strength (0.0–1.0).
hysteresis: THysteresis effect strength.
Implementations§
Source§impl<T: Transcendental> RecordHead<T>
impl<T: Transcendental> RecordHead<T>
Sourcepub fn process_sample(&mut self, input: T) -> T
pub fn process_sample(&mut self, input: T) -> T
Process one sample through the record chain.
Trait Implementations§
Source§impl<T: Transcendental> Algorithm<T> for RecordHead<T>
impl<T: Transcendental> Algorithm<T> for RecordHead<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 RecordHead<T>
impl<T: Clone + Transcendental> Clone for RecordHead<T>
Source§fn clone(&self) -> RecordHead<T>
fn clone(&self) -> RecordHead<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 RecordHead<T>where
T: Freeze,
impl<T> RefUnwindSafe for RecordHead<T>where
T: RefUnwindSafe,
impl<T> Send for RecordHead<T>
impl<T> Sync for RecordHead<T>
impl<T> Unpin for RecordHead<T>where
T: Unpin,
impl<T> UnsafeUnpin for RecordHead<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RecordHead<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