From 5ba3416b1fc4735e21afb095a8ec54d8288b2316 Mon Sep 17 00:00:00 2001 From: Mike Lynch Date: Sun, 22 Oct 2023 14:51:32 +1100 Subject: [PATCH] Trying to get ungranulated playback to work --- classes/Granulator.sc | 70 ++++++++++++++++++++++++++++++------------- 1 file changed, 50 insertions(+), 20 deletions(-) diff --git a/classes/Granulator.sc b/classes/Granulator.sc index e40dd4f..6727dc5 100644 --- a/classes/Granulator.sc +++ b/classes/Granulator.sc @@ -1,18 +1,28 @@ Granulator { - var posb, posb, 0, { -1 }, { 1 })); } chorus_ { | v | chorus = v; pitchsynth.set(\chorus, v); } harmonics_ { | v | harmonics = v; pitchsynth.set(\harmonics, v); } + depth_ { | v | depth = v; pitchsynth.set(\depth, v); } + crate_ { | v | crate = v; pitchsynth.set(\crate, v); } detune_ { | v | detune = v; pitchsynth.set(\detune, v); } pitch_ { | v | pitch = v; pitchsynth.set(\pitch, v); } - + loop_ { | v | loop = v; loopsynth.set(\amp, v); } + grainamp_ { | v | grainamp = v; grains.set(\amp, v); } } \ No newline at end of file