pub struct Scope {
handle: Arc<ScopeHandle>,
idx: usize,
frame_time: f32,
srate_ms: f32,
cur_mm: Box<[(f32, f32); 3]>,
trig: CustomTrigger,
}
Expand description
A simple signal scope
Fields
handle: Arc<ScopeHandle>
idx: usize
frame_time: f32
srate_ms: f32
cur_mm: Box<[(f32, f32); 3]>
trig: CustomTrigger
Implementations
sourceimpl Scope
impl Scope
pub fn new(nid: &NodeId, node_global: &NodeGlobalRef) -> Self
pub const in1: &'static str = "Signal input 1."
pub const in2: &'static str = "Signal input 2."
pub const in3: &'static str = "Signal input 3."
pub const time: &'static str = "Displayed time range of the oscilloscope view."
pub const trig: &'static str = "External trigger input. Only active if ~~tsrc~~ is set to **Extern**. ~~thrsh~~ applies also for external triggers."
pub const thrsh: &'static str = "Trigger threshold. If the threshold is passed by the signal \ from low to high the signal recording will be reset. \ Either for internal or for external triggering. \ Trigger is only active if ~~tsrc~~ is not **Off**."
pub const off1: &'static str = "Visual offset of signal input 1."
pub const off2: &'static str = "Visual offset of signal input 2."
pub const off3: &'static str = "Visual offset of signal input 3."
pub const gain1: &'static str = "Visual amplification/attenuation of the signal input 1."
pub const gain2: &'static str = "Visual amplification/attenuation of the signal input 2."
pub const gain3: &'static str = "Visual amplification/attenuation of the signal input 3."
pub const tsrc: &'static str = "Triggering allows you to capture fast signals or pinning fast waveforms into the scope \ view for better inspection. You can let the scope freeze and manually recapture \ waveforms by setting ~~tsrc~~ to **Extern** and hitting the ~~trig~~ button manually."
pub const DESC: &'static str = r#"Signal Oscilloscope Probe This is a signal oscilloscope probe node, you can capture up to 3 signals. You can enable internal or external triggering for capturing signals or pinning fast waveforms. "#
pub const HELP: &'static str = r#"Signal Oscilloscope Probe You can have up to 8 different scopes in your patch. That means you can in record up to 24 signals for displaying them in the scope view. The received signal will be forwarded to the GUI and you can inspect the waveform there. You can enable an internal trigger with the ~~tsrc~~ setting set to **Intern**. **Intern** here means that the signal input 1 ~~in1~~ is used as trigger signal. The ~~thrsh~~ parameter is the trigger detection parameter. That means, if your signal passes that threshold in negative to positive direction, the signal recording will be reset to that point. You can also route in an external trigger to capture signals with the ~~trig~~ input and ~~tsrc~~ set to **Extern**. Of course you can also hit the ~~trig~~ button manually to recapture a waveform. The inputs ~~off1~~, ~~off2~~ and ~~off3~~ define a vertical offset of the signal waveform in the scope view. Use ~~gain1~~, ~~gain2~~ and ~~gain3~~ for scaling the input signals up/down. "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for Scope
impl DspNode for Scope
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 Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnwindSafe for Scope
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