pub struct CQnt {
quant: Box<CtrlPitchQuantizer>,
change_trig: ChangeTrig,
}
Expand description
A control signal to pitch quantizer/converter
Fields
quant: Box<CtrlPitchQuantizer>
change_trig: ChangeTrig
Implementations
sourceimpl CQnt
impl CQnt
pub fn new(_nid: &NodeId, _node_global: &NodeGlobalRef) -> Self
pub const inp: &'static str = "The unipolar input signal that is to be mapped to the \ selected pitch range."
pub const oct: &'static str = "The octave offset from A4."
pub const omin: &'static str = "The minimum octave of the range. If **0** it will be ~~oct~~."
pub const omax: &'static str = "The maximum octave of the range. If **0** it will be ~~oct~~."
pub const sig: &'static str = "The output pitch signal."
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 keys: &'static str = "Here you can select the individual notes of the range. \ If no note is selected, it's the same as if all notes were selected."
pub const DESC: &'static str = r#"Ctrl Pitch Quantizer This special quantizer maps the unipolar **0**..**1** control signal input range on ~~inp~~ evenly to the selected keys and octaves. "#
pub const HELP: &'static str = r#"A control signal to pitch quantizer This is a specialized control signal quantizer to generate a pitch/frequency from a signal within the **0**..**1** range. It does not quantize a typical **-1**..**1** frequency signal like the `Quant` node. In contrast to `Quant`, this quantizer maps the incoming signal evenly to the available note range. It will result in more evenly played notes if you sweep across the input signal range. "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for CQnt
impl DspNode for CQnt
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 CQnt
impl Send for CQnt
impl Sync for CQnt
impl Unpin for CQnt
impl UnwindSafe for CQnt
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