pub struct Quant {
quant: Box<Quantizer>,
change_trig: ChangeTrig,
}
Expand description
A pitch quantizer
Fields
quant: Box<Quantizer>
change_trig: ChangeTrig
Implementations
sourceimpl Quant
impl Quant
pub fn new(_nid: &NodeId, _node_global: &NodeGlobalRef) -> Self
pub const freq: &'static str = "Any signal that is to be pitch quantized."
pub const oct: &'static str = "Pitch offset, the knob is snapping to octave offsets. \ Feed signal values snapped to **0.1** multiples for exact octave offsets.\ "
pub const sig: &'static str = "The quantized output signal that is rounded to \ the next selected note pitch within the octave of the \ original input to ~~freq~~."
pub const keys: &'static str = "Select the notes you want to snap to here. \ If no notes are selected, the quantizer will snap the \ incoming signal to any closest note."
pub const t: &'static str = "Everytime the quantizer snaps to a new pitch, it will \ emit a short trigger on this signal output. This is useful \ to trigger for example an envelope."
pub const DESC: &'static str = r#"Pitch Quantizer This is a simple quantizer, that snaps a pitch signal on ~~freq~~ to the closest selected notes within their octave. "#
pub const HELP: &'static str = r#"A pitch quantizer This is a simple quantizer, that snaps a pitch signal on ~~freq~~ to the closest selected notes within their octave. If you sweep along pitches you will notice that notes that are closer together are travelled across faster. That means the notes are not evenly distributed across the pitch input. If you want a more evenly distributed pitch selection please see also the `CQnt` node. "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for Quant
impl DspNode for Quant
sourcefn set_sample_rate(&mut self, srate: f32)
fn set_sample_rate(&mut self, srate: f32)
Updates the sample rate for the node.
sourcefn process(
&mut self,
ctx: &mut dyn NodeAudioContext,
_ectx: &mut NodeExecContext,
_nctx: &NodeContext<'_>,
atoms: &[SAtom],
inputs: &[ProcBuf],
outputs: &mut [ProcBuf],
ctx_vals: LedPhaseVals<'_>
)
fn process(
&mut self,
ctx: &mut dyn NodeAudioContext,
_ectx: &mut NodeExecContext,
_nctx: &NodeContext<'_>,
atoms: &[SAtom],
inputs: &[ProcBuf],
outputs: &mut [ProcBuf],
ctx_vals: LedPhaseVals<'_>
)
The code DSP function. Read more
Auto Trait Implementations
impl RefUnwindSafe for Quant
impl Send for Quant
impl Sync for Quant
impl Unpin for Quant
impl UnwindSafe for Quant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more