Selection of filter and ADSR modulating
-
Hello,
Two questions :). I have two buttons, one Low Pass, one High Pass.
How can I add a property to switch btw the Moog filter (Low) and the Highpass filter?
I tought to add a property in onControl to control the mix of the filter (Button=true/false=0%/100%)
I think I am able to do the conditions to make if one knob is selected the other isn't, but I need help about the filter type property.. I try to modulate the filter by an enveloppe. I see there are FM and Gain mod sections, but they seem don't react to an AHDSR env...
Help! -
Check out this Snippet:
HiseSnippet 1226.3oc2X0taaaCEkxIDK1sIaoKXn+THX+HAHK0NMqYnEEw4K2Dr3T23fzUfAzRKcsMQjI8nnRpWW9+dL1qvdBVeDFvdA1av1Sv1HEksj+Xt1doCI0.wQ7buj9viN7RJURvc.eet.YcqSZ0DPV2FWtESVem5DJCcvtHq4vEI9RPXaf1tUShuO3hrrl5IZ.qzSiB+7matMwivbfXHD5TN0ANj1fJiQeU9ul54Uf3BmPajH60yefCmsC2iGn3yT3rnlDmyH0fiH5zRgQmSgK7QVYw2esUEmkqx2u0p87A7opuqovqrWGPjSfP.L4optirvV+s5iEdOWpjKJKIRPMlSuM2sU457KXle5So9zJdftQNTYEmLvE3dt5Iu9ZzN0odtkZKg9H0XWJVPmxHnKfKRcocviE1OILfcbORJsVoFF8xMgzyJA8l1Pu4wkcDzlx3HZtcmHz+E1YBhR8yV3LpaY9R6yIB6sCjRNy9w16vYRkbuJw00fszhl+u3J14xp+a4GkIQGKw8Z0rNmQcJP8zVsGaGZBWsFH2qZUvQtzhw4XaRZQ0XTMf4HopeSN6HtDdJaoky7lLoybYeQpVcPgzDUv87.wfhpcmhgzskXAMp.hUTyAu.vjWZ+KnRm5QgVNSZEXZGhODoNOT07Myp9J88tm8CzSzSKXeXoUr2H558KoC1qhrpOH2RJEzJARXo9hVj6BQzvdS0v9P6MTpiZbpH.xY5qtLS5KejZVnrFcarxLZFKGyszDIxYGvnxm1D5z1bKnMRVTGoOITrjmDMTpGPZwP86lQQ1LsuNJcUpxPW8bQ9WininJW6L3nFgxTxZTn9WUnVaxcC7HxtWvpK3EEP4D5ZIwAZt3SksRVPbLVEmcfqhyMn48HR24wkzVwAy2TCfuJg78MeipINK1rrNlrSiK7MSZAvIiJyanxsvOmbNDVtIjHKD1tJWzv9I.CDZMcHa58qW8a58TGohAmHHL+lbeHWxQtmXqkL1tfLf0I8WUs5e8KFntxRO6JnlcIF1Yx2FbsjfkHrDI8h2pZmH9KxWj953l+9l8VXYD2wp6kTIx+ZxtqW8qK+uWFYpQituiC.jtMGKSazzC1icN3wUHlZG6BUIAdxNnIIYQNia1+Ioy5XPs+TsZfHI0G37QsSl5fcwHKj+XvCTaRFC844Ojx.hPuy1DJE4FcoXX2ttK1PWa85V6OLp9O0GPU+mvi+NigK2A26goBIzmh667lCYS.Dpf.9t.f4Dqm+3uk+YIMCcajua9mEP7dG5+j6sSMhljOC2g3uub1S3sm4Lr9ivas+tkONptY301W4kjV9a+inRR6DHNG5dOUGRq9P6o90O8C4MHGBJlkLw8US3j0zBGtN.uUjubfurGqTekBWO+Umw.OhFiYSVz6Zdkt4ZyUi7e8lr2FG5AtInqeLNxcdiPXmCGsv4lfzNe3Q.u4bXB8goe80.5dLOPRY0JRTk0UO7A9nfFkUO2jCnnJiAd952tWJ8qFvzNqtslPkAla11u5unf4zsshBlqcv+W9MZPbD7W5XdoE55xyDhnl2rvW0YZbQca6bseYEZsog54Ydoii9zRegRcFbOVar6w8G6dr9X2iubr6wCF6drwX2iuZH8P+viaEH4ML9cD5e.fXlZPN
It contains a saw generator with a polyphonic filter modulated by a AHDSR and a script that toggles between the different filter types (currently you have to use magic numbers for this, but I might think of something to avoid this.
Not sure what you did to make the envelope not work though :)