1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ix!();
use crate::{
SampleAndHoldOscillatorParam,
SampleAndHoldOscillatorParamArrayRT,
};
#[derive(Debug)]
pub struct SampleAndHoldOscillator {
pub out: OscillatorOut,
pub params: SampleAndHoldOscillatorParamArrayRT,
pub osc_params: OscillatorParamArrayRT,
pub master_osc: *mut f32,
pub drift: f32,
pub blitter: AbstractBlitter,
pub li_hpf: LipolPs,
pub li_dc: LipolPs,
pub li_integratormult: LipolPs,
pub first_run: bool,
pub dc: f32,
pub dc_uni: A1d::<f32>,
pub elapsed_time: A1d::<f32>,
pub last_level: A1d::<f32>,
pub last_level2: A1d::<f32>,
pub pwidth: A1d::<f32>,
pub pitch: f32,
pub fm_depth: Lag<f64>,
pub hpf_coeff: Lag<f64>,
pub integrator_mult: Lag<f64>,
pub l_pw: Lag<f64>,
pub l_shape: Lag<f64>,
pub l_smooth: Lag<f64>,
pub l_sub: Lag<f64>,
pub l_sync: Lag<f64>,
pub fm_delay: i32,
pub fm_mul_inv: f32,
pub tables: TablesHandle,
pub tuner: TunerHandle,
pub srunit: SampleRateHandle,
}
oscillator! [SampleAndHoldOscillator, SampleAndHoldOscillatorParam];
no_op! [SampleAndHoldOscillator, HandleStreamingMismatches];
name! [SampleAndHoldOscillator, "oscillator.snh"];
no_op! [SampleAndHoldOscillator, AssignFM];
allow_display! [SampleAndHoldOscillator, true];
default_default! [SampleAndHoldOscillator ];