Filter Frequency to log scale

I want the filter frequency and filter mod values in a pbin to be in log scale
The pitch values are already converted in the synthdef with midicps
Wasn’t there an option to use .midicps (or simlar ) on a set key in pbinds ?


(
Pdef(\bebe,
	Pbind(\instrument,
		\Sqwer,
		\dur,1/4,
		\freq,Pseq([55,52,57],inf),
		\offset1,0,
		\offset2,0,
		\offset3,-0.1,
		\filterfreq,Prand([50,70,80],inf),///want this in log scale
		\filteramount,20,///want this in log scale
		\filtdecay,0,
		\ampdecay,Pwhite(0.1,0.3,inf),
		\vol,0.3,
		\lp,0.7,
		\bp,0.5,
		\res,0,
		\xfade,-0.3,
		\fsh,Pwhite(0,0,inf),
		\out,0,

	)
)
)

See the linexp method.

hjh

1 Like