->
<div class="faust-run"><img src="exfaust45/exfaust45.svg" class="mx-auto d-block">
<faust-editor><!--

import("stdfaust.lib");

// Karplus Strong (2/2)
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01) 
        : *(envelop)
        : + ~ transformation;

transformation = @(hslider("delay", 0, 0, 200, 1)) : mean : *(hslider("gain", 0, -0.999, 0.999, 0.001));

mean(x) = (x+x')/2;

envelop = button("gate") : upfront : en.ar(0.002, 0.01);

upfront(x) = x>x';

--></faust-editor>
<br>
</div>
<!-- /faust-r