pub struct FbRd {
fb_rd: Box<SharedFeedbackReader>,
}
Expand description
A simple amplifier
Fields
fb_rd: Box<SharedFeedbackReader>
Implementations
sourceimpl FbRd
impl FbRd
pub fn new(nid: &NodeId, node_global: &NodeGlobalRef) -> Self
pub const vol: &'static str = "Volume of the input.\n\ Use this to adjust the feedback amount."
pub const sig: &'static str = "Feedback signal output."
pub const DESC: &'static str = "Feedback Delay Reader\n\n\ HexoSynth does not allow direct feedback cycles in it's graph.\n\ To make feedback possible anyways the `FbWr` and `FbRd` nodes are provided.\n\ This node allows you to tap into the corresponding `FbWr` signal delay \ for feedback. The delay is **3.14ms**."
pub const HELP: &'static str = r#"Feedback Delay Reader HexoSynth does not allow direct feedback cycles in it's graph. To make feedback possible anyways the `FbWr` and `FbRd` nodes are provided. This node allows you to tap into the corresponding `FbWr` signal delay for feedback. The instance id of the node defines which `FbWr` and `FbRd` are connected. That means `FbRd 0` is connected to the corresponding `FbWr 0`. You can use the signal multiple times by connecting the `FbRd 0` ~~sig~~ port to multiple inputs. The delay is always **3.14ms**, regardless of the sampling rate the synthesizer is running at. The ~~vol~~ parameter is a convenience parameter to allow to control the volume of the feedback. "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for FbRd
impl DspNode for FbRd
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 FbRd
impl Send for FbRd
impl Sync for FbRd
impl Unpin for FbRd
impl UnwindSafe for FbRd
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