Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: The mysteries of quantization
name
code content
( var quant=0.5, tol=0.5, strenght=0.5; Window.closeAll; w=Window.new.alwaysOnTop_(true).front; f={ b.value=a.value.collect(_.quantize(quant, tol, strenght)) }; w.layout_( VLayout([ HLayout( StaticText().string_("quantum"), Slider().value_(quant).action_({arg self; quant=self.value.postln; f.()}), StaticText().string_("tolerance"), Slider().value_(tol).action_({arg self; tol=self.value.postln; f.()}), StaticText().string_("strength"), Slider().value_(strenght).action_({arg self; strenght=self.value.postln; f.()}) ),stretch:1], [VLayout( HLayout( a=MultiSliderView() .elasticMode_(true) .value_((0..100)/100) .action_(f), Button().action_({ a.value=(0..100)/100; f.(); }) ), b=MultiSliderView() .editable_(false) .elasticMode_(true) .value_(a.value) ),stretch:1] ) ); )
code description
GUI to play with quantization
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change