diff options
Diffstat (limited to 'src/synth')
-rw-r--r-- | src/synth/math.rs | 8 | ||||
-rw-r--r-- | src/synth/param.rs | 6 | ||||
-rw-r--r-- | src/synth/sine.rs | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/synth/math.rs b/src/synth/math.rs index b016103..66a86a0 100644 --- a/src/synth/math.rs +++ b/src/synth/math.rs @@ -1,8 +1,8 @@ use super::*; pub struct Add { - terms: Vec<GenBox>, - buf: SampleBuffer, + pub terms: Vec<GenBox>, + pub buf: SampleBuffer, } impl Generator for Add { @@ -21,8 +21,8 @@ impl Generator for Add { } pub struct Mul { - factors: Vec<GenBox>, - buf: SampleBuffer, + pub factors: Vec<GenBox>, + pub buf: SampleBuffer, } impl Generator for Mul { diff --git a/src/synth/param.rs b/src/synth/param.rs index 3177ffd..ced5900 100644 --- a/src/synth/param.rs +++ b/src/synth/param.rs @@ -1,9 +1,9 @@ use super::*; pub struct Param { - name: String, - default: Sample, - buf: SampleBuffer, + pub name: String, + pub default: Sample, + pub buf: SampleBuffer, } impl Generator for Param { diff --git a/src/synth/sine.rs b/src/synth/sine.rs index 3ee4857..212ab21 100644 --- a/src/synth/sine.rs +++ b/src/synth/sine.rs @@ -4,9 +4,9 @@ use super::*; const TAU: f32 = 2f32 * PI; pub struct Sine { - freq: GenBox, - phase: f32, - buf: SampleBuffer, + pub freq: GenBox, + pub phase: f32, + pub buf: SampleBuffer, } impl Generator for Sine { |