pub struct MidiCC {
cur_cc1: f32,
cur_cc2: f32,
cur_cc3: f32,
slew_cc1: SlewValue<f32>,
slew_cc2: SlewValue<f32>,
slew_cc3: SlewValue<f32>,
}
Fields
cur_cc1: f32
cur_cc2: f32
cur_cc3: f32
slew_cc1: SlewValue<f32>
slew_cc2: SlewValue<f32>
slew_cc3: SlewValue<f32>
Implementations
sourceimpl MidiCC
impl MidiCC
pub fn new(_nid: &NodeId, _node_global: &NodeGlobalRef) -> Self
pub const chan: &'static str = "MIDI Channel 0 to 15\n"
pub const slew: &'static str = "Slew limiter for the 3 CCs"
pub const cc1: &'static str = "MIDI selected CC 1"
pub const cc2: &'static str = "MIDI selected CC 2"
pub const cc3: &'static str = "MIDI selected CC 3"
pub const sig1: &'static str = "CC output channel 1"
pub const sig2: &'static str = "CC output channel 2"
pub const sig3: &'static str = "CC output channel 3"
pub const DESC: &'static str = "MIDI CC Input\n\n\ This node is an input of MIDI CC events/values into the DSP graph. \ You get 3 CC value outputs: ~~sig1~~, ~~sig2~~ and ~~sig3~~. To set which CC \ gets which output you have to set the corresponding ~~cc1~~, ~~cc2~~ and \ ~~cc3~~ parameters."
pub const HELP: &'static str = r#"MIDI CC Input This node is an input of MIDI CC events/values into the DSP graph. You get 3 CC value outputs: ~~sig1~~, ~~sig2~~ and ~~sig3~~. To set which CC gets which output you have to set the corresponding ~~cc1~~, ~~cc2~~ and ~~cc3~~ parameters. If the CC values change to rapidly or you hear audible artifacts, you can try to limit the speed of change with the ~~slew~~ limiter. If you need different ~~slew~~ values for the CCs, I recommend creating other `MidiCC` instances with different ~~slew~~ settings. "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for MidiCC
impl DspNode for MidiCC
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 MidiCC
impl Send for MidiCC
impl Sync for MidiCC
impl Unpin for MidiCC
impl UnwindSafe for MidiCC
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