Skip to content

Commit

Permalink
fix quantizer
Browse files Browse the repository at this point in the history
  • Loading branch information
trentgill committed May 12, 2021
1 parent 8f0ab3a commit 01e7f22
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions quantizer.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
--- quantizer
-- sam wolk 2019.10.15
-- updated by whimsicalraps 2021
-- in1: clock
-- in2: voltage to quantize
-- out1: in2 quantized to scale1 on clock pulses
Expand Down Expand Up @@ -41,9 +42,9 @@ end

function init()
input[1].mode('change',1,0.1,'rising')
input[2].mode('scale',public.scale3)
output[1].scale(public.scale1)
output[2].scale(public.scale2)
input[2].mode('scale',scales[public.scale3])
output[1].scale(scales[public.scale1])
output[2].scale(scales[public.scale2])
output[4].action = pulse(0.01, 8)
end

0 comments on commit 01e7f22

Please sign in to comment.