pub struct VocoderPolicy {
pub sample_rate_hz: u32,
pub stretch_ratio: f64,
pub pitch_ratio: f64,
pub stft: StftPlan,
pub phase_lock: PhaseLockPolicy,
pub transient: TransientPolicy,
pub phase_unwrap: PhaseUnwrapPolicy,
pub instantaneous_frequency: InstantaneousFrequencyPolicy,
pub max_output_samples: usize,
}Expand description
Complete bounded policy for offline monophonic phase vocoding.
Fields§
§sample_rate_hz: u32Source and destination sample rate in hertz.
stretch_ratio: f64Output duration divided by input duration.
pitch_ratio: f64Output pitch divided by input pitch, independent of duration.
stft: StftPlanExisting phase-preserving STFT plan to compose.
phase_lock: PhaseLockPolicyNeighbor-bin phase relationship.
transient: TransientPolicyTransient phase-reset behavior.
phase_unwrap: PhaseUnwrapPolicyPhase-residual unwrapping convention.
instantaneous_frequency: InstantaneousFrequencyPolicyInstantaneous-frequency estimator.
max_output_samples: usizeHard output-sample bound checked before synthesis allocation.
Trait Implementations§
Source§impl Clone for VocoderPolicy
impl Clone for VocoderPolicy
Source§fn clone(&self) -> VocoderPolicy
fn clone(&self) -> VocoderPolicy
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 moreSource§impl Debug for VocoderPolicy
impl Debug for VocoderPolicy
Source§impl Default for VocoderPolicy
impl Default for VocoderPolicy
Source§impl PartialEq for VocoderPolicy
impl PartialEq for VocoderPolicy
impl StructuralPartialEq for VocoderPolicy
Auto Trait Implementations§
impl Freeze for VocoderPolicy
impl RefUnwindSafe for VocoderPolicy
impl Send for VocoderPolicy
impl Sync for VocoderPolicy
impl Unpin for VocoderPolicy
impl UnsafeUnpin for VocoderPolicy
impl UnwindSafe for VocoderPolicy
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