Hi, Roger. Since the ratios list appears to be a compile-time argument, I would select among predefined quantised functions:
import("stdfaust.lib"); f = hslider("f[scale:log]", 20, 20, 20000, .001); selector = hslider("scale", 0, 0, 1, 1); q1 = qu.quantize(440, (1, 9/8, 81/64, 4/3, 3/2, 27/16, 243/128, 2), f); // Pythagoerean q2 = qu.quantize(440, (1, 9/8, 5/4, 4/3, 3/2, 5/3, 15/18, 2), f); // Just process = ba.selectn(2, selector, q1, q2); Best, Dr Dario Sanfilippo http://dariosanfilippo.com On Sat, 23 Oct 2021 at 18:15, Roger Pibernat <rogerpibernat+li...@gmail.com> wrote: > What's the proper way to select a qu.quantize scale at runtime? > I'd like to have a scale selector that can be changed while playing, > something of the likes: > > sc = hslider("scale", 0, 0, 7, 1); > scale(x) = ...the scales... > qu.quantize(root, scale(sc)); > > Thanks > _______________________________________________ > Faudiostream-users mailing list > Faudiostream-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/faudiostream-users >
_______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users